-
Notifications
You must be signed in to change notification settings - Fork 32
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]: numpy 2.0 breaks OpenData store (probable pandas bug) #995
Comments
@kbuma would you (or others very familiar with this Store) be able to investigate this and, if appropriate, open a bug report in This appears to only affect the |
i'll look into it |
Thank you @kbuma ! |
@rkingsbury per comments in pandas-dev/pandas#59668 "pandas does not have a released version that officially supports numpy 2.1." as of yet. One possible path forward is to remove the open data stores (and thus the Pandas dependency) from the maggma project - we ended up using a different approach for the new builders so are not actively using these stores in MP infra. Let me know if that is an option. |
Thanks @kbuma ! FWIW, I believe I saw the bug with numpy>2 < 2.1 as well. Regardless, it's helpful to know that no one (at least no one in MP) is using I like the idea of having some way of interfacing
That way we can have tests passing but allow future users to build on the nice work that went into |
Thanks @rkingsbury ! I agree with your suggestion and will look to find some time this week to put together a PR. |
Since updating dependencies to allow
numpy 2.0
(#986 ), we have a test failure in the OpenData store that is being triggered bypandas
. See, for example, this failed test run.The exception raised is
The test triggering the failure is
test_update
:I did some debugging on the
resolve
function in pandas (see source code here) and determined that the number in{"level_two": 4},
is getting turned into anp.int64
and that thekey
andis_local
args to theresolve
function arenp
andFalse
, respectively.Somewhere,
pandas
is getting confused and usingnp
as a variable name. I'm not sure how or why this is happening but I have a feeling it is apandas
bug. The following may be relevant:pandas-dev/pandas#54252
https://numpy.org/devdocs/numpy_2_0_migration_guide.html#windows-default-integer
Version
latest
Which OS?
The text was updated successfully, but these errors were encountered: