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

Raises TypeError on files using relative import #7

Open
perey opened this issue Mar 21, 2014 · 1 comment
Open

Raises TypeError on files using relative import #7

perey opened this issue Mar 21, 2014 · 1 comment

Comments

@perey
Copy link

perey commented Mar 21, 2014

At least, I'm pretty sure that relative imports are the only thing in common, across all modules producing the error below.

Traceback (most recent call last):
  File "<redacted>/pyqver3.py", line 267, in <module>
    ver = get_versions(source, fn)
  File "<redacted>/pyqver3.py", line 193, in get_versions
    checker.visit(tree)
  File "/usr/lib/python3.2/ast.py", line 248, in visit
    return visitor(node)
  File "/usr/lib/python3.2/ast.py", line 256, in generic_visit
    self.visit(item)
  File "/usr/lib/python3.2/ast.py", line 248, in visit
    return visitor(node)
  File "<redacted>/pyqver3.py", line 174, in visit_ImportFrom
    name = node.module + "." + n.name
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
@benjaoming
Copy link

Getting this, too...

benjaoming added a commit to benjaoming/pyqver that referenced this issue Jan 23, 2015
alikins pushed a commit to alikins/pyqver that referenced this issue Apr 20, 2016
alikins pushed a commit to alikins/pyqver that referenced this issue Apr 21, 2016
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