Interesting problem with SparkFun Qwiic Motor Driver

El Duderino,

I installed the Python library from GitHub (https://github.com/sparkfun/Qwiic_SCMD_Py) and pip3’ed sparkfun-qwiic-scmd successfully. https://github.com/sparkfun/Qwiic_SCMD_ … ic_scmd.py from my RPi without a hitch. When I try to run from anyother location than where I downloaded it, I get:

Error connecting to Device: 5D, [Errno 25] Inappropriate ioctl for device

I thought there might be a problem with the library install so I went through it command by command:

>>> import qwiic_scmd
>>> myMotor = qwiic_scmd.QwiicScmd()
>>> myMotor.connected
Error connecting to Device: 5D, [Errno 25] Inappropriate ioctl for device False

Any thoughts?

Thank you (and stay the hell outta Malibu).

I believe that error message is a permissions based error: https://www.google.com/search?q=Error+c … vice+False

Try using sudo in the installation: sudo pip3 install sparkfun-qwiic

Otherwise, you may need to enable the I2C pins in the raspi-config menu