Comments (4)
I have to admit that, although it's not recommended, I usually use the system Python (with pip install --user
for packages), so I hadn't noticed this. Thanks for letting me know!
Judging by the error message, it seems the pyan module is not getting installed to site-packages of the temporary venv for some reason. I take it installing other packages in a temporary venv works?
from pyan.
Yes, it works. Just a bit more details:
when pip installed from git repo within temporary virtualenv
(tmp-1aed8d19cf30cb7d) ➜ pyan git:(master) ✗ head $(which pyan3)
#!/home/ttylec/.virtualenvs/tmp-1aed8d19cf30cb7d/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
and when pip installed from pypi:
(tmp-5cd86f124b295af1) ➜ tmp-5cd86f124b295af1 head $(which pyan3)
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
In the latter case, the python interpreter path if not set properly (it points to system interpreter, not one within venv).
from pyan.
Thanks the analysis! The script using the wrong interpreter explains why it's not finding the module. Wait, I thought I already fix... aaaah, no, I didn't! See #11.
The hardcoded hashbang is at least part of it - there may also be something else. I suppose I'll first fix #11, and then set up a venv and have a look myself. :)
from pyan.
PyPI package pyan3
updated. Please try again with the latest version, and reopen this issue if necessary.
(This should work in the new 1.1.1.)
from pyan.
Related Issues (20)
- __init__() got multiple values for argument 'root' HOT 8
- Integrate modvis.py to main pyan executable
- BrokenPipeError
- Call graph from file contents
- Different order for edges between different calls when several source files are provided
- got multiple values for argument 'root' after upgrade 1.1.1 -> 1.20 HOT 5
- Feature Suggestion: Customize depth (level) of generated graph
- Sphinx integration HOT 1
- FileNotFoundError: [Errno 2] No such file or directory: '' HOT 2
- Tutorial or document
- Is the project still maintained? HOT 4
- Would like to generate call graph for a very basic file HOT 2
- What is "dot"? HOT 1
- Call graphs are wrong -- don't respect namespaces
- [question] What is the intended purpose of white module nodes?
- cannot have a file called “Graph.py” that has module level call to a known function HOT 1
- Unable to use Pyan HOT 2
- issue with list comprehension in python 3.12 HOT 5
- Help wanted - sign up here! HOT 5
- CallGraphVisitor wrong parameters HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyan.