Skip to content

Default installation is broken due to numpy incompatibilityΒ #143

@adrianloy

Description

@adrianloy

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions