allenai / allenai/scispacy

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

Aperta
#536 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
2k
Fork
258
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.