-
Notifications
You must be signed in to change notification settings - Fork 19
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
Cannot initialize clinspacy #11
Comments
Thank you for the comment, and my apologies for the delay in getting back to you on this. Because clinspacy wraps spacy, scispacy, and medspacy, we essentially have to juggle a bunch of version issues between dependencies. The only issue I did not control for in clinspacy was the Python version. By default, clinspacy uses the reticulate::install_miniconda() function to install the latest version. Based on your output, it looks like the issue is that spacy 2.3.0 (the version used in clinspacy) only supports up to Python 3.8 and not Python 3.9 whereas reticulate::install_miniconda() appears to be installing version Python 3.9. In the short-term, I would recommend uninstalling this version of miniconda and manually installing miniconda with Python 3.8 (available here: https://docs.conda.io/en/latest/miniconda.html). That should work. In the medium-term, I'm going to look into how to enforce which version of miniconda is installed. It looks like although scispacy currently supports spacy 3.0, medspacy still requires spacy 2.3. |
It looks like As soon as this version of reticulate lands on CRAN, I'll plan to update clinspacy with a way to install the correct version of miniconda. |
Actually, I discovered that the problem was with Because spacy 2.3.0 (needed for compatibility with medspacy) only supports up to Python 3.8, this creates a problem. This is now fixed on the GitHub version of To fix, run this:
Then, when you run Please let me know if this fixes the issue, and I'll plan to send this version to CRAN. |
I know I'm a few years late, but have you found a solution to this that still works in the updated versions of everything? I still have issues because of space 2.3.0. |
Hi Karandeep, I have the same problem, could you please help me? |
I will try to fix in the next 1-2 weeks. I haven't touched my R package codebase in a while but I will come back to this. Thank you for the ping. |
I'm not having any success initializing clinspacy. It goes through the same sequence with and without the
miniconda = FALSE
argument. I've also tried to downgrade python to 3.6 to initial tutorial. Any idea how to get around this issue with Python version? Example of code belowThe text was updated successfully, but these errors were encountered: