Closed shreyaslad closed 5 years ago
Hi @PenetratingShot , This is likely to be due to a wrong python environment. Are your running in a virtual environment? In order to troubleshoot this, and if it is not already the case, I recommend you to use virtualenv and run the following commands:
> virtualenv -p </path/to/python/binary> venv
> . venv/bin/activate
> pip install snips-nlu
> python -c "import snips_nlu;"
If you have no error here, which is expected, then it means that there is something wrong with your python setup. Typically, perhaps the pip
binary which you are using doesn't correspond to the python
in your PATH
. You can check this by running:
> pip --version
pip 19.0.3 from /usr/local/lib/python3.6/site-packages/pip (python 3.6)
> python --version
Python 3.6.5
If you do have an error after running the commands mentioned at the beginning, then there is an issue on our side and we will investigate. But as far as I can tell, this hasn't been reported by anyone and I can't reproduce on my machine (MacOS Mojave 10.14.4).
I hope this helps, Best
Ok thank you. I will try this when I get home today. Though I will note that running python --version
returns python 2.6 and pip is installed for python 2.6, but running python3 --version
returns python version 3. Is there any way that I can update python
and pip
to their respective latest versions?
Thanks
The best way to ensure that python
and pip
are using the version you want is to work inside a virtual environment.
@PenetratingShot I'm closing this issue, assuming it was a python environment issue. Feel free to re-open if you still have the issue.
So I installed snips-nlu on my MacBook, which is running 10.14.5 (Mojave). It used to work, but then for some reason it doesn't recognize the snips-nlu module anymore. I haven't changed anything. So then I redid
pip install snips-nlu
, which didn't help. It's worth noting that when the module did work, thesnips-nlu
command didn't work. When thesnips-nlu
command started working, it was when python wasn't recognizing the module.So then I moved to Ubuntu 16. It happened there too.
pip install snips-nlu
just returnsno module named snips_nlu
. Same thing happens when runningpython -m snips_nlu
orimport snips_nlu
.I've done this across three different ubuntu instances and it hasn't working a single time.