-
-
Notifications
You must be signed in to change notification settings - Fork 90
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
[Ubuntu 18 LTS + Anaconda3] Pigar seems to not find all imports in a project. #75
Comments
I have the same problem, I use pigar on a big torch project, and it doesnt even get close to finding all the imports. torch is not even added, though it says : "torch referenced from: blablabla And if I answer yes, it outputs a requirements file without torch and many modules... |
I found that the output of pigar varies in function of which virtualenv you run it from. If all the requirements are already installed, it seems that pigar won't output them in the requirements file. Doesn't it defeat the purpose ? The goal is to output all the necessary requirements regardless of whether they are already installed, right ? |
@JPGlaser FYI, I am guessing you are facing the same issue with @jlhervy
This is the limitation of pigar, it can not find every package correctly only by the import name, for example: import a
def myfunc(whatever):
print(a.take(whatever)) Maybe both You can read the FAQ, I will add more explanations for that. |
Alright, and what about the different output when you use pigar from different virtual environments ? For instance, if pigar outputs a requirements.txt with numpy, and you run |
Please read the FAQ, it is the same issue.
If this bug is true, please provide a minimal environment to reproduce it. |
I am currently refining a project and need to generate a requirements.txt. For some reason, when I run pigar on the folder containing the main scripts and module src files, it only returns the following:
This is no-where close to the correct number of imported modules. Am I executing this incorrectly?
~ Joe G.
The text was updated successfully, but these errors were encountered: