Page 2 of 2

Re: ImportError: No module named 'Phidget22'

Posted: Sun Jul 25, 2021 1:26 am
by miker2808
Solution I've found:
install Phidgets lib (./configure -> make -> make install)
then, "sudo pip3 install Phidgets22"
then "sudo python3 <your_script_py>"
The reason I guess is both because phidgets IMU requires root privilages (unless you give permissions in a different method) (this was written in the phidgets pdf manual (cant give URL due to site restrictions))
and for some reason using "pip3 install Phidgets22" installs the package, and the module runs with non-root python script, but it wont detect the device (in my case atleast), running the script as root gave "no phidgets22 module", and using the following commands fixed all these issues. I literally made an account for those who will see this and will need a solution.
Hope I could help.