Technologicat / pyan

Static call graph generator. The official Python 3 version. Development repo.
GNU General Public License v2.0
324 stars 57 forks source link

Usage section on github mentions pyan.create_callgraph() but there seems to be no such function #44

Closed Synaps3 closed 3 years ago

Synaps3 commented 3 years ago

Trying to use the package via script as suggested in the usage section should work, but errors as it can't find the method.

johnyf commented 3 years ago

Using #43, i.e., the branch https://github.com/johnyf/pyan/tree/typing (to avoid a bug that would prevent importing the package), the following works:

from pyan import create_callgraph

Please note that the repository is ahead of the version currently available through the Python Package Index (PyPI).

Synaps3 commented 3 years ago

Thanks! Could you update the font page guide to indicate that the needed code is not in the package index version yet?

johnyf commented 3 years ago

I do not have write access to this repository, and also the documentation will correspond to the package when the next PyPI release occurs.

Synaps3 commented 3 years ago

I do not have write access to this repository, and also the documentation will correspond to the package when the next PyPI release occurs.

Using #43, i.e., the branch https://github.com/johnyf/pyan/tree/typing (to avoid a bug that would prevent importing the package), the following works:

from pyan import create_callgraph

Please note that the repository is ahead of the version currently available through the Python Package Index (PyPI).

So I just got around to running this and it still has code like:

print foo()

I thought the print keyword was deprecated in python2? Are you sure this code is python3 compatible? It does not run for me.

johnyf commented 3 years ago

Please see https://github.com/johnyf/pyan/issues/8#issuecomment-698600360 (I couldn't find any old-style print statements).

Technologicat commented 3 years ago

I do not have write access to this repository, and also the documentation will correspond to the package when the next PyPI release occurs.

@johnyf : For a while already, you've been more active about pyan than me. I've invited you as a collaborator to this repository.

johnyf commented 3 years ago

Thank you for inviting me as a collaborator to this repository.

Technologicat commented 3 years ago

PyPI package pyan3 updated. Please try again with the latest version, and reopen this issue if necessary.

Technologicat commented 3 years ago

@johnyf : You're welcome.