Skip to content
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

RuntimeWarning when use spacy==2.3.2 #279

Closed
wenpengwu opened this issue Aug 24, 2020 · 6 comments
Closed

RuntimeWarning when use spacy==2.3.2 #279

wenpengwu opened this issue Aug 24, 2020 · 6 comments

Comments

@wenpengwu
Copy link

i got this error

RuntimeWarning: spacy.morphology.Morphology size changed, may indicate binary incompatibility. Expected 104 from C header, got 112 from PyObject
return f(*args, **kwds)

RuntimeWarning: spacy.vocab.Vocab size changed, may indicate binary incompatibility. Expected 96 from C header, got 112 from PyObject
return f(*args, **kwds)

RuntimeWarning: spacy.tokens.span.Span size changed, may indicate binary incompatibility. Expected 72 from C header, got 80 from PyObject
return f(*args, **kwds)

Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

==============================================

OS is mojave 10.14.1
Version Python 3.7.6

@binarymax
Copy link

I also got this error. Looking at the requirements.txt file I see spacy>=2.1.0,<2.2.0 ...so I'll downgrade spacy to 2.1.x and hopefully that solves the issue, but someone with more knowledge of the library might want to upgrade to work with newer versions of spacy (I'm just toying around now)

@binarymax
Copy link

binarymax commented Sep 4, 2020

Confirmed that downgrading spacy to 2.1.0 fixed the problem. It is likely a change in spacy 2.3 that introduced the incompatibility, and we should look for a way to upgrade neuralcoref to be compatible.

@wenpengwu
Copy link
Author

I also got this error. Looking at the requirements.txt file I see spacy>=2.1.0,<2.2.0 ...so I'll downgrade spacy to 2.1.x and hopefully that solves the issue, but someone with more knowledge of the library might want to upgrade to work with newer versions of spacy (I'm just toying around now)

thanks. it is very embarrassed that i want use zh_core_web_sm model ,but the spacy2.1 do not support.

@svlandeg
Copy link
Collaborator

svlandeg commented Sep 7, 2020

Could you try building your required version of spaCy from source, and then build neuralcoref from source as well?

@wenpengwu
Copy link
Author

Could you try building your required version of spaCy from source, and then build neuralcoref from source as well?

thanks very much. I only build neuralcoref from source Solved the problem. Hope it helps someone.

@svlandeg
Copy link
Collaborator

svlandeg commented Sep 8, 2020

Happy to hear it! For future reference, there are more details on this issue provided here: #197

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants