-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
pyscan seems to depend on pip #14
Comments
if you read the error, you can see that using the The fallback also should not pose a problem as it resorts to pypi.org when a version couldn't be gotten from pip. However I see the point in making pyscan aware of whether pip exists or not beforehand. |
pyscan does not do anything. When I put pip on the path, it at least lists the dependencies... compare with pip on path (ignore the error for now - reported in #13)
without pip on path
with `--cache-off
Maybe I fail to understand the output and/or the I currently do not have access to a single Python project where pyscan would work 100% and outputs something like on the screenshot from your readme. Could you link to a working project? So I can make sure I understand which issues are from the Python projects, and which from my system setup. |
That is extremely weird and something that has never come up in my test cases. Have you tried it with a requirements.txt ? Specifying the versions are optional I'm AFK at the moment but the reqs i tested against, one had no versions and other one had versions, both didnt fail. The pypi.org error happens to due to the way the URL is string formatted, somehow the version gets injected into it instead of solely the package name, very weird. |
Indeed, requirements.txt + putting pip on path works.
|
Now that we know this works, it just got even more weirder. Could you show me the content of what pyscan was trying to read from earlier where the 404 errors happened? Im sure something is going wrong somewhere along the parsing process. |
The issue which resulted in the 404 is reported in #13 - there is also a link to the pyproject.toml. |
theres no parsing done at extract_imports_pyproject() at extractor.rs, i must have forgotten it. Looks like we found the root of the problem |
Describe the bug
tool does not work when
pip
is not on your pathTo Reproduce
Note:
Not having a global pip is indeed a very good thing on e.g Ubuntu, as then you completely avoid installing packages into the global site-packages, which could break your Ubuntu installation.
And when you ask how I install packages... When creating a venv, the tool
virtualenv
also installs pip and setuptools into that environment.The text was updated successfully, but these errors were encountered: