Skip to content

Incompatibility with numpy v2 - ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject #536

@widgetface

Description

@widgetface

Thanks for this project.

Its proving hard for me to get everything working on my Windows 11 WLS2 Ubuntu 24.04.1 LTS with Python 3.10.16

I have scispacy installed.
I ran the following
`
import spacy
nlp = spacy.load("en_core_sci_md")

`
I got the Error: OSError: [E050] Can't find model 'en_core_sci_sm'. It doesn't seem to be a Python package or a valid path to a data directory.

I downloaded the model from the GitHub project homepage.

I then used "uv add path_to_download"

I think this went correctly as I see :

Resolved 65 packages in 1.58s
      Built en-core-sci-md

When I run my code again I see
`
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

`
I see that, the problem occured, when numpy==2.0.0 has been released on June 16th 2024, because it is no longer compatible with your pandas version.

But I'm unsure ho to resolve this issue ?
Can you advise me on how to resolve this issue please. Thanks

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