-
-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
BUILD: Pandas 1.2.5 build no longer works #59038
Comments
potentially caused by this: |
same issue |
We are not planning on adding numpy 2 support to pandas 1.2.5 since numpy 2 compat is a pretty involved process and pandas 1.2.5 is already 3 years old at this point. Please upgrade to pandas 2.2.2 as that is the first pandas version to support numpy 2. |
Hi @lithomas1, I think there's a misunderstanding (I'll take numpy 2.0 mention from the title) I was just pointing out that a change done for numpy 2 seems to have bled into numpy 1.26 as a breaking change, potentially affecting projects that depend on numpy 1.26 Thanks for looking into this |
Sorry for the misunderstanding. Did you mention that this started failing after numpy 2.0 was released? |
No worries! (and thanks again for your time, @lithomas1 ) Correct. Investigating a bit we noticed that the NumPy project did a release release this week (2.0) and we found this change which seems to align with the error message we're getting in the pandas build (i.e. a missing struct attribute
The easiest way a colleague found to repro this is as follows:
|
Can you try installing pandas with (You'll need all dependencies pre-installed, but this should force pip to use your numpy, and not pull its own numpy) |
For what it's worth, this problem seems to be due to this line in pyproject.toml and can be fixed by changing it to |
Yeah, this is maybe something to consider in the future, but for now the |
NEWEST EDIT: Workaround:
OLD: I tried (EDIT: fwiw I got Python 3.11 when I got the the error below, someone reported that it worked while they were using Python 3.9)
|
Can you try upgrading your Cython? This looks like aio-libs/aiohttp#6600, which someone reports was fixed in Cython 0.29.5 |
Thanks for your help @lithomas1 (and @mttr ) ! 🙏 |
Hi, @lithomas1 and @mttr, I am facing the same issue - pandas build has started to fail since couple of days. Tried the solution mentioned above, however using the Providing some more context to our problem here:
Installing it inside a docker as Any help is much appreciated. Please advise. |
Can you try a newer pandas? pandas 1.2.4 does not officially support Python 3.11 IIRC, so if something non-trivial is going wrong, I can't help you too much (as the version of pandas you are using is very old). pandas 1.5 should have official wheels for Python 3.11 (and also should be API compatible with pandas 1.2.4) |
Installation check
Platform
macOS-14.5-arm64-arm-64bit
Installation Method
pip install
pandas Version
1.2.5
Python Version
Python 3.11.7
Installation Logs
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pandas
Failed to build pandas
ERROR: Could not build wheels for pandas, which is required to install pyproject.toml-based projects
The text was updated successfully, but these errors were encountered: