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

AttributeError: 'module' object has no attribute 'versioninfo' #52

Closed
nedbat opened this issue Dec 2, 2015 · 2 comments
Closed

AttributeError: 'module' object has no attribute 'versioninfo' #52

nedbat opened this issue Dec 2, 2015 · 2 comments

Comments

@nedbat
Copy link

nedbat commented Dec 2, 2015

  File "/edx/app/edxapp/venvs/edxapp/bin/pylint", line 11, in <module>
    sys.exit(run_pylint())
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pylint/__init__.py", line 23, in run_pylint
    Run(sys.argv[1:])
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pylint/lint.py", line 1315, in __init__
    linter.check(args)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pylint/lint.py", line 734, in check
    self._do_check(files_or_modules)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pylint/lint.py", line 865, in _do_check
    self.check_astroid_module(ast_node, walker, rawcheckers, tokencheckers)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pylint/lint.py", line 945, in check_astroid_module
    walker.walk(ast_node)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pylint/utils.py", line 938, in walk
    self.walk(child)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pylint/utils.py", line 935, in walk
    cb(astroid)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pylint/checkers/variables.py", line 1025, in visit_importfrom
    self._check_module_attrs(node, module, name.split('.'))
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pylint/checkers/variables.py", line 1091, in _check_module_attrs
    module = next(module.getattr(name)[0].infer())
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/astroid/bases.py", line 364, in infer
    return self._explicit_inference(self, context, **kwargs)
  File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/pylint_django/transforms/fields.py", line 37, in apply_type_shim
    if sys.versioninfo >= (3, 5):
AttributeError: 'module' object has no attribute 'versioninfo'
@carlio
Copy link
Collaborator

carlio commented Dec 2, 2015

How on earth did the tests run, let alone pass with that!? Pushing a fix now...

@carlio
Copy link
Collaborator

carlio commented Dec 2, 2015

Version 0.7.1 is on pypi and has this fixed now, sorry about that.

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

2 participants