Comments (8)
I'm getting the same thing so the 0.6.3 release does not appear to have fixed it.
from prospector.
Could you try again with the 0.6.4 release? I think this is due to a bad sys.path, and there were some fixes to the sys.path munging in 0.6.4 that I hope will fix this!
from prospector.
Yeah, it works for me now. Thanks!
from prospector.
nope
same here
~/Projects/assura/homeowners/homeowners17(branch:1296_django17_new) » prospector
Traceback (most recent call last):
File "/Users/syabro/.virtualenvs/homeowners17/bin/prospector", line 9, in <module>
load_entry_point('prospector==0.6.4', 'console_scripts', 'prospector')()
File "/Users/syabro/.virtualenvs/homeowners17/lib/python2.7/site-packages/prospector/run.py", line 191, in main
summary, messages = prospector.execute()
File "/Users/syabro/.virtualenvs/homeowners17/lib/python2.7/site-packages/prospector/run.py", line 136, in execute
tool.prepare(found_files, self.config, self.adaptors)
File "/Users/syabro/.virtualenvs/homeowners17/lib/python2.7/site-packages/prospector/tools/pylint/__init__.py", line 81, in prepare
adaptor.adapt_pylint(linter)
File "/Users/syabro/.virtualenvs/homeowners17/lib/python2.7/site-packages/prospector/adaptor/common.py", line 8, in adapt_pylint
linter.load_plugin_modules(['pylint_common'])
File "/Users/syabro/.virtualenvs/homeowners17/lib/python2.7/site-packages/pylint/lint.py", line 361, in load_plugin_modules
module.register(self)
File "/Users/syabro/.virtualenvs/homeowners17/lib/python2.7/site-packages/pylint_common/__init__.py", line 5, in register
apply_augmentations(linter)
File "/Users/syabro/.virtualenvs/homeowners17/lib/python2.7/site-packages/pylint_common/augmentations.py", line 32, in apply_augmentations
augment_visit(linter, BasicChecker.visit_discard, allow_attribute_comments)
File "/Users/syabro/.virtualenvs/homeowners17/lib/python2.7/site-packages/pylint_plugin_utils/__init__.py", line 42, in augment_visit
checker = get_checker(linter, checker_method.im_class)
File "/Users/syabro/.virtualenvs/homeowners17/lib/python2.7/site-packages/pylint_plugin_utils/__init__.py", line 27, in get_checker
raise NoSuchChecker(checker_class)
pylint_plugin_utils.NoSuchChecker
from prospector.
More information to think about
~/Projects/assura/homeowners/homeowners17(branch:1296_django17_new) » pylint --load-plugins pylint_django
<class 'pylint.checkers.base.NameChecker'>
[<pylint.lint.PyLinter object at 0x1031ca8d0>,
<site-packages.pylint.checkers.similar.SimilarChecker object at 0x10313e310>,
<site-packages.pylint.checkers.logging.LoggingChecker object at 0x1031361d0>,
<site-packages.pylint.checkers.newstyle.NewStyleConflictChecker object at 0x103136c10>,
<site-packages.pylint.checkers.format.FormatChecker object at 0x102eeb710>,
<site-packages.pylint.checkers.imports.ImportsChecker object at 0x10312b490>,
<site-packages.pylint.checkers.variables.VariablesChecker object at 0x1031ec350>,
<site-packages.pylint.checkers.misc.EncodingChecker object at 0x103136910>,
<site-packages.pylint.checkers.stdlib.OpenModeChecker object at 0x10313efd0>,
<site-packages.pylint.checkers.raw_metrics.RawMetricsChecker object at 0x10313e150>,
<site-packages.pylint.checkers.classes.ClassChecker object at 0x102ecf590>,
<site-packages.pylint.checkers.design_analysis.MisdesignChecker object at 0x102ed8d50>,
<site-packages.pylint.checkers.strings.StringConstantChecker object at 0x1031e4050>,
<site-packages.pylint.checkers.base.BasicErrorChecker object at 0x1031cae50>,
<site-packages.pylint.checkers.base.BasicChecker object at 0x102ec52d0>,
<site-packages.pylint.checkers.base.NameChecker object at 0x102ecf050>,
<site-packages.pylint.checkers.base.DocStringChecker object at 0x102ecf350>,
<site-packages.pylint.checkers.base.PassChecker object at 0x102ecf450>,
<site-packages.pylint.checkers.base.LambdaForComprehensionChecker object at 0x102ecf510>,
<site-packages.pylint.checkers.exceptions.ExceptionsChecker object at 0x102ee2ad0>,
<site-packages.pylint.checkers.typecheck.TypeChecker object at 0x1031e4110>,
<site-packages.pylint.checkers.strings.StringFormatChecker object at 0x103148250>,
<site-packages.pylint.checkers.strings.StringMethodsChecker object at 0x1031dbf90>]
Looks like a path issue
<class 'pylint.checkers.base.NameChecker'>
is class which is not found. But pylint imported all classes with site-packages
prefix
from prospector.
Have you tried recreating the virtualenv and installing the latest release into that virtualenv?
from prospector.
@svisser just tried.
Doesn't help. Will try to dig deeper
from prospector.
Found a bug in astroid
https://bitbucket.org/logilab/astroid/pull-request/57/fixed-module-importing-with-extra-path/diff
Fixed, but dunno when they'll update :)
from prospector.
Related Issues (20)
- [BUG] Mypy is described as experimental when it's now stable HOT 1
- [BUG] prospector2 won't install on Windows apparently since using forward slash instead of os.path.join HOT 1
- Prospector 1.10.2 does not support `with_mypy` optional tool [in conda] HOT 5
- [BUG] prospector fails when pyproject.toml contain multiple constraints dependencies
- [FEATURE REQUEST] MyPy check-untyped-defs option.
- [BUG] Incorrect additional_dependencies documentation to run prospector as a pre-commit hook with mypy support HOT 2
- [BUG] toml support is incomplete HOT 1
- [PKG SUPPORT] `pylint <3` and Python 3.12 HOT 11
- [PKG SUPPORT] changes for support of `flake >=6.0.0` (and Python 3.12, implicit) HOT 3
- [BUG] pre-commit hook fails on Python 3.12 because of deprecated pkg_resources HOT 3
- [BUG] False positive E231 error in pycodestyle HOT 3
- [BUG] Fatal error pylint: astroid-error HOT 1
- [FEATURE REQUEST] How to use `prospector` on a string
- [BUG] missing dependency: setuptools HOT 1
- [BUG] Crash with ValueError HOT 1
- [BUG] prospector fails with UnicodeDecodeError on requirements.txt having DOS (CRLF) line endings HOT 2
- [BUG] `prospector[with_pyroma]` not appearing to install pyroma when creating conda environments
- [FEATURE REQUEST] Baseline generation
- [BUG] Strange errors with python version 3.12.3
- [BUG] Python 3.12.2/4 - ModuleNotFoundError: No module named 'pkg_resources' HOT 1
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 prospector.