INFO: Inspecting module urlparse.py. ERROR: Oops, it seems internal Pythoscope error occured. Please file a bug report at https://bugs.launchpad.net/pythoscope Uncaught exception. Entering post mortem debugging Running 'cont' or 'step' will restart the program > /home/ryan/src/pythoscope_test/scope-env/lib/python2.6/site-packages/pythoscope-0.4.1-py2.6.egg/pythoscope/astvisitor.py(76)derive_class_name() -> raise ASTError("Unknown node type: %r." % node) (Pdb) w /home/ryan/src/pythoscope_test/python/Lib/pdb.py(1303)main() -> pdb._runscript(mainpyfile) /home/ryan/src/pythoscope_test/python/Lib/pdb.py(1222)_runscript() -> self.run(statement) /home/ryan/src/pythoscope_test/python/Lib/bdb.py(379)run() -> exec cmd in globals, locals (1)() /home/ryan/src/pythoscope_test/scope-env/bin/pythoscope(8)() -> load_entry_point('pythoscope==0.4.1', 'console_scripts', 'pythoscope')() /home/ryan/src/pythoscope_test/scope-env/lib/python2.6/site-packages/pythoscope-0.4.1-py2.6.egg/pythoscope/__init__.py(184)main() -> init_project(project_path) /home/ryan/src/pythoscope_test/scope-env/lib/python2.6/site-packages/pythoscope-0.4.1-py2.6.egg/pythoscope/__init__.py(112)init_project() -> inspect_project_statically(project) /home/ryan/src/pythoscope_test/scope-env/lib/python2.6/site-packages/pythoscope-0.4.1-py2.6.egg/pythoscope/inspector/__init__.py(55)inspect_project_statically() -> return add_and_update_modules(project) + \ /home/ryan/src/pythoscope_test/scope-env/lib/python2.6/site-packages/pythoscope-0.4.1-py2.6.egg/pythoscope/inspector/__init__.py(37)add_and_update_modules() -> static.inspect_module(project, modpath) /home/ryan/src/pythoscope_test/scope-env/lib/python2.6/site-packages/pythoscope-0.4.1-py2.6.egg/pythoscope/inspector/static.py(129)inspect_module() -> return inspect_code(project, path, read_file_contents(path)) /home/ryan/src/pythoscope_test/scope-env/lib/python2.6/site-packages/pythoscope-0.4.1-py2.6.egg/pythoscope/inspector/static.py(137)inspect_code() -> visitor = descend(tree, ModuleVisitor) /home/ryan/src/pythoscope_test/scope-env/lib/python2.6/site-packages/pythoscope-0.4.1-py2.6.egg/pythoscope/astvisitor.py(20)descend() -> visitor.visit(tree) /home/ryan/src/pythoscope_test/scope-env/lib/python2.6/site-packages/pythoscope-0.4.1-py2.6.egg/pythoscope/astvisitor.py(160)visit() -> self.visit_node(tree) /home/ryan/src/pythoscope_test/scope-env/lib/python2.6/site-packages/pythoscope-0.4.1-py2.6.egg/pythoscope/astvisitor.py(174)visit_node() -> getattr(self, method)(results) /home/ryan/src/pythoscope_test/scope-env/lib/python2.6/site-packages/pythoscope-0.4.1-py2.6.egg/pythoscope/astvisitor.py(196)_visit_all() -> self.visit(results['nodes']) /home/ryan/src/pythoscope_test/scope-env/lib/python2.6/site-packages/pythoscope-0.4.1-py2.6.egg/pythoscope/astvisitor.py(163)visit() -> self.visit(subtree) /home/ryan/src/pythoscope_test/scope-env/lib/python2.6/site-packages/pythoscope-0.4.1-py2.6.egg/pythoscope/astvisitor.py(160)visit() -> self.visit_node(tree) /home/ryan/src/pythoscope_test/scope-env/lib/python2.6/site-packages/pythoscope-0.4.1-py2.6.egg/pythoscope/astvisitor.py(174)visit_node() -> getattr(self, method)(results) /home/ryan/src/pythoscope_test/scope-env/lib/python2.6/site-packages/pythoscope-0.4.1-py2.6.egg/pythoscope/astvisitor.py(200)_visit_class() -> bases=derive_class_names(results.get('bases')), /home/ryan/src/pythoscope_test/scope-env/lib/python2.6/site-packages/pythoscope-0.4.1-py2.6.egg/pythoscope/astvisitor.py(82)derive_class_names() -> return map(derive_class_name, remove_commas(node.children)) /home/ryan/src/pythoscope_test/scope-env/lib/python2.6/site-packages/pythoscope-0.4.1-py2.6.egg/pythoscope/astvisitor.py(74)derive_class_name() -> return "".join(map(derive_class_name, node.children)) /home/ryan/src/pythoscope_test/scope-env/lib/python2.6/site-packages/pythoscope-0.4.1-py2.6.egg/pythoscope/astvisitor.py(74)derive_class_name() -> return "".join(map(derive_class_name, node.children)) > /home/ryan/src/pythoscope_test/scope-env/lib/python2.6/site-packages/pythoscope-0.4.1-py2.6.egg/pythoscope/astvisitor.py(76)derive_class_name() -> raise ASTError("Unknown node type: %r." % node) (Pdb) list 71 if is_leaf_of_type(node, token.NAME, token.DOT): 72 return node.value 73 elif is_node_of_type(node, 'power', 'trailer'): 74 return "".join(map(derive_class_name, node.children)) 75 else: 76 -> raise ASTError("Unknown node type: %r." % node) 77 78 def derive_class_names(node): 79 if node is None: 80 return [] 81 elif is_node_of_type(node, 'arglist'): (Pdb) print node ( (Pdb) node Leaf(7, '(')