Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not running pyling in v1.1.6.3 #331

Closed
mpromain opened this issue Jun 12, 2019 · 7 comments
Closed

Not running pyling in v1.1.6.3 #331

mpromain opened this issue Jun 12, 2019 · 7 comments

Comments

@mpromain
Copy link

Hi,

new release v1.1.6.3 have a bug with execute pylint.

.
  Line: None
    pylint: failure / Tool pylint failed to run (exception was raised)
Traceback (most recent call last):
  File "/home/mpro/.local/bin/prospector", line 11, in <module>
    sys.exit(main())
  File "/home/mpro/.local/lib/python3.6/site-packages/prospector/run.py", line 173, in main
    prospector.execute()
  File "/home/mpro/.local/lib/python3.6/site-packages/prospector/run.py", line 66, in execute
    messages += tool.run(found_files)
  File "/home/mpro/.local/lib/python3.6/site-packages/prospector/tools/pylint/__init__.py", line 256, in run
    self._linter.check(self._args)
  File "/home/mpro/.local/lib/python3.6/site-packages/pylint/lint.py", line 801, in check
    self._do_check(files_or_modules)
  File "/home/mpro/.local/lib/python3.6/site-packages/pylint/lint.py", line 938, in _do_check
    self.check_astroid_module(ast_node, walker, rawcheckers, tokencheckers)
  File "/home/mpro/.local/lib/python3.6/site-packages/pylint/lint.py", line 1018, in check_astroid_module
    walker.walk(ast_node)
  File "/home/mpro/.local/lib/python3.6/site-packages/pylint/utils.py", line 1162, in walk
    self.walk(child)
  File "/home/mpro/.local/lib/python3.6/site-packages/pylint/utils.py", line 1159, in walk
    cb(astroid)
  File "/home/mpro/.local/lib/python3.6/site-packages/pylint/checkers/variables.py", line 1360, in visit_import
    module = next(node.infer_name_module(parts[0]))
AttributeError: 'Import' object has no attribute 'infer_name_module'

Thanks
Martin

@mpromain
Copy link
Author

cc @chocoelho

@chocoelho
Copy link
Contributor

On it

@chocoelho
Copy link
Contributor

@mpromain new version released

@dgrant
Copy link

dgrant commented Jul 2, 2019

I'm still seeing this issue... although not sure if it's the same one exactly. I'm seeing

Line: None
    pylint: failure / Tool pylint failed to run (exception was raised)

but how do I see the exception output?

@dgrant
Copy link

dgrant commented Jul 2, 2019

nvm, I found -X

@dgrant
Copy link

dgrant commented Jul 2, 2019

I'll file a new bug, it's different

@chocoelho
Copy link
Contributor

Closing this as prospector 1.1.7 should fix this issue. Feel free to reopen it if this is erroring for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants