Skip to content
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

Would like to generate call graph for a very basic file #86

Open
amine-aboufirass opened this issue Aug 12, 2022 · 2 comments
Open

Would like to generate call graph for a very basic file #86

amine-aboufirass opened this issue Aug 12, 2022 · 2 comments

Comments

@amine-aboufirass
Copy link

I'd like to generate a call graph for the following minimum working example:

def g(x):
    return x+2

def h(x):
    return x*7

def f(x):
    r = g(x)
    s = h(r)
    return s

if __name__=="__main__":
    print(f(3))

I tried the following command:

pyan3 test.py --dot

But I got an error:

TypeError: init() got multiple values for argument 'root'

What am I doing wrong here?

@romain-dartigues
Copy link

This is an unfortunate bug in version 1.20; downgrade to the previous version (ie: python -m pip install pyan3==1.1.1).

Duplicate of,at least, #79, #72 and #64.

@fleckmg
Copy link

fleckmg commented Mar 2, 2023

The current release containing this bug will be 2 years old next week.

Seems pyan is dead?

Anyway, thanks for the workaround

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants