Qwiic on Onion Omega2+ or Python install help

Hey All -This is a two part question, any help on either would be greatly appreciated. I was wondering if anyone has gotten the Onion Qwiic expansion board to work? I have a Omega2+, Power dock, Qwiic Expansion and a few sensors.

Qwiic Expansion : https://www.sparkfun.com/products/15080

Onion Power 2 Dock: https://www.sparkfun.com/products/14440

Onion Omega 2+ : https://www.sparkfun.com/products/14431

Qwiic Flex Sensor: https://www.sparkfun.com/products/14666

Qwiic Temperature Sensor: https://www.sparkfun.com/products/16304

When I open the Onion web interface, install the Sparkfun App and launch it. No sensors show up (following this: https://onion.io/introducing-omega2-qwiic-sensor-kit/) . The Sensor Monitor app appears to respond the flex sensor, fwiw.

The next step was to try to install the Qwiic python module:

pip install sparkfun-qwiic

Which errors out with

ERROR: Could not find a version that satisfies the requirement sparkfun-qwiic-ublox-gps (from sparkfun-qwiic) (from versions: none)

ERROR: No matching distribution found for sparkfun-qwiic-ublox-gps (from sparkfun-qwiic)

So my next step is i2detect -y 0 which does give some output… but I am not making progress.

root@Omega-94DB:~# i2cdetect -y 0

0 1 2 3 4 5 6 7 8 9 a b c d e f

00: – – – – – – – – – – – – –

10: – – – – – – – – – – – – – – – –

20: – – – – – – – – – – – – – – – –

30: – – – – – – – – – – – – – – – –

40: – – – – – – – – 48 – – – – 4d – –

50: – – – – – – – – – – – – – – – –

60: – – – – – – – – – – – – – – – –

70: – – – – – – – –

root@Omega-94DB:~# i2cget -y 0 0x48

0x00

root@Omega-94DB:~# i2cget -y 0 0x48 0x00

0x00

If anyone has successfully used the Onion QwiicExp or getting the python module installed I’d be psyched if you could lend a hand.

Cheers,

-Joe

Please try seeing if the instructions on this post helps with your pip error: viewtopic.php?f=105&t=53471

Also double check to make sure there are no multiple devices with the same addresses. If there are, try to change them.

Thanks for the reply Brandon. That did not work at all on Ubuntu 18.04 or 20.04.

root@bionic:~# pip3 install sparkfun-ublox-gps

Collecting sparkfun-ublox-gps

Downloading https://files.pythonhosted.org/packages … ne-any.whl

Requirement already satisfied: pyserial in /usr/lib/python3/dist-packages (from sparkfun-ublox-gps)

Collecting ubxtranslator (from sparkfun-ublox-gps)

Downloading https://files.pythonhosted.org/packages … 1.1.tar.gz

Collecting spidev (from sparkfun-ublox-gps)

Downloading https://files.pythonhosted.org/packages … 3.5.tar.gz

Building wheels for collected packages: ubxtranslator, spidev

Running setup.py bdist_wheel for ubxtranslator … done

Stored in directory: /root/.cache/pip/wheels/ae/6e/92/58c241718b557538b5a2c55fb4bf525543b5492781d718b971

Running setup.py bdist_wheel for spidev … done

Stored in directory: /root/.cache/pip/wheels/71/1b/54/cbdf8186b66a40a5ac109b69c24a8688322458b80467a847b3

Successfully built ubxtranslator spidev

Installing collected packages: ubxtranslator, spidev, sparkfun-ublox-gps

Successfully installed sparkfun-ublox-gps-1.0.0 spidev-3.5 ubxtranslator-0.1.1

root@bionic:~# pip3 --no-cache-dir install sparkfun-qwiic

Collecting sparkfun-qwiic

Downloading https://files.pythonhosted.org/packages … ne-any.whl (208kB)

100% |████████████████████████████████| 215kB 1.2MB/s

Collecting sparkfun-qwiic-dual-encoder-reader (from sparkfun-qwiic)

Downloading https://files.pythonhosted.org/packages … ne-any.whl

Collecting sparkfun-qwiic-ccs811 (from sparkfun-qwiic)

Downloading https://files.pythonhosted.org/packages … ne-any.whl

Collecting sparkfun-top-phat-button (from sparkfun-qwiic)

Downloading https://files.pythonhosted.org/packages … ne-any.whl

Collecting sparkfun-qwiic-max3010x (from sparkfun-qwiic)

Downloading https://files.pythonhosted.org/packages … ne-any.whl

Collecting sparkfun-qwiic-pca9685 (from sparkfun-qwiic)

Downloading https://files.pythonhosted.org/packages … ne-any.whl

Collecting sparkfun-qwiic-vl53l1x (from sparkfun-qwiic)

Downloading https://files.pythonhosted.org/packages … ne-any.whl

Collecting sparkfun-qwiic-keypad (from sparkfun-qwiic)

Downloading https://files.pythonhosted.org/packages … ne-any.whl

Collecting sparkfun-qwiic-i2c (from sparkfun-qwiic)

Downloading https://files.pythonhosted.org/packages … ne-any.whl

Collecting sparkfun-qwiic-tca9548a (from sparkfun-qwiic)

Downloading https://files.pythonhosted.org/packages … ne-any.whl

Collecting sparkfun-qwiic-micro-oled (from sparkfun-qwiic)

Downloading https://files.pythonhosted.org/packages … ne-any.whl

Collecting sparkfun-qwiic-bme280 (from sparkfun-qwiic)

Downloading https://files.pythonhosted.org/packages … ne-any.whl

Collecting sparkfun-qwiic-proximity (from sparkfun-qwiic)

Downloading https://files.pythonhosted.org/packages … ne-any.whl

Collecting sparkfun-qwiic-scmd (from sparkfun-qwiic)

Downloading https://files.pythonhosted.org/packages … ne-any.whl

Collecting sparkfun-qwiic-ublox-gps (from sparkfun-qwiic)

Could not find a version that satisfies the requirement sparkfun-qwiic-ublox-gps (from sparkfun-qwiic) (from versions: )

No matching distribution found for sparkfun-qwiic-ublox-gps (from sparkfun-qwiic)

Trying this on the Onion Omega2+ it seems like it is a problem with OpenWRT on the Omega as SPIDEV won’t build. I’ve installed python3-spidev via opkg, but it seems pip doesn’t recognize it.

root@Omega-94DB:~# pip3.6 --no-cache-dir install sparkfun-ublox-gps

Collecting sparkfun-ublox-gps

Downloading sparkfun_ublox_gps-1.0.0-py2.py3-none-any.whl (2.2 kB)

Requirement already satisfied: pyserial in /usr/lib/python3.6/site-packages (from sparkfun-ublox-gps) (3.4)

Collecting spidev

Downloading spidev-3.5.tar.gz (10 kB)

Requirement already satisfied: ubxtranslator in /usr/lib/python3.6/site-packages (from sparkfun-ublox-gps) (0.1.1)

Building wheels for collected packages: spidev

Building wheel for spidev (setup.py) … error

ERROR: Failed building wheel for spidev

Running setup.py clean for spidev

Failed to build spidev

DEPRECATION: Could not build wheels for spidev which do not use PEP 517. pip will fall back to legacy ‘setup.py install’ for these. pip 21.0 will remove support for this functionality. A possible replacement is to fix the wheel build issue reported above. You can find discussion regarding this at https://github.com/pypa/pip/issues/8368.

Installing collected packages: spidev, sparkfun-ublox-gps

Running setup.py install for spidev … error

ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-5hkoi3bm/spidev/setup.py’“'”‘; file=’“'”‘/tmp/pip-install-5hkoi3bm/spidev/setup.py’“'”‘;f=getattr(tokenize, ‘"’“‘open’”’“‘, open)(file);code=f.read().replace(’”‘"’\r\n’“'”‘, ‘"’"’\n’“'”‘);f.close();exec(compile(code, file, ‘"’“‘exec’”’"‘))’ install --record /tmp/pip-record-q4v2lxj8/install-record.txt --single-version-externally-managed --compile --install-headers /usr/include/python3.6/spidev Check the logs for full command output.

On Ubuntu 20.04:

root@focal:~# pip3 install sparkfun-qwiic

Collecting sparkfun-qwiic

Downloading sparkfun_qwiic-1.0.12-py2.py3-none-any.whl (208 kB)

|████████████████████████████████| 208 kB 678 kB/s

Collecting sparkfun-qwiic-scmd

Downloading sparkfun_qwiic_scmd-0.9.1-py2.py3-none-any.whl (7.9 kB)

Collecting sparkfun-qwiic-keypad

Downloading sparkfun_qwiic_keypad-0.9.0-py2.py3-none-any.whl (5.2 kB)

Collecting sparkfun-qwiic-i2c

Downloading sparkfun_qwiic_i2c-0.9.11-py2.py3-none-any.whl (12 kB)

Collecting sparkfun-qwiic-tca9548a

Downloading sparkfun_qwiic_tca9548a-0.9.0-py2.py3-none-any.whl (5.4 kB)

Collecting sparkfun-qwiic-proximity

Downloading sparkfun_qwiic_proximity-0.9.0-py2.py3-none-any.whl (8.7 kB)

ERROR: Could not find a version that satisfies the requirement sparkfun-qwiic-ublox-gps (from sparkfun-qwiic) (from versions: none)

ERROR: No matching distribution found for sparkfun-qwiic-ublox-gps (from sparkfun-qwiic)

root@focal:~# pip3 install sparkfun-ublox-gps

Collecting sparkfun-ublox-gps

Downloading sparkfun_ublox_gps-1.0.0-py2.py3-none-any.whl (2.2 kB)

Collecting ubxtranslator

Downloading ubxtranslator-0.1.1.tar.gz (20 kB)

Requirement already satisfied: pyserial in /usr/lib/python3/dist-packages (from sparkfun-ublox-gps) (3.4)

Collecting spidev

Downloading spidev-3.5.tar.gz (10 kB)

Building wheels for collected packages: ubxtranslator, spidev

Building wheel for ubxtranslator (setup.py) … done

Created wheel for ubxtranslator: filename=ubxtranslator-0.1.1-py3-none-any.whl size=19953 sha256=c66873d896f78dc02f7889a03b01680f7b663cbcdc2a16ae1646ee2283e7f30a

Stored in directory: /root/.cache/pip/wheels/91/4d/de/c8fe79894e3139c952cf1b73796163779f7e87c20da5da3ac6

Building wheel for spidev (setup.py) … done

Created wheel for spidev: filename=spidev-3.5-cp38-cp38-linux_x86_64.whl size=44596 sha256=43ac65fe334307f94df01b66b0fcec5756cdad92480bc20e9e20c551139206b4

Stored in directory: /root/.cache/pip/wheels/97/5c/d8/280b1f544515539364cc56f7ff5ae3fbcba186f4f74649644f

Successfully built ubxtranslator spidev

Installing collected packages: ubxtranslator, spidev, sparkfun-ublox-gps

Successfully installed sparkfun-ublox-gps-1.0.0 spidev-3.5 ubxtranslator-0.1.1

root@focal:~# pip3 install sparkfun-qwiic

Collecting sparkfun-qwiic

Using cached sparkfun_qwiic-1.0.12-py2.py3-none-any.whl (208 kB)

Collecting sparkfun-qwiic-twist

Downloading sparkfun_qwiic_twist-0.9.0-py2.py3-none-any.whl (6.6 kB)

Collecting sparkfun-qwiic-i2c

Using cached sparkfun_qwiic_i2c-0.9.11-py2.py3-none-any.whl (12 kB)

Collecting sparkfun-qwiic-micro-oled

Downloading sparkfun_qwiic_micro_oled-0.9.0-py2.py3-none-any.whl (20 kB)

Collecting sparkfun-qwiic-vl53l1x

Downloading sparkfun_qwiic_vl53l1x-1.0.1-py2.py3-none-any.whl (17 kB)

Collecting sparkfun-qwiic-relay

Downloading sparkfun_qwiic_relay-0.0.2-py2.py3-none-any.whl (5.7 kB)

ERROR: Could not find a version that satisfies the requirement sparkfun-qwiic-ublox-gps (from sparkfun-qwiic) (from versions: none)

ERROR: No matching distribution found for sparkfun-qwiic-ublox-gps (from sparkfun-qwiic)

Cheers,

-Joe

Hello,

After asking internal teams it seems that one of our team members broke the installation path by accident. We are working on a fix. If the issue isn’t resolved in 2 business days please let me know.

Thank you for your time and patience.

Thanks Brandon!

-Joe

Our internal team members say that the paths should be fixed.

In addition, I was also advised that the UBlox GPS now uses serial instead of the Qwiic I2C system. Please account for this is in your setup.