I’m unable to import the qwiic library.
Python 3.10.4 (main, Jun 29 2022, 12:14:53) [GCC 11.2.0] on linux
Type “help”, “copyright”, “credits” or “license” for more information.
import qwiic
Error loading module ublox_gps
: No module named ‘serial’
I’m on Ubuntu:
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy
Using a RiPi400 with a Qwiic pHat connected to the Ambient Light Sensor.
Try to uninstall/reinstall/install pyserial and see how that goes after
Also ensure GPIO is enabled in raspi config
so I reinstalled pysersial, but then I got:
import qwiic
Error loading module ublox_gps
: No module named ‘spidev’
then trying to install pydev:
@rpi400:~/projects/qwiic$ pip3 install spidev
Collecting spidev
Downloading spidev-3.5.tar.gz (10 kB)
Preparing metadata (setup.py) … done
Using legacy ‘setup.py install’ for spidev, since package ‘wheel’ is not installed.
Installing collected packages: spidev
Running setup.py install for spidev … error
error: subprocess-exited-with-error
yes, both I2c and serial are enabled via raspi-config