Skip to content
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

Copy semantics change in numpy 2.0 caused incompatibility with astropy v6.1rc #226

Closed
pllim opened this issue Apr 5, 2024 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@pllim
Copy link
Member

pllim commented Apr 5, 2024

Please see:

E       ValueError: Unable to avoid copy while creating an array as requested.
E       If using `np.array(obj, copy=False)` replace it with `np.asarray(obj)` to allow a copy when needed (no behavior change in NumPy 1.x).
E       For more details, see https://numpy.org/devdocs/numpy_2_0_migration_guide.html#adapting-to-changes-in-the-copy-keyword.

Example logs:

https://github.com/astropy/astropy-integration-testing/actions/runs/8568043943/job/23485755895?pr=16

asdf==3.1.0
asdf-astropy==0.6.0
asdf_coordinates_schemas==0.3.0
asdf_standard==1.1.1
asdf_transform_schemas==0.5.0
asdf_unit_schemas==0.2.0

https://github.com/astropy/astropy-integration-testing/actions/runs/8568043943/job/23485756300?pr=16

asdf==3.1.0
asdf-astropy @ git+https://github.com/astropy/asdf-astropy.git@f7a29bab1b1ddfbebe3aea9b60acff7fbd2ee956
asdf_coordinates_schemas==0.3.0
asdf_standard==1.1.1
asdf_transform_schemas==0.5.0
asdf_unit_schemas==0.2.0

cc @astrofrog @neutrinoceros

@pllim pllim added the bug Something isn't working label Apr 5, 2024
@braingram
Copy link
Contributor

This was already addressed in:
#224

A release will be out soon (once jwst testing passes):
#225

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants