-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Import spacy fails in pydroid3 due to ujson strreverse error #2955
Comments
This is unfortunate, but I'm not sure we'll be able to resolve this. So is that a system library that the platform is missing, or...? Here's a suggestion for how you might be able to work around this. You could package a Python library called |
One thing to note: I'm not 100% sure but it's possible that spaCy uses |
Thx for your answers. I tried the following: I replaced: in every file by:
and amended the requirements.txt with It worked for me and I could use it on android. I didnt test it on other plattforms. But if no specific ujson methods are used, it should work fine on all other platforms. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
How to reproduce the behaviour
After successful installation:
python -m spacy download en
or
import spacy
Do not work and produce the following error message:
Traceback (most recent call last):
File "/data/user/0/ru.iiec.pydroid3/files/accomp_files/iiec_run/iiec_run.py", line 31, in
start(fakepyfile,mainpyfile)
File "/data/user/0/ru.iiec.pydroid3/files/accomp_files/iiec_run/iiec_run.py", line 30, in start
exec(open(mainpyfile).read(), main.dict)
File "", line 1, in
File "/data/user/0/ru.iiec.pydroid3/files/arm-linux-androideabi/lib/python3.6/site-packages/spacy/init.py", line 10, in
from .cli.info import info as cli_info
File "/data/user/0/ru.iiec.pydroid3/files/arm-linux-androideabi/lib/python3.6/site-packages/spacy/cli/init.py", line 1, in
from .download import download
File "/data/user/0/ru.iiec.pydroid3/files/arm-linux-androideabi/lib/python3.6/site-packages/spacy/cli/download.py", line 11, in
from .link import link
File "/data/user/0/ru.iiec.pydroid3/files/arm-linux-androideabi/lib/python3.6/site-packages/spacy/cli/link.py", line 8, in
from ..compat import symlink_to, path2str
File "/data/user/0/ru.iiec.pydroid3/files/arm-linux-androideabi/lib/python3.6/site-packages/spacy/compat.py", line 5, in
import ujson
ImportError: dlopen failed: cannot locate symbol "strreverse" referenced by "/data/data/ru.iiec.pydroid3/files/arm-linux-androideabi/lib/python3.6/site-packages/ujson.cpython-36m.so"...
Your Environment
The text was updated successfully, but these errors were encountered: