[py-dev] AttributeError: 'module' object has no attribute 'suite'

schmir at gmail.com schmir at gmail.com
Thu Dec 17 11:57:00 CET 2009


holger krekel <holger at merlinux.eu> writes:

>
> no oddity, actually.  py-1.1 uses the standard 'parser' 
> module where py-1.0 used the standard compiler package 
> to check for parseability.  So it's probably right
> that you have a 'parser' module shadowing the standard
> one. 

you're right. Adding some print statements I can see that it uses

/home/test/py26/lib/python2.6/site-packages/mwlib/parser/__init__.pyc

as it's parser module.

sys.path looks like
['/home/test/py26/lib/python2.6/site-packages/mwlib', '/home/test/rl',
'/home/test/py26/lib/python2.6/site-packages', '/home/test/py26/bin',
'/home/test/py26/lib/python2.6/site-packages/distribute-0.6.8-py2.6.egg',
...] in that function.

The first entry looks wrong here. mwlib is a standard namespace package
and .../site-packages/mwlib should not be in sys.path. (and it's really
not there in the standard interpreter).

Regards,
- Ralf



More information about the Pytest-dev mailing list