huggingface / huggingface/neuralcoref

ValueError: spacy.strings.StringStore size changed, may indicate binary incompatibility. Expected 80 from C header, got 64 from PyObject

Open
#310 15 comments 3 reactions 0 assignees View on GitHub
Dominant language
C
Stars
2.9k
Forks
467
PR merge metrics
No merged PRs in 30d

Description

I am using **python ==3.8.3, spacy==3.0.5, neuralcoref ==4.0.**
These libraries are successfully installed.
**When running the code**

> import spacy
> import neuralcoref
>
> nlp = spacy.load('en')
> neuralcoref.add_to_pipe(nlp)
> doc1 = nlp('My sister has a dog. She loves him.')
> print(doc1._.coref_clusters)

I get the error.

> Traceback (most recent call last):
> File "d:/Comp4550/xxxxxxxxxxxxxxx/code/analysis/co-reference.py", line 2, in
> import neuralcoref
> File "D:\python3.8.3\lib\site-packages\neuralcoref\__init__.py", line 14, in
> from .neuralcoref import NeuralCoref
> File "strings.pxd", line 23, in init neuralcoref.neuralcoref
> ValueError: spacy.strings.StringStore size changed, may indicate binary incompatibility. Expected 80 from C header, got 64 from PyObject

I search the error code in google and I get this from stackoverflow [https://stackoverflow.com/questions/67041981/valueerror-spacy-strings-stringstore-size-changed-may-indicate-binary-incompat] . It suggests me to downgrade the python version. However, python version cannot be changed due to the particular project. I wonder that if there exists a way for me to successfully run the test code.
By the way, I also try `pip uninstall neuralcoref`, `pip install neuralcoref --no-binary neuralcoref`. The problem is still not resolved. If anyone can solve my problem, I am really appreciate that.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.