[IPython-dev] parallel: BaseException.message has been deprecated

Ondrej Certik ondrej at certik.cz
Wed Mar 18 23:44:40 EDT 2009


> Anyway, it seems it is all caused by using python2.6. The problem is
> that even if I run

I wished it was that easy. The problem is maybe in a broken twisted
installation in ubuntu, because the tests fail even with python2.5:

$ python2.5 scripts/iptest
/var/lib/python-support/python2.5/nose/plugins/manager.py:386:
UserWarning: Module nose was already imported from
/var/lib/python-support/python2.5/nose/__init__.py, but
/var/lib/python-support/python2.5 is being added to sys.path
  import pkg_resources
.............................S......................................../usr/lib/python2.5/site-packages/twisted/trial/unittest.py:1350:
DeprecationWarning: Reactor already running! This behavior is
deprecated since Twisted 8.0
  reactor.run()
...........................................................................................................................................................................................Traceback
(most recent call last):
  File "/usr/lib/python2.5/site-packages/twisted/trial/unittest.py",
line 1195, in runThunk
    self._wait(d)
  File "/usr/lib/python2.5/site-packages/twisted/trial/unittest.py",
line 1350, in _wait
    reactor.run()
  File "/usr/lib/python2.5/site-packages/twisted/internet/base.py",
line 1128, in run
    self.mainLoop()
  File "/usr/lib/python2.5/site-packages/twisted/internet/base.py",
line 1137, in mainLoop
    self.runUntilCurrent()
--- <exception caught here> ---
  File "/usr/lib/python2.5/site-packages/twisted/internet/base.py",
line 729, in runUntilCurrent
    f(*a, **kw)
  File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py",
line 269, in errback
    self._startRunCallbacks(fail)
  File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py",
line 298, in _startRunCallbacks
    raise AlreadyCalledError
twisted.internet.defer.AlreadyCalledError:
E....................................................................................................................................................................ERROR:
An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (288, 0))

ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (211, 0))

ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (182, 0))

......................ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (288, 0))

ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (211, 0))

ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (182, 0))

...............................S..S.......SS..SSS.........sh: ipython: not found
F....SSS....
======================================================================
ERROR: testExecuteFailuresEngineService_0
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/twisted/internet/base.py",
line 729, in runUntilCurrent
    f(*a, **kw)
  File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py",
line 269, in errback
    self._startRunCallbacks(fail)
  File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py",
line 298, in _startRunCallbacks
    raise AlreadyCalledError
AlreadyCalledError

======================================================================
FAIL: Test that object's __del__ methods are called on exit.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/nose/case.py", line 182, in runTest
    self.test(*self.arg)
  File "/home/ondrej/repos/ipython/IPython/tests/test_magic.py", line
88, in test_obj_del
    nt.assert_equals(out,'object A deleted')
AssertionError: '' != 'object A deleted'
>>  raise self.failureException, \
          (None or '%r != %r' % ('', 'object A deleted'))


----------------------------------------------------------------------
Ran 511 tests in 51.917s

FAILED (SKIP=11, errors=1, failures=1)
Deleting object: second_pass
object A deleted
deleting object...




So my plan for tonight is:

* fix tests in python2.5
* fix tests in python2.6
* fix my problem

Ondrej



More information about the IPython-dev mailing list