Git Product home page Git Product logo

Comments (2)

pylint-bot avatar pylint-bot commented on May 28, 2024

Original comment by Nikolaus Rath (BitBucket: nikratio, GitHub: @Nikratio?):


Apparently the issue is a bit more subtle. It only happens when using Python 3.3, and not just if the module does not exist:

#!text

[1] nikratio@vostro:~/tmp$ cat mypackage/module1.py 
import sys
[0] nikratio@vostro:~/tmp$ pylint mypackage/module1.py 
************* Module module1
C0111:  1,0: Missing docstring
Traceback (most recent call last):
  File "/home/nikratio/.local/lib/python3.3/site-packages/logilab_astng-0.24.3-py3.3.egg/logilab/astng/manager.py", line 161, in file_from_module_name
    value = self._mod_file_cache[(modname, contextfile)]
KeyError: ('sys', None)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/nikratio/.local/bin/pylint", line 9, in <module>
    load_entry_point('pylint==0.28.0', 'console_scripts', 'pylint')()
  File "/home/nikratio/.local/lib/python3.3/site-packages/pylint-0.28.0-py3.3.egg/pylint/__init__.py", line 21, in run_pylint
    Run(sys.argv[1:])
[...]
  File "/usr/lib/python3.3/posixpath.py", line 379, in abspath
    if not isabs(path):
  File "/usr/lib/python3.3/posixpath.py", line 64, in isabs
    return s.startswith(sep)
AttributeError: 'NoneType' object has no attribute 'startswith'

[1] nikratio@vostro:~/tmp$ pylint --version
pylint 0.28.0, 
astng 0.24.3, common 0.59.1
Python 3.3.2 (default, May 25 2013, 14:57:35) 
[GCC 4.7.2]

from pylint.

pylint-bot avatar pylint-bot commented on May 28, 2024

Original comment by Sylvain Thénault (BitBucket: sthenault, GitHub: @sthenault?):


this should be fixed with recent (next to be released) version of logilab-common

from pylint.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.