-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import Failure. Invalid driver class name. Unable to locate QwiicAs6212/QwiicKx13X #25
Comments
Hi there, thanks for reporting this! I can replicate the problem on my end, will work on fixing this soon! |
Ok, so the root problem is that those 2 packages don't match the format that Qwiic_Py expects in order to include them. Relevant code is here: Lines 156 to 202 in 50964b6
In short, it expects the device package names to be in the format of The reason the qwiic_kx13x fails is because it has classes named I'm not actually sure how best to address this. So that's why those error messages appear, but it's odd that this wasn't a problem before. For some reason, previous versions of Qwiic_Py seemed to not include those 2 device drivers. If I run
However if I run
Not sure why that is, but they're at least being included now, so I'm not going to dive into that. |
Hi,
I'm using Nvidia Jetbot with JetPack 4.6. I'm using the standard Spark Fun setup and double checked that the wiring are right according to SparkFun assembly guide here
I installed this package using pip3 as well as Qwiic_I2C and all the drivers.
When I try to run
import qwiic
I get the errors
Invalid driver class name. Unable to locate QwiicAs6212
Invalid driver class name. Unable to locate QwiicKx13X
The packages for both
QwiicAs6212
andQwiicKx13X
are installed. Also, the jetbot is not wired to either of the two modules as well. I don't get why I'm receiving the error.Furthermore,
qwiic.scan()
continues to run forever. So, I'm not able to use the Robot class of jetbot, which depends on qwicc.Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/qwiic_i2c/linux_i2c.py", line 261, in isDeviceConnected
self._i2cbus.write_quick(devAddress)
File "/home/aser/.local/lib/python3.6/site-packages/smbus2/smbus2.py", line 379, in write_quick
ioctl(self.fd, I2C_SMBUS, msg)
TimeoutError: [Errno 110] Connection timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 1, in
File "/home/aser/.local/lib/python3.6/site-packages/qwiic/init.py", line 239, in scan
return i2c_driver.scan()
File "/usr/local/lib/python3.6/dist-packages/qwiic_i2c/linux_i2c.py", line 284, in scan
if self.ping(currAddress) == True:
File "/usr/local/lib/python3.6/dist-packages/qwiic_i2c/linux_i2c.py", line 272, in ping
return self.isDeviceConnected(devAddress)
File "/usr/local/lib/python3.6/dist-packages/qwiic_i2c/linux_i2c.py", line 261, in isDeviceConnected
self._i2cbus.write_quick(devAddress)
The text was updated successfully, but these errors were encountered: