Qwiic_Py failing on Raspberry Pi

After following instructions at [Qwiic_Py, trying to use the qwiic module gave me this:

python3
Python 3.7.3 (default, Jan 22 2021, 20:04:44) 
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import qwiic
Invalid driver class name. Unable to locate QwiicAs6212
Error loading module `qwiic_kx13x`: (unicode error) 'utf-8' codec can't decode byte 0xa0 in position 173: invalid start byte (qwiic_kx13x.py, line 334)

I noticed that the As6212 and kx13x python files had CRLF line endings, which they shouldn’t.

Packages installed:

Successfully installed pynmea2-1.18.0 smbus2-0.4.1 sparkfun-pi-servo-hat-0.9.0 sparkfun-qwiic-1.1.5 sparkfun-qwiic-adxl313-0.0.7 sparkfun-qwiic-as6212-0.0.2 sparkfun-qwiic-bme280-0.9.0 sparkfun-qwiic-button-2.0.1 sparkfun-qwiic-ccs811-0.9.4 sparkfun-qwiic-dual-encoder-reader-0.0.2 sparkfun-qwiic-eeprom-0.0.1 sparkfun-qwiic-gpio-0.0.2 sparkfun-qwiic-i2c-0.9.11 sparkfun-qwiic-icm20948-0.0.1 sparkfun-qwiic-joystick-0.9.0 sparkfun-qwiic-keypad-0.9.0 sparkfun-qwiic-kx13x-1.0.0 sparkfun-qwiic-led-stick-0.0.1 sparkfun-qwiic-max3010x-0.0.2 sparkfun-qwiic-micro-oled-0.10.0 sparkfun-qwiic-oled-base-0.0.2 sparkfun-qwiic-oled-display-0.0.2 sparkfun-qwiic-pca9685-0.9.1 sparkfun-qwiic-pir-0.0.4 sparkfun-qwiic-proximity-0.9.0 sparkfun-qwiic-relay-0.0.2 sparkfun-qwiic-rfid-2.0.0 sparkfun-qwiic-scmd-0.9.1 sparkfun-qwiic-serlcd-0.0.1 sparkfun-qwiic-sgp40-0.0.4 sparkfun-qwiic-soil-moisture-sensor-0.0.2 sparkfun-qwiic-tca9548a-0.9.0 sparkfun-qwiic-titan-gps-0.1.1 sparkfun-qwiic-twist-0.9.0 sparkfun-qwiic-vl53l1x-1.0.1 sparkfun-top-phat-button-0.0.2 sparkfun-ublox-gps-1.1.4

](GitHub - sparkfun/Qwiic_Py: Python package for the qwiic system.)

made a pull request for the broken encoding in Qwiic_KX13X_Py here: [removed spurious Latin-1 char in qwiic_kx13x.py by scruss · Pull Request #1 · sparkfun/Qwiic_KX13X_Py but still being hit with:

Invalid driver class name. Unable to locate QwiicAs6212

Invalid driver class name. Unable to locate QwiicKx13X

when I import qwiic, but at least qwiic.get_devices() appears to return some valid devices, if far more than I actually have installed.](removed spurious Latin-1 char in qwiic_kx13x.py by scruss · Pull Request #1 · sparkfun/Qwiic_KX13X_Py · GitHub)

Hi, thanks for posting.

Hmmm, I think if you continue to add this information to the pull request our engineers should look into the matter as soon as possible.

Thank you for your contributions. Let us know if we can do anything else in the meantime.