[IPython-dev] IPython1 unit tests fail

Brian Granger ellisonbg.net at gmail.com
Sat Nov 4 18:48:42 CST 2006


zi.alsoProvides(engine, IEngineComplete)
exceptions.AttributeError: 'module' object has no attribute 'alsoProvides'

This error from zope.interface makes me think that you have an older
version of zope.interface than ZopeInterface-3.1.0c1.  The
alsoProvides method was new to this release.  Are  you sure you really
have this release of zope.interface?

You are venturing into new territory - all of IPython1 has been
developed on Mac OS X/Linux/AIX.  It should work on Windows, but I am
not sure anyone has really testing everything out.  Have any other
Windows users tried IPython1?

The first step is to get the right version of zope.interface though
and see if that helps.  Let me know what you find and we can debug
these problems.

Brian





On 11/4/06, Kimball, John D CIV NSWCDL G33 <john.d.kimball at navy.mil> wrote:
>
>
>
> I installed ipython1 and dependecies in accordance with the INSTALL file.
> The unit tests fail, and I'm posting the problem here per the directions in
> the INSTALL file.
>
> Thanks for your assistance.  You all are doing awesome work!
>
> I'm using:
>
> enthon 1.0.0 (python 2.4.3)
> Windows 2000 SP4
> ZopeInterface-3.1.0c1
> The versions of Twisted and Nevow current as of 4PM 11-04-06.
>
> I get the following result:
>
> Running 29 tests.
>
> C:\Python24\lib\site-packages\twisted\trial\runner.py:243:
> exceptions.DeprecationWarning: log.startKeepingErrors is deprecated since
> Twisted 2.5
> ipython1.test.test_controllerpb
>   BasicControllerPBTest
>     testDeferreds ...
>             [ERROR]
>     cleanup errors
>         [ERROR]
>
> C:\Python24\lib\site-packages\twisted\trial\reporter.py:201:
> twisted.trial.reporter.BrokenTestCaseWarning: REACTOR
> UNCLEAN! traceback(s) follow:
> Traceback (most recent call last):
>   File
> "C:\Python24\Lib\site-packages\twisted\trial\unittest.py",
> line 651, in _classCleanUp
>     util._Janitor().postClassCleanup()
>   File
> "C:\Python24\Lib\site-packages\twisted\trial\util.py", line
> 68, in postClassCleanup
>     'cleanPending', 'cleanThreads')
>   File
> "C:\Python24\Lib\site-packages\twisted\trial\util.py", line
> 72, in _dispatch
>     getattr(self, "do_%s" % attr)()
>   File
> "C:\Python24\Lib\site-packages\twisted\trial\util.py", line
> 126, in do_cleanReactor
>     raise DirtyReactorError(' '.join(s))
> twisted.trial.util.DirtyReactorError: THIS WILL BECOME AN
> ERROR SOON! reactor left in unclean state, the following Selectables were
> left over:  <<class 'twisted.internet.tcp.Port'> of
> twisted.spread.pb.PBServerFactory on 10111> <<class
> 'twisted.internet.tcp.Client'> to ('127.0.0.1', 10111) at 18b1ab0> <Broker
> #0 on 10111>
>
>     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
> "C:\Python24\Lib\site-packages\ipython1\test\test_controllerpb.py",
> line 41, in setUp
>     self.addEngine(1)
>   File
> "C:\Python24\Lib\site-packages\ipython1\test\multienginetest.py",
> line 20, in addEngine
>     e = es.completeEngine(es.EngineService(InteractiveShell))
>   File
> "C:\Python24\Lib\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_controllerpb.BasicControllerPBTest.testExecute
>
> Traceback (most recent call last):
>   File
> "C:\Python24\Lib\site-packages\ipython1\test\test_controllerpb.py",
> line 36, in setUp
>     self.s = reactor.listenTCP(10111, self.sf)
>   File
> "C:\Python24\Lib\site-packages\twisted\internet\posixbase.py",
> line 386, in listenTCP
>     p.startListening()
>   File
> "C:\Python24\Lib\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: (10048, 'Address already in use').
> ===============================================================================
> and so on... (same errors repeated)
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://projects.scipy.org/mailman/listinfo/ipython-dev
>
>
>


More information about the IPython-dev mailing list