Closed Nayyarkazmi closed 7 years ago
Also when I run import("spacy"), i get the following error
> import("spacy")
Error in py_module_import(module, convert = convert) : TypeError: 'int' object is not callable
Detailed traceback:
File "C:\Users\nayyark\AppData\Local\CONTIN~1\ANACON~1\lib\site-packages\spacy__init.py", line 10, in
We're unable to reproduce problems loading spacy in our local environment (Windows 10, Anaconda, etc.). There could be many things wrong with your configuration all of which are very difficult to diagnose remotely.
You should know though that this does work in general and using spacy with reticulate is done elsewhere e.g. in the spacyr package (https://github.com/kbenoit/spacyr)
I have been trying to setup spacy in R. I have installed using conda 3.6.1. I can import the module in python. But when I use py_config(), it doesn't show spacy version in RStudio. py_module_available("spacy") also return FALSE. Hence, I cant use init_spaCy(). Any help/suggestion will be greatly appreciated.
python: C:\Users\nayyark\AppData\Local\CONTIN~1\ANACON~1\python.exe libpython: C:/Users/nayyark/AppData/Local/CONTIN~1/ANACON~1/python36.dll pythonhome: C:\Users\nayyark\AppData\Local\CONTIN~1\ANACON~1 version: 3.6.1 |Anaconda 4.4.0 (64-bit)| (default, May 11 2017, 13:25:24) [MSC v.1900 64 bit (AMD64)] Architecture: 64bit numpy: C:\Users\nayyark\AppData\Local\CONTIN~1\ANACON~1\lib\site-packages\numpy numpy_version: 1.12.1 spacy: C:\Users\nayyark\AppData\Local\CONTIN~1\ANACON~1\lib\site-packages\spacy
python versions found: C:\Users\nayyark\AppData\Local\CONTIN~1\ANACON~1\python.exe C:\Users\nayyark\AppData\Local\CONTIN~1\ANACON~1/envs/tensorflow/python.exe
[1] TRUE