-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[BUG] Pip fails with Python 3.13 Free Threading #4415
Comments
Hi @FabriceSalvaire , by looking at the stacktrace it seems that the code is crashing when running the following code that belongs to the def get_version():
version_file = "src/PIL/_version.py"
with open(version_file, encoding="utf-8") as f:
exec(compile(f.read(), version_file, "exec"))
return locals()["__version__"] i.e., after executing the This seems like it is a problem with that specific Or maybe Python 3.13 has a problem with an Anotgwr possibility is that this version of Python does not like the |
This was fixed on the Pillow side here. |
Still it sounds like a limitation of that particular implementation of Python... Apparently it cannot handle and (It might also be the |
Ah ya it is Pillow, that works
|
@abravalheri It is due to PEP 667 locals |
I close since we have the explanation. |
this also failed me o a custom Python 3.12 build - both for pillow 10.3.0 and pillow 10.3.0 - 10.4.0-dev0 from the pip install from git command line above worked. |
Will a new version of pillow be pushed into PyPI soon that fixes this? |
setuptools version
70.0.0
Python version
3.13 ft
OS
Fedora 39
Additional environment information
pypa/pip#12747
Description
Pip fails to install a package (Pillow) with Python 3.13 Free Threading.
Pillow can be installed from source using
python3.13t setup.py install
.I think this is annoying to perform Python 3.13 Free Threading crash test...
Expected behavior
...
How to Reproduce
Output
The text was updated successfully, but these errors were encountered: