GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up|
Thanks for the issue report! I think properly supporting relative imports will take some time, but in the mean time we should at least give a more meaningful error message. |
|
This was fixed in #284 |
mtunique commentedJan 7, 2017
File "/Users/xxx/grumpy/build/lib/python2.7/site-packages/grumpy/compiler/stmt.py", line 302, in visit_Module
self._visit_each(node.body)
File "/Users/xxx/grumpy/build/lib/python2.7/site-packages/grumpy/compiler/stmt.py", line 632, in _visit_each
self.visit(node)
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ast.py", line 241, in visit
return visitor(node)
File "/Users/xxx/grumpy/build/lib/python2.7/site-packages/grumpy/compiler/stmt.py", line 270, in visit_ImportFrom
if node.module.startswith(_NATIVE_MODULE_PREFIX):
AttributeError: 'NoneType' object has no attribute 'startswith'