Comments (2)
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.
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)
- False-positive E1137 (unsupported-assignment-operation) with np.empty_like
- W0640 cell-var-from-loop message for variable used in key argument to sorted(). HOT 1
- Invalid module import error (no-name-in-module) HOT 1
- Crash when adding pylint_flask_sqlalchemy to the --load-plugins in pycharm HOT 1
- False-positive E1121 when using dataclass with init=False
- Add a warning suggesting @staticmethod HOT 2
- False positive used-before-assignment for type annotations in inner functions
- Add a hint at " return'string' " or " while'string' " HOT 1
- RecursionError during linting 2
- Suggestion conflicting with black 2024 style for inlined semantic / empty classes HOT 6
- False Positive: `no-member` for `ParamSpec` under Python 3.12 HOT 8
- [unknown-option-value] False negative after `--disable=all` HOT 1
- False negative: no-member in conditional branch HOT 2
- [unsubscriptable-object] FP for generic classes (PEP 695) HOT 2
- pyreverse working with attrs.org
- [duplicate-code] unclear how to disable the message for select occurrences, while keeping the option enabled in general
- Feature Request: Naming Convention Enforcement for Boolean Values & Functions HOT 8
- Pylint incorrectly resolving type vs instances
- astroid.node Attribute Error HOT 1
- protected-access false positive in class method of child class
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pylint.