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

Aberta
#536 2 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Python
Estrelas
2k
Forks
258
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.