Replies: 4 comments 4 replies
-
I solved it (partially). In case anyone happens to stumble across this, adding the following lines to my CMakelists file resolved the errors, but now it is using the wrong python version.
|
Beta Was this translation helpful? Give feedback.
-
Hi @mandos21 - glad to hear you found a solution. Let me look into updating the As for your remaining problem
feel free to share more details and perhaps I, or someone, can help. Edit: For the Python version issue, it could be useful to know which Linux distro is used and how Python was installed. Nowadays most distros has moved away from Python2, so there shouldn't generally be much issues. In your logs I see both paths to a system installed Python3 ( |
Beta Was this translation helpful? Give feedback.
-
A couple more things I've tried that haven't worked: Recompiled spacy-cpp with exact version numbers in the makefile:
Linking the directories directly:
Changing the symlinks in /usr/bin and /bin that pointed python3 to python3.6 to python3.7:
So far nothing. Why can't python find spacy? |
Beta Was this translation helpful? Give feedback.
-
Hi @mandos21 - just wanted to mention that I've added two simple CMake examples for using They provide bare-bones CMakeLists.txt for using spacy-cpp. If starting a new project I recommend using spacy-cpp as a shared library (rather than header-only). Not sure if you're still trying to get it to work, but it might help someone else encountering this thread. |
Beta Was this translation helpful? Give feedback.
-
Hey, I'm looking to get started with this project to integrate pronoun coreferencing via another pythonm library, neuralcoref, into an existing c project. I'm using python 3.7.16, and I was wondering which version you have tested this with, and if this version is supported. I'm running into the following errors, and I'm not sure if they're due to my environment, configuration or user error. I don't have a lot of C/++ experience, so apologies in advance if I'm missing something obvious here. Thanks!
Here is my main.cpp:
And my CMakeLists.txt
Beta Was this translation helpful? Give feedback.
All reactions