Page 1 of 1

ImportError: No module named 'Phidget22'

Posted: Mon Feb 11, 2019 11:54 am
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!

Re: ImportError: No module named 'Phidget22'

Posted: Thu Feb 28, 2019 3:36 pm
by fitchett
Is Visual Studio able to run basic python Hello World code?

Something like
print("hello world!")

?

Re: ImportError: No module named 'Phidget22'

Posted: Fri Mar 01, 2019 10:32 am
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.