-
Notifications
You must be signed in to change notification settings - Fork 38
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
installation issues in spacyr #236
Comments
Can you supply any information on your system? @Mayazure any ideas? |
I was stuck on the solving environment part you show in your screenshot this morning. What solved it was to change
Different system, different background (this was on Debian bullseye; you seem to be on Windows). But worth a try, I think. |
Thanks @JBGruber that's exactly the solution, or simply specifying your current version of Python as a string. This is an issue we have to address, since 3.6 is hardwired into Line 63 in f930072
@amatsuo we discussed refreshing this a few months ago. I'm too time-poor at the moment to get lost in this (although I would love to do so). Maybe @Mayazure could address it? |
Same problem as @alexstark001 here. I tried the solution posted by @JBGruber but no luck. System infos : |
What happens when you try to run spacy from your terminal? In terminal, could you try the following and show the output in each step?
|
I had the same problem. My solution is to build the conda environment myself (Ubuntu 22.04). ## remove the (obsolete) Python 3.6 environment
#conda env remove --name spacy_condaenv
## install the "recommended" version of Python
Rscript -e 'reticulate::conda_create("spacy_condaenv")'
## install spacy manually
conda install -n spacy_condaenv spacy -y
conda activate spacy_condaenv
python -m spacy download en_core_web_sm
conda activate base require(spacyr)
spacy_initialize()
spacy_parse("I solved this by building my own conda environment.") |
Very same problem here on R version 4.2.2 Patched (2022-11-10 r83330) Matrix products: default The solution proposed by @JBGruber did not work, unfortunately. Instead, the solution proposed by @chainsawriot worked. I managed it completely through R using reticulate instead of using conda from cli. Here is my workaround
Then proceeding as usual with the language initialization. |
I had the same issue. The solution posted by @marcozanotti worked for me. Thanks! |
I rewrote # install packaged from fork
remotes::install_github("JBGruber/spacyr")
# install spaCy and initialize
library(spacyr)
spacy_install()
spacy_initialize()
# test
txt <- c(d1 = "spaCy is great at fast natural language processing.",
d2 = "Mr. Smith spent two years in North Carolina.")
parsedtxt <- spacy_parse(txt)
parsedtxt I also included a file for debugging and manual/custom installation that might be useful: https://github.com/JBGruber/spacyr/blob/master/installation.Rmd. |
Should be by early next week. Adding tests and even building the documentation for spacyr is not trivial, but we're getting there soon! |
Solved in v1.3. |
I was not able to install the spacey package in r. I am getting the following error when initializing.
spacy_initialize()
Found 'spacy_condaenv'. spacyr will use this environment
Error in py_run_file_impl(file, local, convert) :
ModuleNotFoundError: No module named 'spacy'
The text was updated successfully, but these errors were encountered: