ImportError: No module named 'Phidget22'

Comments & issues
Post Reply
Zanatos
Fresh meat
Posts: 1
Joined: Mon Feb 11, 2019 11:44 am
Contact:

ImportError: No module named 'Phidget22'

Post by Zanatos »

*I am aware this topic existed in the past but none of the solutions have worked for my situation*

Windows 7
I have python 3.7.2 installed
Phidget Control Panel is installed and works

Python located at C:\Python37
I added the path to the Environment Variables

Downloaded 'Phidget22Python_1.0.0.20190130' placed the folder in the following directory: 'C:\Python37\Lib\site-packages\Phidget22Python'

From cmd verified python was installed (it is) - cd into the directory above. Ran the following 'python setup.p install' - installed with no errors (I know it's py not p it won't let me post that on here).

Pulled VoltageRatio example from the website, followed directions to run in Visual Studio, keep getting the error "ImportError: No module named 'Phidget22'"

Stuck on this, all the info I'm finding has not been useful. Any suggestions are greatly appreciated!
fitchett
Site Admin
Posts: 14
Joined: Fri Dec 05, 2003 3:45 pm
Location: Canada
Contact:

Re: ImportError: No module named 'Phidget22'

Post by fitchett »

Is Visual Studio able to run basic python Hello World code?

Something like
print("hello world!")

?
jdecoux
Labview Developer
Posts: 180
Joined: Mon Nov 13, 2017 10:20 am
Contact:

Re: ImportError: No module named 'Phidget22'

Post by jdecoux »

Do you have other versions of python installed on your machine? If so, typing the generic "python" command in the command line may have installed the python libraries in a different python version.

You can use the command "py -3.7 setup.py install" to explicitly install the libraries for python 3.7.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests