-
Notifications
You must be signed in to change notification settings - Fork 308
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
ORT not able to analyze any Python based project (setuptool breaking) #5159
Comments
I can confirm the bug. There's an open source package to easy reproduce it and can be used as reference: Look like some discrepancy on the manipulating the setuptools new versions, as our dependency analyzer tool is pydep is really old. To be investigated. Here's the output of analyzer error
|
@heliocastro are you planning to work on this? |
The original `pydep` tool is archived by now [1] and running it with newer Python versions might cause problems [2]. So replace it by simply "running" `setup.py` with the option for the metadata field to get. Resolves #2816. [1]: https://github.com/sourcegraph/pydep [2]: #5159 (comment) Signed-off-by: Sebastian Schuberth <[email protected]>
The original `pydep` tool is archived by now [1] and running it with newer Python versions might cause problems [2]. So replace it by simply "running" `setup.py` with the option for the metadata field to get. Resolves #2816. [1]: https://github.com/sourcegraph/pydep [2]: #5159 (comment) Signed-off-by: Sebastian Schuberth <[email protected]>
The original `pydep` tool is archived by now [1] and running it with newer Python versions might cause problems [2]. So replace it by simply "running" `setup.py` with the option for the metadata field to get. Resolves #2816. [1]: https://github.com/sourcegraph/pydep [2]: #5159 (comment) Signed-off-by: Sebastian Schuberth <[email protected]>
@meeraa247, while your original post does not detail the actual error message, I assume it's really the same as in @heliocastro's post. So, can you guys give #5247 a try to confirm it fixes this specific issue? |
Interestingly, that project exclusively uses a developer_requirements.txt file, which does even trigger the code path to run
|
The original `pydep` tool is archived by now [1] and running it with newer Python versions might cause problems [2]. So replace it by simply "running" `setup.py` with the option for the metadata field to get. Resolves #2816. [1]: https://github.com/sourcegraph/pydep [2]: #5159 (comment) Signed-off-by: Sebastian Schuberth <[email protected]>
Feel free to reopen if this exact same issue still appears. |
I ran into the same error while trying to scan the repository for Django This is the output for the same
The following is the output when run with
|
@HardikRa, the ORT distribution (in contrast to the Docker image) does not come with third-party tools as required by the analyzer. In particular, you need to ensure that the |
I have installed the
|
Hi @ all,
first of all: We appreciate this community a all and would like to thank you for all the support. Our team heavily relies on scanning & analyzing projects using ORT.
Recently we came across a small project based on Python (v.3.8.x).
During the ANALYZE Step, we identified the following ERRORS (from the logs):
At first, it seemed to be an issue with the so called "virtualenv". @heliocastro also checked and confirmed this behaviour from side.
We also tried to specify a dedicated python version for ORT (using the docker build process), but that did not help.
Any help would be highly appreciated as this blocks our processes for this project at the moment.
Thank you.
The text was updated successfully, but these errors were encountered: