-
Notifications
You must be signed in to change notification settings - Fork 477
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: spacy.strings.StringStore size changed, may indicate binary incompatibility. Expected 80 from C header, got 64 from PyObject #310
Comments
Also having this issue; I'm using a Win10 PC in a conda environment with config:
When I run the code:
I get the error:
What I tried:
Any help would be very much appreciated! |
I've tried so many things. Seeing others issues I came to realized neuralcoref doesn't work in spacy v3 (see [stackoverflow] also (https://stackoverflow.com/questions/57008612/kernel-died-when-running-neuralcoref)). |
Hey all, as @correia-marcos mentioned, I figured that there seems to be some compatibility issue between spacy v3 and neuralcoref. Here are the steps I did to make it work:
Summary of key item versions:
Hope this helped! :) |
Thanks, @manekiyong -- I guess I was hoping we could get the compatibility issue fixed so we could use both neuralcoref and the fancy new features of spacy 3.0. But again, thank you for taking the time to respond with such clear instructions. |
I was also encountering the spacy.strings.StringSize issue as well with spacy 3.0. I downgraded to spacy 2.1.0 but encountered the following error: |
Issue seems to have been created by one of the recent commits. I used feb 2020 version of the neuralcoref library (commit '73d07e97fe') and it seems to have been installed at least. Leaving it here as it might help someone else. |
Just want to pop in here and note that neuralcoref is not compatible with spaCy v3 as indicated in #295 (comment). We're working on a new coref model with a different architecture for v3. |
I think I figured out the solution to this |
I followed the steps suggested by @manekiyong but still get the following error:
Name: spacy Version: 2.3.7 |
Hey @fbottazzoli I just replicated the steps and verified that the method still works. You may wish to check whether you are working on the correct Python environment. To ensure that your script is running the right version of spacy, you can do the following:
If the version is correct and problem still persists, you may consider restarting on a clean environment. Also, in my original post, I indicated that I was using Python 3.7. I just verified that it works on 3.9 (specifically, 3.9.11) as well. |
Hi @manekiyong I tried to reproduce again the steps you listed in a new environment with Python 3.9.11. When running
I then tried to run the following code in a Jupyter notebook:
but the kernel always dies when running: Francesca |
Hey @fbottazzoli, I suspect you have residual files that your environment is reading from that is causing all these. The version of Furthermore, there might be compatibility issues with the version of the language model that you are using. Based on the installation steps on a clean environment, |
Hi @manekiyong , |
thank u |
I am using python ==3.8.3, spacy==3.0.5, neuralcoref ==4.0.
These libraries are successfully installed.
When running the code
I get the error.
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.The text was updated successfully, but these errors were encountered: