On 10 octobre 08:39, Dan Stromberg wrote: > On Wed, Oct 10, 2012 at 8:35 AM, Sylvain Thénault < > sylvain.thena...@logilab.fr> wrote: > > On 10 octobre 08:18, Dan Stromberg wrote: > > > > weird. What's the content of > > > > /usr/local/cpython-3.2/lib/python3.2/site-packages/logilab/astng/brain/ > > > > directory ? > > > > > > These are the 3 files in the above directory: > > > > > > $ ls -al > > > total 20 > > > drwxr-xr-x 2 root root 4096 2012-10-09 16:01 . > > > drwxr-xr-x 4 root root 4096 2012-10-09 16:01 .. > > > -rw------- 1 root root 540 2012-10-05 07:01 py2mechanize.py > > > -rw------- 1 root root 531 2012-10-05 07:01 py2qt4.py > > > -rw------- 1 root root 3834 2012-10-05 07:01 py2stdlib.py > > > > ok... Then if you go in your python3 interpreter, type 'import > > logilab.atng' then print(sys.path), > > do you see > > /usr/local/cpython-3.2/lib/python3.2/site-packages/logilab/astng/brain > > in the list ? > > I get: > >>> import logilab.astng > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File > "/usr/local/cpython-3.2/lib/python3.2/site-packages/logilab/astng/__init__.py", > line 85, in <module> > __import__(module[:-3]) > ImportError: No module named py2qt4 > >>> import sys > >>> print(sys.path) > ['', '/usr/local/cpython-3.2/lib/python32.zip', > '/usr/local/cpython-3.2/lib/python3.2', > '/usr/local/cpython-3.2/lib/python3.2/plat-linux2', > '/usr/local/cpython-3.2/lib/python3.2/lib-dynload', > '/usr/local/cpython-3.2/lib/python3.2/site-packages', > '/usr/local/cpython-3.2/lib/python3.2/site-packages/logilab/astng/brain']
Hummmm. Gotcha : look at the above file list, there is something wrong with the permissions of files in the brain directory, there are all only readable by root. How did you install pylint/astng ? -- Sylvain Thénault, LOGILAB, Paris (01.45.32.03.12) - Toulouse (05.62.17.16.42) Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations Développement logiciel sur mesure: http://www.logilab.fr/services CubicWeb, the semantic web framework: http://www.cubicweb.org _______________________________________________ Python-Projects mailing list Python-Projects@lists.logilab.org http://lists.logilab.org/mailman/listinfo/python-projects