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:
> > On Wed, Oct 10, 2012 at 3:15 AM, Sylvain Thénault <
> sylvain.thena...@logilab.fr> wrote:
> > > On 09 octobre 16:40, Dan Stromberg wrote:
> > > > I'm getting a traceback when pylint'ing /dev/null using CPython 3.2
> using
> > > > the recently released pylint.  The traceback is as follows:
> > > [snip]
> > > >
> > >
> "/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
> > > >
> > > > This is with pylint 0.26.0, astng 0.24.1 and common 0.58.2.
> > > > Is a fix or workaround available?
> > >
> > > 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
> >
> server-dstromberg:/usr/local/cpython-3.2/lib/python3.2/site-packages/logilab/astng/brain
> > i686-pc-linux-gnu 31041 - above cmd done 2012 Wed Oct 10 08:17 AM
>
> 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']
>>>

-- 
Dan Stromberg
_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to