-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Python] Error compiling Cython files on Windows during release verification #40375
Comments
Using Python 3.11 instead didn't magically fix it. |
It looks like this warning was added to cython recently; seems to be present in cython 3.0.9. Since the warning indicates |
Fixed by #40387 |
any workaround for this one? |
and also it will be great if we can back port to older branch and cut a release to unblock folks |
@mkumatag For now, you will have to ensure you are using cython<3.0.9 while installing pyarrow from source. |
Googling a bit, I think you should be able to specify "constraints" to pip:
The other option is to disable the build-isolation, and ensure you have installed the build dependencies up front:
|
My case is little different, I'm using the micropipenv tool to install the packages form the Pipfile.lock got this entry as an indirect dependency for this project. I tried the pinning the cython in the Pipfile itself but couldn't control this version pinning. Not sure what else I need to look into.. |
The PIP_CONSTRAINT approach doesn't work? ( I would assume pipenv is still using pip to actually install the packages, so I would hope it picks up that env variable) |
yes, this solution worked for me :) thanks.
|
Should be fixed in 16.0.0... apache/arrow#40375
FYI, 15.0.2 was released that includes the fix for this. So the latest pyarrow should again build fine with latest cython |
Describe the bug, including details regarding any error messages, version, and platform.
I ran into this while doing release verification for 15.0.1 RC0. The code in the error message is relatively new (PyCapsule) but old enough that it may just be my setup.
On Windows 11 in cmd.exe prompt with Anaconda set up, I ran
C++ compiled fine and then when it got to building PyArrow, I see:
I noted that the release verification script pins Python 3.8 so right now I'm re-running verification with Python 3.11 in the errors are related to that.
Component(s)
Python, Release
The text was updated successfully, but these errors were encountered: