python-greenlet / greenlet

Lightweight in-process concurrent programming
Other
1.63k stars 247 forks source link

greenlet v3.0.2 Install Fails to Build Wheel #391

Closed dgonzo27 closed 8 months ago

dgonzo27 commented 9 months ago

I have a Dockerized Python application that installs SQLAlchemy which depends on greenlet != 0.4.17.

Up until an hour ago, my build process would download the .whl file for greenlet (v3.0.1).

Screenshot 2023-12-08 at 2 48 19 PM

But since greenlet v3.0.2 was released, my build process downloads the tar.gz file and fails to build the wheel.

Screenshot 2023-12-08 at 2 50 10 PM

Screenshot 2023-12-08 at 2 50 25 PM

jamadden commented 9 months ago

You pasted a couple of blurry images that don't show any actual error messages. How am I supposed to help given no information?

At any rate, please try again; it's likely that the wheels hadn't finished uploading when you tried.

jamadden commented 9 months ago

@utahkay It looks like you're using a PyPI mirror. Perhaps it hasn't caught up to the actual PyPI? The same set of wheels have been uploaded for 3.0.2 as for 3.0.1, so if there was a binary that worked for 3.0.1 there should be one for 3.0.2. You can try using pip's --index-url to connect to the official PyPI, and you can use verbose mode to see what wheels pip looks for and can find.

Building from source requires a working C++ toolchain, and the Python development headers. Many distros package those separately from the main Python binaries, so you probably need to install a -dev package of some kind if you want to build from source.

utahkay commented 9 months ago

I had the same issue today; I can install greenlet 3.0.1 but as soon as 3.0.2 was released today my build started failing. (on Amazon Linux 2023).

I installed g++ and python-devel, and now I can build.

yum install g++
yum install python3.11-devel

(I have to build from source, I don't think there's a wheel for Amazon Linux)