[IPython-user] Problems with zope.interface and IPython1

Brian Granger ellisonbg.net at gmail.com
Mon Nov 6 12:38:45 CST 2006


This was posted on the Scipy-users list and is being moved over here.

I still don't think that IPython1 is finding the right version of
ZopeInterface.  Another user had this same problem and they had too
actually delete the older version (the entire site-packages/zope
directory) and then reinstall the more recent version.  Have you tried
that?


###############################################################


Brian,

Sorry for taking so long to answer, I was very busy. I have tried
again after updating ZopeInterface  to the version you suggest, and
Twisted and   Nevow to SVN trunk. The error message I am getting is
pretty much the same. I also tried running the tests. Here is the
output of "trial ipython1":

# trial ipython1
Running 29 tests.

/usr/lib/python2.4/site
-packages/twisted/trial/runner.py:243: exceptions.DeprecationWarning:
log.startKeepingErrors is deprecated since Twisted 2.5
ipython1.test.test_controllerpb
  BasicControllerPBTest
    testDeferreds ...                                                   [ERROR]
    testExecute ...                                                     [ERROR]
    testInterfaces ...                                                  [ERROR]
    testPullNamespace ...                                               [ERROR]
    testPushPull ...                                                    [ERROR]
    testPushPullSerialized ...                                          [ERROR]
    testResult ...                                                      [ERROR]
    testScatterGather ...                                               [ERROR]
ipython1.test.test_controllerservice
  BasicControllerServiceTest
    testDeferreds ...                                                   [ERROR]
    testExecute ...                                                     [ERROR]
    testInterfaces ...                                                  [ERROR]
    testPullNamespace ...                                               [ERROR]
    testPushPull ...                                                    [ERROR]
    testPushPullSerialized ...                                          [ERROR]
    testResult ...                                                      [ERROR]
    testScatterGather ...                                               [ERROR]
                                              [ERROR]
ipython1.test.test_engineservice
  BasicEngineServiceTest
    testCompletedEmptyEngine ...                                        [ERROR]
    testDeferreds ...                                                      [OK]
    testExecute ...                                                        [OK]
    testGetResult ...                                                      [OK]
    testInterfaces ...                                                  [ERROR]
    testPullNamespace ...                                                  [OK]
    testPushPull ...                                                       [OK]
    testPushPullSerialized ...                                             [OK]
    testStatus ...                                                         [OK]
                                                     [ERROR]
ipython1.test.test_shell
  BasicShellTest
    testCommand ...                                                        [OK]
    testExecute ...                                                        [OK]
    testPutGet ...                                                         [OK]
    testUpdate ...                                                         [OK]

===============================================================================
[ERROR]: ipython1.test.test_controllerpb.BasicControllerPBTest.testDeferreds

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/ipython1/test/test_controllerpb.py",
line 36, in setUp
    self.s = reactor.listenTCP(10111, self.sf)
  File "/usr/lib/python2.4/site-packages/twisted/internet/posixbase.py",
line 386, in listenTCP
    p.startListening()
  File "/usr/lib/python2.4/site-packages/twisted/internet/tcp.py",
line 733, in startListening
    raise CannotListenError, (self.interface, self.port, le)
twisted.internet.error.CannotListenError: Couldn't listen on
any:10111: (98, 'Address already in use').
===============================================================================
[ERROR]: ipython1.test.test_controllerpb.BasicControllerPBTest.testExecute

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/ipython1/test/test_controllerpb.py",
line 36, in setUp
    self.s = reactor.listenTCP(10111, self.sf)
  File "/usr/lib/python2.4/site-packages/twisted/internet/posixbase.py",
line 386, in listenTCP
    p.startListening()
  File "/usr/lib/python2.4/site-packages/twisted/internet/tcp.py",
line 733, in startListening
    raise CannotListenError, (self.interface, self.port, le)
twisted.internet.error.CannotListenError: Couldn't listen on
any:10111: (98, 'Address already in use').
===============================================================================
[ERROR]: ipython1.test.test_controllerpb.BasicControllerPBTest.testInterfaces

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/ipython1/test/test_controllerpb.py",
line 36, in setUp
    self.s = reactor.listenTCP(10111, self.sf)
  File "/usr/lib/python2.4/site-packages/twisted/internet/posixbase.py",
line 386, in listenTCP
    p.startListening()
  File "/usr/lib/python2.4/site-packages/twisted/internet/tcp.py",
line 733, in startListening
    raise CannotListenError, (self.interface, self.port, le)
twisted.internet.error.CannotListenError: Couldn't listen on
any:10111: (98, 'Address already in use').
===============================================================================
[ERROR]: ipython1.test.test_controllerpb.BasicControllerPBTest.testPullNamespace

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/ipython1/test/test_controllerpb.py",
line 36, in setUp
    self.s = reactor.listenTCP(10111, self.sf)
  File "/usr/lib/python2.4/site-packages/twisted/internet/posixbase.py",
line 386, in listenTCP
    p.startListening()
  File "/usr/lib/python2.4/site-packages/twisted/internet/tcp.py",
line 733, in startListening
    raise CannotListenError, (self.interface, self.port, le)
twisted.internet.error.CannotListenError: Couldn't listen on
any:10111: (98, 'Address already in use').
===============================================================================
[ERROR]: ipython1.test.test_controllerpb.BasicControllerPBTest.testPushPull

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/ipython1/test/test_controllerpb.py",
line 36, in setUp
    self.s = reactor.listenTCP(10111, self.sf)
  File "/usr/lib/python2.4/site-packages/twisted/internet/posixbase.py",
line 386, in listenTCP
    p.startListening()
  File "/usr/lib/python2.4/site-packages/twisted/internet/tcp.py",
line 733, in startListening
    raise CannotListenError, (self.interface, self.port, le)
twisted.internet.error.CannotListenError: Couldn't listen on
any:10111: (98, 'Address already in use').
===============================================================================
[ERROR]: ipython1.test.test_controllerpb.BasicControllerPBTest.testPushPullSerialized

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/ipython1/test/test_controllerpb.py",
line 36, in setUp
    self.s = reactor.listenTCP(10111, self.sf)
  File "/usr/lib/python2.4/site-packages/twisted/internet/posixbase.py",
line 386, in listenTCP
    p.startListening()
  File "/usr/lib/python2.4/site-packages/twisted/internet/tcp.py",
line 733, in startListening
    raise CannotListenError, (self.interface, self.port, le)
twisted.internet.error.CannotListenError: Couldn't listen on
any:10111: (98, 'Address already in use').
===============================================================================
[ERROR]: ipython1.test.test_controllerpb.BasicControllerPBTest.testResult

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/ipython1/test/test_controllerpb.py",
line 36, in setUp
    self.s = reactor.listenTCP(10111, self.sf)
  File "/usr/lib/python2.4/site-packages/twisted/internet/posixbase.py",
line 386, in listenTCP
    p.startListening()
  File "/usr/lib/python2.4/site-packages/twisted/internet/tcp.py",
line 733, in startListening
    raise CannotListenError, (self.interface, self.port, le)
twisted.internet.error.CannotListenError: Couldn't listen on
any:10111: (98, 'Address already in use').
===============================================================================
[ERROR]: ipython1.test.test_controllerpb.BasicControllerPBTest.testScatterGather

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/ipython1/test/test_controllerpb.py",
line 36, in setUp
    self.s = reactor.listenTCP(10111, self.sf)
  File "/usr/lib/python2.4/site-packages/twisted/internet/posixbase.py",
line 386, in listenTCP
    p.startListening()
  File "/usr/lib/python2.4/site-packages/twisted/internet/tcp.py",
line 733, in startListening
    raise CannotListenError, (self.interface, self.port, le)
twisted.internet.error.CannotListenError: Couldn't listen on
any:10111: (98, 'Address already in use').
===============================================================================
[ERROR]: ipython1.test.test_controllerservice.BasicControllerServiceTest.testDeferreds

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/ipython1/test/test_controllerservice.py",
line 31, in setUp
    self.addEngine(1)
  File "/usr/lib/python2.4/site-packages/ipython1/test/multienginetest.py",
line 20, in addEngine
    e = es.completeEngine(es.EngineService(InteractiveShell))
  File "/usr/lib/python2.4/site-packages/ipython1/kernel/engineservice.py",
line 157, in completeEngine
    zi.alsoProvides(engine, IEngineComplete)
exceptions.AttributeError: 'module' object has no attribute 'alsoProvides'
===============================================================================
[ERROR]: ipython1.test.test_controllerservice.BasicControllerServiceTest.testExecute

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/ipython1/test/test_controllerservice.py",
line 31, in setUp
    self.addEngine(1)
  File "/usr/lib/python2.4/site-packages/ipython1/test/multienginetest.py",
line 20, in addEngine
    e = es.completeEngine(es.EngineService(InteractiveShell))
  File "/usr/lib/python2.4/site-packages/ipython1/kernel/engineservice.py",
line 157, in completeEngine
    zi.alsoProvides(engine, IEngineComplete)
exceptions.AttributeError: 'module' object has no attribute 'alsoProvides'
===============================================================================
[ERROR]: ipython1.test.test_controllerservice.BasicControllerServiceTest.testInterfaces

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/ipython1/test/test_controllerservice.py",
line 31, in setUp
    self.addEngine(1)
  File "/usr/lib/python2.4/site-packages/ipython1/test/multienginetest.py",
line 20, in addEngine
    e = es.completeEngine(es.EngineService(InteractiveShell))
  File "/usr/lib/python2.4/site-packages/ipython1/kernel/engineservice.py",
line 157, in completeEngine
    zi.alsoProvides(engine, IEngineComplete)
exceptions.AttributeError: 'module' object has no attribute 'alsoProvides'
===============================================================================
[ERROR]: ipython1.test.test_controllerservice.BasicControllerServiceTest.testPullNamespace

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/ipython1/test/test_controllerservice.py",
line 31, in setUp
    self.addEngine(1)
  File "/usr/lib/python2.4/site-packages/ipython1/test/multienginetest.py",
line 20, in addEngine
    e = es.completeEngine(es.EngineService(InteractiveShell))
  File "/usr/lib/python2.4/site-packages/ipython1/kernel/engineservice.py",
line 157, in completeEngine
    zi.alsoProvides(engine, IEngineComplete)
exceptions.AttributeError: 'module' object has no attribute 'alsoProvides'
===============================================================================
[ERROR]: ipython1.test.test_controllerservice.BasicControllerServiceTest.testPushPull

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/ipython1/test/test_controllerservice.py",
line 31, in setUp
    self.addEngine(1)
  File "/usr/lib/python2.4/site-packages/ipython1/test/multienginetest.py",
line 20, in addEngine
    e = es.completeEngine(es.EngineService(InteractiveShell))
  File "/usr/lib/python2.4/site-packages/ipython1/kernel/engineservice.py",
line 157, in completeEngine
    zi.alsoProvides(engine, IEngineComplete)
exceptions.AttributeError: 'module' object has no attribute 'alsoProvides'
===============================================================================
[ERROR]: ipython1.test.test_controllerservice.BasicControllerServiceTest.testPushPullSerialized

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/ipython1/test/test_controllerservice.py",
line 31, in setUp
    self.addEngine(1)
  File "/usr/lib/python2.4/site-packages/ipython1/test/multienginetest.py",
line 20, in addEngine
    e = es.completeEngine(es.EngineService(InteractiveShell))
  File "/usr/lib/python2.4/site-packages/ipython1/kernel/engineservice.py",
line 157, in completeEngine
    zi.alsoProvides(engine, IEngineComplete)
exceptions.AttributeError: 'module' object has no attribute 'alsoProvides'
===============================================================================
[ERROR]: ipython1.test.test_controllerservice.BasicControllerServiceTest.testResult

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/ipython1/test/test_controllerservice.py",
line 31, in setUp
    self.addEngine(1)
  File "/usr/lib/python2.4/site-packages/ipython1/test/multienginetest.py",
line 20, in addEngine
    e = es.completeEngine(es.EngineService(InteractiveShell))
  File "/usr/lib/python2.4/site-packages/ipython1/kernel/engineservice.py",
line 157, in completeEngine
    zi.alsoProvides(engine, IEngineComplete)
exceptions.AttributeError: 'module' object has no attribute 'alsoProvides'
===============================================================================
[ERROR]: ipython1.test.test_controllerservice.BasicControllerServiceTest.testScatterGather

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/ipython1/test/test_controllerservice.py",
line 31, in setUp
    self.addEngine(1)
  File "/usr/lib/python2.4/site-packages/ipython1/test/multienginetest.py",
line 20, in addEngine
    e = es.completeEngine(es.EngineService(InteractiveShell))
  File "/usr/lib/python2.4/site-packages/ipython1/kernel/engineservice.py",
line 157, in completeEngine
    zi.alsoProvides(engine, IEngineComplete)
exceptions.AttributeError: 'module' object has no attribute 'alsoProvides'
===============================================================================
[ERROR]: ipython1.test.test_enginepb

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/twisted/trial/runner.py",
line 486, in loadPackage
    module = modinfo.load ()
  File "/usr/lib/python2.4/site-packages/twisted/python/modules.py",
line 337, in load
    return self.pathEntry.pythonPath.moduleLoader(self.name)
  File "/usr/lib/python2.4/site-packages/twisted/python/modules.py",
line 498, in moduleLoader
    return self._moduleLoader(modname)
  File "/usr/lib/python2.4/site-packages/twisted/python/reflect.py",
line 357, in namedAny
    topLevelPackage = __import__(trialname)
  File "/usr/lib/python2.4/site-packages/ipython1/test/test_enginepb.py",
line 33, in ?
    from ipython1.test  import completeenginetest as cet
  File "/usr/lib/python2.4/site-packages/ipython1/test/completeenginetest.py",
line 22, in ?
    class CompleteEngineTestCase(DeferredTestCase):
  File "/usr/lib/python2.4/site-packages/ipython1/test/completeenginetest.py",
line 27, in CompleteEngineTestCase
    engine = es.completeEngine(Empty())
  File "/usr/lib/python2.4/site-packages/ipython1/kernel/engineservice.py",
line 157, in completeEngine
    zi.alsoProvides(engine, IEngineComplete)
exceptions.AttributeError: 'module' object has no attribute 'alsoProvides'
===============================================================================
[ERROR]: ipython1.test.test_engineservice.BasicEngineServiceTest.testCompletedEmptyEngine

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/ipython1/test/test_engineservice.py",
line 73, in testCompletedEmptyEngine
    c = es.completeEngine(Empty())
  File "/usr/lib/python2.4/site-packages/ipython1/kernel/engineservice.py",
line 157, in completeEngine
    zi.alsoProvides(engine, IEngineComplete)
exceptions.AttributeError : 'module' object has no attribute 'alsoProvides'
===============================================================================
[ERROR]: ipython1.test.test_engineservice.BasicEngineServiceTest.testInterfaces

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/ipython1/test/test_engineservice.py",
line 43, in testInterfaces
    q = es.QueuedEngine(self.engine)
  File "/usr/lib/python2.4/site-packages/ipython1/kernel/engineservice.py",
line 342, in __init__
    self.registerMethods()
  File "/usr/lib/python2.4/site-packages/ipython1/kernel/engineservice.py",
line 345, in registerMethods
    zi.alsoProvides(self, *self.engine.__provides__)
exceptions.AttributeError : 'module' object has no attribute 'alsoProvides'
===============================================================================
[ERROR]: ipython1.test.test_enginevanilla

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/twisted/trial/runner.py",
line 486, in loadPackage
    module = modinfo.load()
  File "/usr/lib/python2.4/site-packages/twisted/python/modules.py",
line 337, in load
    return self.pathEntry.pythonPath.moduleLoader(self.name)
  File "/usr/lib/python2.4/site-packages/twisted/python/modules.py",
line 498, in moduleLoader
    return self._moduleLoader(modname)
  File "/usr/lib/python2.4/site-packages/twisted/python/reflect.py",
line 357, in namedAny
    topLevelPackage = __import__(trialname)
  File "/usr/lib/python2.4/site-packages/ipython1/test/test_enginevanilla.py",
line 36, in ?
    from ipython1.test  import completeenginetest as cet
  File "/usr/lib/python2.4/site-packages/ipython1/test/completeenginetest.py",
line 22, in ?
    class CompleteEngineTestCase(DeferredTestCase):
  File "/usr/lib/python2.4/site-packages/ipython1/test/completeenginetest.py",
line 27, in CompleteEngineTestCase
    engine = es.completeEngine(Empty())
  File "/usr/lib/python2.4/site-packages/ipython1/kernel/engineservice.py",
line 157, in completeEngine
    zi.alsoProvides(engine, IEngineComplete)
exceptions.AttributeError: 'module' object has no attribute 'alsoProvides'
-------------------------------------------------------------------------------
Ran 29 tests in 1.931s

FAILED (errors=20, successes=11)


More information about the IPython-user mailing list