Incompatibility with numpy 2.0.0 · Issue #271 · python-windrose/windrose · GitHub
Skip to content

Incompatibility with numpy 2.0.0 #271

Description

@SchmJo

Numpy 2.0.0 has recently been released, and the windrose package seems to be incompatible. When using it, I get the error

  File "/home/.../python3.11/site-packages/windrose/windrose.py", line 10, in <module>
    from numpy.lib.twodim_base import histogram2d
ModuleNotFoundError: No module named 'numpy.lib.twodim_base'

To my understanding, the histogram2d can now be imported from numpy directly. When changing the troubling line to

from numpy import histogram2d

my code runs fine again without errors.

Related issue: FraunhoferIWES/foxes#43

Thanks for addressing this!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions