-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CallGraphVisitor wrong parameters #96
Comments
See [Fix wrong arguments for CallGraphVisitor] (#65). |
@egoughnour How can I use --root ? Can you make an example please? |
TL;DR maybe try installing from the github URI first, then pass the root directory as the value of Anyhow, let's start with what's broken. Running something like the below command is going to fail, probably.
There are a lot of arguments but notice root isn't specified.
This is fixed and explained in a diff (which doesn't seem to survive copy-paste):
That is the right hand side. The left hand side is identical except that the keyword args/kwargs don't get supplied explicitly. Anyhow the point is that the call from the CLI/shell does not (in some versions--probably including what's in PyPI now) call the constructor correctly based on the CLI arguments when it is run directly. If you call pyan (such as If you want the latest code (via pip) you could try something like this:
or skip the Otherwise try something like this (supplying root)
You might still need to make the change on line 206 of pyan/main.py. Note that installing from the Github URI directly would (probably) make this manual code change unnecessary since the default branch should have the change already, though it seems PyPI doesn't have it yet. |
It seems that the library is somewhat outdated. I get with Python 3.11:
Seems that there was a change in how to call the function. Is this library still maintained?
The text was updated successfully, but these errors were encountered: