-
Notifications
You must be signed in to change notification settings - Fork 513
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
ouster-sdk package triggers InvalidVersion exception (PEP 440) #1491
Comments
It’s coming from the upgrade to packaging somewhere. There must be an extra in one of the transitive deps that has an invalid specifier. |
While investigating this issue, I determined that removing |
Definitely seems like you’ve identified the problematic specifier. Try putting a space after the semicolon before platform_system? |
Looks like I can reproduce the issue. Seems to be something going on between modern
If I install |
I think I've got to the bottom of this. The
To have this work, I think you could use:
|
There's a fix proposed in the problematic package: ouster-lidar/ouster_example#560 (comment) I'm going to close this issue for now. I do think we're probably going to see a few more problematic packages because we are using a more modern version of packaging and setuptools than If it becomes too problematic, we can consider what a rollback to older versions of packaging and/or setuptools might look like or reopen this issue. |
Sounds good to me. Thank you for taking time to help get to the bottom of the issue. I really appreciate it. |
I set aside this problem for a while and only started looking at it again today. What I'm realizing is that This is making me wonder whether I don't know how to override the value of |
🐞 bug report
Affected Rule
whl_library
pip_parse
Is this a regression?
Yes. This issue does not appear in 0.25.0, but it is present in 0.26.0.
Description
When installing the ouster-sdk package from pypi, it triggers an InvalidVersion exception (see the Exception section below).
I originally filed an issue with the ouster-sdk maintainers. That issue can be found here:
ouster-lidar/ouster_example#560
There is some valuable discussion there. Notably, the ouster-sdk version is 0.9.0, which should be PEP 440 compliant. It is unclear where the version string that is causing the InvalidVersion exception is coming from. It does appear to be something specific about the ouster-sdk wheel though, since I do not have problems with other packages.
🔬 Minimal Reproduction
Minimal reproduction with instructions for running:
https://github.com/kgreenek/ouster_sdk_pep440
🔥 Exception or Error
🌍 Your Environment
Operating System:
Output of
bazel version
:Rules_python version:
The text was updated successfully, but these errors were encountered: