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