Skip to content

AttributeError: 'NoneType' object has no attribute 'endswith' #162

Description

@55cc

Traceback (most recent call last):
File "", line 1, in
File "", line 1, in to_javascript
File "python_to_pythonjs.py", line 3801, in main
module_path = module_path
File "python_to_pythonjs.py", line 259, in init
self.visit(node)
File "python_to_pythonjs.py", line 267, in visit
res = visitor(node)
File "python_to_pythonjs.py", line 406, in visit_ImportFrom
path = os.path.join( self._module_path, node.module+'.py')
File "/lib/python2.7/posixpath.py", line 68, in join
elif path == '' or path.endswith('/'):
AttributeError: 'NoneType' object has no attribute 'endswith'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions