Python Forum
can't import module - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: can't import module (/thread-4588.html)



can't import module - ckb - Aug-28-2017

Hi! New here, hope you guys can help.

My computer runs Windows 7 and I'm trying to install the module ovr from github (google "pyovr" to find it.. anti-spam feature says I can't post links). ovr is a python binding for the Oculus Rift and gives head tracking information.

Python 2.7 is installed, Oculus runtime is also installed (a requirement) and "pip install ovr" works. The problem is that every time I try to import ovr I get the error "The specified module could not be found".

Looking on the net, one possibility mentioned is that the module isn't installed in the right directory, but ovr is installed in C:\Python27\Lib\site-packages as I think it should be.

Another possibility is that the python path is not set correctly. I typed in C:\Python27\Lib\site-packages after "Path" in System variables, and even tried specifying a separate PYTHONPATH variable with no luck.

I should point out that I have another installation of python called Psychopy on the same machine (also easily found by googling) that I use to display things in the Rift, but ovr won't import from any location. Other modules installed through pip easily import, so it's just ovr I'm having trouble with.

Any help is appreciated.


RE: can't import module - BerlingSwe - Aug-28-2017

I had this problem too a long time ago with Visual Studio. What I had to do was Project>Properties and then select the interpeter to the version of Python you are using.
Hope this helped