Code Monkey home page Code Monkey logo

Comments (8)

svisser avatar svisser commented on July 21, 2024

I'm getting the same thing so the 0.6.3 release does not appear to have fixed it.

from prospector.

carlio avatar carlio commented on July 21, 2024

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.

svisser avatar svisser commented on July 21, 2024

Yeah, it works for me now. Thanks!

from prospector.

syabro avatar syabro commented on July 21, 2024

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.

syabro avatar syabro commented on July 21, 2024

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.

svisser avatar svisser commented on July 21, 2024

Have you tried recreating the virtualenv and installing the latest release into that virtualenv?

from prospector.

syabro avatar syabro commented on July 21, 2024

@svisser just tried.
Doesn't help. Will try to dig deeper

from prospector.

syabro avatar syabro commented on July 21, 2024

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)

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.