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

Pyaerocom ValueError when running with numpy 2.0.0 #1206

Open
thorbjoernl opened this issue Jun 17, 2024 · 1 comment
Open

Pyaerocom ValueError when running with numpy 2.0.0 #1206

thorbjoernl opened this issue Jun 17, 2024 · 1 comment
Labels
bug 🐛 Something isn't working dependencies Issues related to pyaerocom dependencies
Milestone

Comments

@thorbjoernl
Copy link
Collaborator

thorbjoernl commented Jun 17, 2024

Describe the bug
Please provide a clear and concise description of what the bug is.

  • Pyaerocom version: 0.20.dev1
  • Computing platform: PPI
  • Configuration file (if applicable): NA
  • Error message (if applicable): NA

To Reproduce
Steps to reproduce the behavior:

  1. pip install numpy==2.0.0
  2. pytest .

Expected behavior
No error should occur

Screenshots

ImportError while loading conftest '/lustre/storeB/users/thlun8736/python/pyaerocom/tests/conftest.py'.
tests/conftest.py:6: in <module>
    from pyaerocom import const
pyaerocom/__init__.py:9: in <module>
    from .config import Config
pyaerocom/config.py:19: in <module>
    from pyaerocom.grid_io import GridIO
pyaerocom/grid_io.py:2: in <module>
    from pyaerocom.time_config import TS_TYPES
pyaerocom/time_config.py:7: in <module>
    from iris import coord_categorisation
venv/lib/python3.11/site-packages/iris/coord_categorisation.py:23: in <module>
    import iris.coords
venv/lib/python3.11/site-packages/iris/coords.py:23: in <module>
    from iris.common import (
venv/lib/python3.11/site-packages/iris/common/__init__.py:9: in <module>
    from .mixin import *
venv/lib/python3.11/site-packages/iris/common/mixin.py:10: in <module>
    import cf_units
venv/lib/python3.11/site-packages/cf_units/__init__.py:23: in <module>
    from cf_units import _udunits2 as _ud
cf_units/_udunits2.pyx:1: in init cf_units._udunits2
    ???
E   ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

Additional context

@thorbjoernl thorbjoernl added the bug 🐛 Something isn't working label Jun 17, 2024
@thorbjoernl thorbjoernl added this to the m2024-07 milestone Jun 17, 2024
@thorbjoernl thorbjoernl mentioned this issue Jun 17, 2024
9 tasks
@thorbjoernl thorbjoernl added the dependencies Issues related to pyaerocom dependencies label Jun 17, 2024
@thorbjoernl thorbjoernl changed the title Pyaerocom Exception when running with numpy 2.0.0 Pyaerocom ValueError when running with numpy 2.0.0 Jun 18, 2024
@heikoklein heikoklein modified the milestones: m2024-07, m2024-09 Jun 18, 2024
@heikoklein
Copy link
Member

Escalated to cf-units: SciTools/cf-units#443

@heikoklein heikoklein modified the milestones: m2024-09, m2024-10 Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working dependencies Issues related to pyaerocom dependencies
Projects
None yet
Development

No branches or pull requests

2 participants