-
-
Notifications
You must be signed in to change notification settings - Fork 287
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
Pex skipping pandas activation #1017
Comments
It works if i use pex==2.1.6 and fails for everything about that version |
In pex 2.1.7 we started honoring python_requires metadata in #923 fixing #898 which explains your observation that this problem does not exist in pex 2.1.6. It looks like that fix has a bug when converting Whereas Thanks for pinning down the Pex version where things went wrong, that was helpful pinpointing this. |
Previously `Requires-Python` metadata was unconditionally mapped to `python_version` environment marker clauses. This was incorrect for any `Requires-Python` clauses that included version information beyond `X.Y` and prevented activation of requirements in PEX files at runtime in some cases. A previously failing test is added for the pandas case that revealed this issue. Fixes pex-tool#1017
Previously `Requires-Python` metadata was unconditionally mapped to `python_version` environment marker clauses. This was incorrect for any `Requires-Python` clauses that included version information beyond `X.Y` and prevented activation of requirements in PEX files at runtime in some cases. A previously failing test is added for the pandas case that revealed this issue. Fixes #1017
Torch could not be packaged with the previously pinned version due to a bug fixed in 2.1.21 (same bug as described here pex-tool/pex#1017)
Running
pex pandas==1.0.5 -v
using python 3.6.2 outputs.pex: Skipping activation of `pandas==1.0.5; python_version >= "3.6.1"` due to environment marker de-selection
Thus
import pandas
results in :Traceback (most recent call last): File "<console>", line 1, in <module> ModuleNotFoundError: No module named 'pandas'
The text was updated successfully, but these errors were encountered: