Skip to content

Instantly share code, notes, and snippets.

@klen
Created June 6, 2013 12:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save klen/5721176 to your computer and use it in GitHub Desktop.
Save klen/5721176 to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "pylama/pylint/logilab/astng/scoped_nodes.py", line 284, in getattr
return [self.import_module(name, relative_only=True)]
File "pylama/pylint/logilab/astng/scoped_nodes.py", line 339, in import_module
return MANAGER.astng_from_module_name(absmodname)
File "pylama/pylint/logilab/astng/manager.py", line 133, in astng_from_module_name
return self.astng_from_file(filepath, modname, fallback=False)
File "pylama/pylint/logilab/astng/manager.py", line 104, in astng_from_file
return ASTNGBuilder(self).file_build(filepath, modname)
File "pylama/pylint/logilab/astng/builder.py", line 128, in file_build
node = self.string_build(data, modname, path)
File "pylama/pylint/logilab/astng/builder.py", line 134, in string_build
module = self._data_build(data, modname, path)
File "pylama/pylint/logilab/astng/builder.py", line 161, in _data_build
module = self.rebuilder.visit_module(node, modname, package)
File "pylama/pylint/logilab/astng/rebuilder.py", line 615, in visit_module
newnode.body = [self.visit(child, newnode) for child in node.body]
File "pylama/pylint/logilab/astng/rebuilder.py", line 136, in visit
return self._visit_meths[cls](node, parent)
File "pylama/pylint/logilab/astng/rebuilder.py", line 296, in visit_class
newnode.body = [self.visit(child, newnode) for child in node.body]
File "pylama/pylint/logilab/astng/rebuilder.py", line 136, in visit
return self._visit_meths[cls](node, parent)
File "pylama/pylint/logilab/astng/rebuilder.py", line 479, in visit_function
self._global_names.pop()
IndexError: pop from empty list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment