Skip to content

ModuleNotFoundError: No module named 'numpy.lib.histograms' #1156

@alexjdean

Description

@alexjdean

General Information:

  • OS: Sonoma 14.5
  • Python version: 3.9.10
  • Library version: 0.12.0

Describe the bug:
When attempting to setup a Python virtual environment, I run make setup per this Contribution guideline. When the Makefile executes pre-commit run, the check-manifest stage fails with an error of

ImportError:
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.0 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.

Traceback (most recent call last): [...]

ModuleNotFoundError: No module named 'numpy.lib.histograms'

I believe this to be a result of the latest NumPy 2.0.0 release as of three weeks ago.

To Reproduce:

Run make setup per this Contribution guideline.

Expected behavior:

The Python virtual environment should be successfully set up. Instead, I encounter this NumPy error.

Screenshots:

image

Additional context:

This is similar to #1154, however I encounter this issue when setting up the virtual environment rather than running a Python file that imports DataProfiler.

Metadata

Metadata

Labels

BugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions