Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
can't import module
#1
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.
Reply
#2
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  is import cointegration_analysis a recognized module mitcht33 1 448 Nov-06-2023, 09:29 PM
Last Post: deanhystad
  problem in import module from other folder akbarza 5 1,491 Sep-01-2023, 07:48 AM
Last Post: Gribouillis
  can not import anaconda pandas module. PySpark pandas module is imported!! aupres 0 735 Aug-06-2023, 01:09 AM
Last Post: aupres
  import module error tantony 5 3,507 Dec-15-2022, 01:55 PM
Last Post: Lauraburmrs
  Import a module one step back of the path prathampatel9 1 1,091 Sep-21-2022, 01:34 PM
Last Post: snippsat
  Import a module for use in type hint? Milosz 0 1,499 Nov-08-2021, 06:49 PM
Last Post: Milosz
  Can't install nor import delorean module Tek 3 2,836 Oct-27-2021, 03:32 AM
Last Post: Tek
  import module with syntax error Skaperen 7 5,352 Jun-22-2021, 10:38 AM
Last Post: Skaperen
  'urllib3' Module not found when import 'requests' spanz 5 10,356 Jan-06-2021, 05:57 PM
Last Post: snippsat
  Problem with Flask Bcrypt import module marcello86 2 5,776 Aug-31-2020, 08:10 PM
Last Post: marcello86

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020