Skip to content
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

Can't run solver on psf/requests versions older than 0.14.2 #98

Open
apotterri opened this issue Aug 13, 2024 · 0 comments
Open

Can't run solver on psf/requests versions older than 0.14.2 #98

apotterri opened this issue Aug 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@apotterri
Copy link
Contributor

Describe the bug

Prior to v0.14.2, psf/requests includes its own version of six. It did this bye adding its packages subdirectory at the beginning of sys.path, ensuring that subsequent imports of six will be loaded from packages.

Unfortunately, the version it includes conflicts with the version in python 3.9. Once the psf/requests version gets loaded, subsequence imports may fail.

For example, the attempt here tries to import the _thread module from six.moves. This fails with the packaged six module, resulting in this error:

...
  File "/usr/share/miniconda/envs/swe-bench/lib/python3.9/site-packages/dateutil/tz/tz.py", line 21, in <module>
    from six.moves import _thread
ImportError: cannot import name '_thread' from 'moves' (unknown location)

As of v0.14.2, packages was no longer being inserted at the beginning of sys.path.

Steps/Code to Reproduce

run the benchmark

Expected Results

don't fail

Actual Results

fail

System Information

No response

@apotterri apotterri added the bug Something isn't working label Aug 13, 2024
@apotterri apotterri changed the title can run solver on psf/requests versions older than 0.14.2 can't run solver on psf/requests versions older than 0.14.2 Aug 13, 2024
@kgilpin kgilpin changed the title can't run solver on psf/requests versions older than 0.14.2 Can't run solver on psf/requests versions older than 0.14.2 Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant