You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried the colabr-package.ipynb example and I get the following error when running setup_spacyr()
Using existing conda environment r-reticulate for spaCy installation
.
spaCy and language model(s): en_core_web_sm will be installed. Installing spaCy...
Installing model "en_core_web_sm"
Language model "en_core_web_sm" is successfully installed
Installation complete.
Condaenv: r-reticulate; Language model(s): en_core_web_sm
Error in py_run_file_impl(file, local, convert): RuntimeError: The current Numpy installation ('/usr/local/envs/r-reticulate/lib/python3.8/site-packages/numpy/__init__.py') fails to pass simple sanity checks. This can be caused for example by incorrect BLAS library being linked in, or by mixing package managers (pip, conda, apt, ...). Search closed numpy issues for similar problems.
Detailed traceback:
File "<string>", line 9, in <module>
File "/usr/local/lib/R/site-library/reticulate/python/rpytools/loader.py", line 39, in _import_hook
module = _import(
File "/usr/local/envs/r-reticulate/lib/python3.8/site-packages/spacy/__init__.py", line 11, in <module>
from thinc.api import prefer_gpu, require_gpu, require_cpu # noqa: F401
File "/usr/local/lib/R/site-library/reticulate/python/rpytools/loader.py", line 39, in _import_hook
module = _import(
File "/usr/local/envs/r-reticulate/lib/python3.8/site-packages/thinc/__init__.py", line 2, in <module>
import numpy
File "/usr/local/lib/R/site-library/reticulate/python/rpytools/loader.py", line 39, in _import_hook
module = _import(
File "/usr/local/envs/r-reticulate/lib/python3.8/site-packages/numpy/__init__.py", line 349, in <module>
_sanity_check()
File "/usr/local/envs/r-reticulate/lib/python3.8/site-packages/numpy/__init__.py", line 347, in _sanity_check
raise RuntimeError(msg.format(__file__)) from None
Traceback:
1. setup_spacyr()
2. spacy_initialize(condaenv = env, model = lang_models, python_executable = path)
3. spacyr_pyexec(pyfile = system.file("python", "spacyr_class.py",
. package = "spacyr"))
4. reticulate::py_run_file(pyfile)
5. py_run_file_impl(file, local, convert)
The text was updated successfully, but these errors were encountered:
@jrosell No worries, glad you were able to fix your issue! Just a heads up, I usually don't have too much time nowadays to maintain this, but if you run into other problems feel free to open another issue and I'll be sure to look into it whenever I have the time.
I tried the colabr-package.ipynb example and I get the following error when running setup_spacyr()
The text was updated successfully, but these errors were encountered: