Import Error: No module named testrunner

Posted by JiL on Stack Overflow See other posts from Stack Overflow or by JiL
Published on 2012-06-21T21:12:25Z Indexed on 2012/06/21 21:15 UTC
Read the original article Hit count: 212

Filed under:
|
|
|

I followed this to add zc.recipe.testrunner to my buildout. I can run buildout successfully but when I run bin/test, I get:

ImportError: No module named testrunner

I have zope.testrunner-4.0.4-py2.4.egg in

/usr/local/lib/python2.4/site-packages

I also pinned

zope.testrunner = 4.0.4
zc.recipe.testruner = 1.4.0
zc.recipe.egg = 1.3.2

When I ran buildout, I used -vvv and I got:

...
Installing 'zc.recipe.testrunner'.
We have the distribution that satisfies 'zc.recipe.testrunner==1.4.0'.
Egg from site-packages: z3c.recipe.scripts 1.0.1
Egg from site-packages: zope.testrunner 4.0.4
Egg from site-packages: zope.interface 3.8.0
Egg from site-packages: zope.exceptions 3.7.1
...
We have the distribution that satisfies 'zope.testrunner==4.0.4'.
Egg from site-packages: zope.testrunner 4.0.4
Adding required 'zope.interface'
 required by zope.testrunner 4.0.4.
We have a develop egg: zope.interface 0.0
Adding required 'zope.exceptions'
 required by zope.testrunner 4.0.4.
We have a develop egg: zope.exceptions 0.0
...

Why is it I get an ImportError? Is zope.testrunner not installed correctly?

© Stack Overflow or respective owner

Related posts about python

Related posts about plone