[Python-projects] ImportError importing astng.utils instead of logilab.astng.utils

Gunnlaugur Thor Briem gunnlaugur at gmail.com
Fri Nov 7 23:38:06 CET 2008


Hi,

don't know if this is the same problem, but I am getting the following when
trying to run PyLint:

Traceback (most recent call last):
  File "/Users/gthb/Library/Python/2.5/site-packages/pylint", line 5, in
<module>
    pkg_resources.run_script('pylint==0.15.2', 'pylint')
  File
"/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/pkg_resources.py",
line 442, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File
"/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/pkg_resources.py",
line 1160, in run_script
    execfile(script_filename, namespace, namespace)
  File
"/Users/gthb/Library/Python/2.5/site-packages/pylint-0.15.2-py2.5.egg/EGG-INFO/scripts/pylint",
line 3, in <module>
    from pylint import lint
  File
"/Users/gthb/Library/Python/2.5/site-packages/pylint-0.15.2-py2.5.egg/pylint/lint.py",
line 31, in <module>
    from pylint.checkers import utils
  File
"/Users/gthb/Library/Python/2.5/site-packages/pylint-0.15.2-py2.5.egg/pylint/checkers/__init__.py",
line 42, in <module>
    from logilab.astng.utils import ASTWalker
ImportError: No module named astng.utils

These are the eggs installed, as seen in easy-install.pth in site-packages:

./pylint-0.15.2-py2.5.egg
./logilab_common-0.36.0-py2.5.egg
./logilab_astng-0.17.3-py2.5.egg

The module logilab.astng.utils is definitely present inside the latter
directory, i.e. the file:

./logilab_astng-0.17.3-py2.5.egg/logilab/astng/utils.py

So the problem seems to be that for whatever reason, python tries to import
astng.utils instead of logilab.astng.utils. Any idea why? python -v reveals
nothing.

This happens also when I try, from the command line:

python -c "import logilab.astng.utils"

so the problem is not particular to the python environment at the point
where pylint tries to import it.

Any idea what is going on here?

Thank you, regards,

    - Gulli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.logilab.org/pipermail/python-projects/attachments/20081107/7ca04d8e/attachment.htm 


More information about the Python-Projects mailing list