Note that there are some explanatory texts on larger screens.

plurals
  1. PORunning Pylint on Windows -> ImportError: cannot import from builtins
    primarykey
    data
    text
    <p>Maybe someone has a clue about this one. Google, the Logilab.org archives and every other source I tried to determine a solution have turned up empty.</p> <p>I was trying to get Pylint 2.4 running with PyDev in Eclipse (with Python 2.6) on Windows, but right now I'd be happy simply running pylin at all. I used easy_install to install pylint and it's dependancies. That seemed to work fine. However if I try to run c:\python26\Scripts\pylint.bat , I get the following:</p> <pre><code>Traceback (most recent call last): File "C:\Python26\Scripts\pylint", line 5, in &lt;module&gt; pkg_resources.run_script('pylint==0.24.0', 'pylint') File "c:\Python26\lib\site-packages\pkg_resources.py", line 489, in run_script self.require(requires)[0].run_script(script_name, ns) File "c:\Python26\lib\site-packages\pkg_resources.py", line 1207, in run_script execfile(script_filename, namespace, namespace) File "c:\python26\lib\site-packages\pylint-0.24.0-py2.6.egg\EGGINFO\scripts\pylint", line 3, in &lt;module&gt; from pylint import lint File "c:\Python26\lib\site-packages\pylint-0.24.0-py2.6.egg\pylint\lint.py", line 31, in &lt;module&gt; from pylint.checkers import utils File "c:\Python26\lib\site-packages\pylint-0.24.0py2.6.egg\pylint\checkers\__init__.py", line 44, in &lt;module&gt; from logilab.astng.utils import ASTWalker File "c:\Python26\lib\site-packages\logilab_astng-0.22.0py2.6.egg\logilab\astng\__init__.py", line 58, in &lt;module&gt; from logilab.astng.nodes import * File "c:\Python26\lib\site-packages\logilab_astng-0.22.0-py2.6.egg\logilab\astng\nodes.py", line 54, in &lt;module&gt; from logilab.astng.node_classes import Arguments, AssAttr, Assert, Assign, \ File "c:\Python26\lib\site-packages\logilab_astng-0.22.0-py2.6.egg\logilab\astng\node_classes.py", line 27, in &lt;module&gt; from logilab.astng.bases import (NodeNG, Statement, Instance, InferenceContext, File "c:\Python26\lib\site-packages\logilab_astng-0.22.0-py2.6.egg\logilab\astng\bases.py", line 28, in &lt;module&gt; from logilab.common.compat import builtins ImportError: cannot import name builtins </code></pre> <p>I mucked around and looked into based.py, but I have no clue what the problem is. My shell path includes C:\python26;c:\Python26\Scripts.</p> <p>Does this have something to do with lib2to3? Or Python 2.6 compatibility?</p> <p>Note that I installed pylint using "easy_install pylint", and logilab-common is at the latest 0.56.2.</p> <p>Thanks!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload