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

Default installation is broken due to numpy incompatibility #143

Open
adrianloy opened this issue Oct 23, 2024 · 1 comment
Open

Default installation is broken due to numpy incompatibility #143

adrianloy opened this issue Oct 23, 2024 · 1 comment

Comments

@adrianloy
Copy link

I followed the instructions in the readme and did

pip install "pyside6==6.4.2"
pip install napari-deeplabcut

This results in a broken installation, launching napari results in:

  File "pydantic/main.py", line 341, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 1 validation error for ConstantStringEncoding
constant
  Unable to avoid copy while creating an array as requested.
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).
For more details, see https://numpy.org/devdocs/numpy_2_0_migration_guide.html#adapting-to-changes-in-the-copy-keyword. (type=value_error)

The issue seems to be incompatibility to numpy v2, which gets installed per default, running

pip install "numpy<2.0.0" 

Solved the issue for me. I think having an upper bound in the numpy requirements should fix the issue for now.

@MMathisLab
Copy link
Member

@n-poulsen lets pin this; latest updates to numpy are not yet working with pandas etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants