Closed ALeyshon closed 3 years ago
Duplicate of #64
Please pull from git and retry. I merged pull request #65, which fixes this.
We'll make an updated package available shortly.
Hello, Could you please update package ?
Any updates on this?
change the position of root and logger can fix this error
v = CallGraphVisitor(filenames, root, logger)
Use pip install pyan3=1.1.1
, latest pyan3.
This is an issue again with 1.2.0 - revert to 1.1.1 to fix.
After downloading this particular version, i faced the following issue. I was trying to build a dependency graph for pandas
!pyan3 pandas/**/*.py --uses --no-defines --colored --grouped --dot > pandas_call_graph.dot
Traceback (most recent call last):
File "/usr/local/bin/pyan3", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.10/dist-packages/pyan/main.py", line 235, in main
v = CallGraphVisitor(filenames, logger)
File "/usr/local/lib/python3.10/dist-packages/pyan/analyzer.py", line 75, in __init__
self.process()
File "/usr/local/lib/python3.10/dist-packages/pyan/analyzer.py", line 82, in process
self.process_one(filename)
File "/usr/local/lib/python3.10/dist-packages/pyan/analyzer.py", line 96, in process_one
self.visit(ast.parse(content, filename))
File "/usr/lib/python3.10/ast.py", line 418, in visit
return visitor(node)
File "/usr/local/lib/python3.10/dist-packages/pyan/analyzer.py", line 340, in visit_Module
self.generic_visit(node) # visit the **children** of node
File "/usr/lib/python3.10/ast.py", line 426, in generic_visit
self.visit(item)
File "/usr/lib/python3.10/ast.py", line 418, in visit
return visitor(node)
File "/usr/local/lib/python3.10/dist-packages/pyan/analyzer.py", line 454, in visit_FunctionDef
self.visit(stmt)
File "/usr/lib/python3.10/ast.py", line 418, in visit
return visitor(node)
File "/usr/local/lib/python3.10/dist-packages/pyan/analyzer.py", line 752, in visit_AnnAssign
get_ast_node_name(value[0]),
IndexError: list index out of range
Issue Calling pyan3 from command line exits with a TypeError
To reproduce Install using pip and git master:
pip3 install git+https://github.com/Technologicat/pyan.git
Run pyan3 with parameters:pyan3 application.py --dot > test.dot
Environment Python 3.7.10 VIrtualEnv on Ubuntu 21.04