rpj/rpi

setup.sh's SPS30 build is broken

rpj opened this issue · 1 comments

rpj commented

A couple folks on Hackster.io have gotten in touch with trouble building the SPS30 submodule via setup.sh, and I've been able to reproduce it on stock current Raspbian (2018-11-13):

pi@raspberrypi:~/rpi $ ./setup.sh 
*** RPi platform detected: building sensor drivers and including hardware interface modules.

* Looking for virtualenv: NOT FOUND
* Trying to install virtualenv...
* Looking for redis-server: NOT FOUND
* Trying to install redis-server...
* Looking for zip: NOT FOUND
* Trying to install zip...
* Looking for python-dev: NOT FOUND
* Trying to install python-dev...
* Looking for libjpeg9-dev: NOT FOUND
* Trying to install libjpeg9-dev...
* Looking for python-smbus: NOT FOUND
* Trying to install python-smbus...
* Fetching embedded-sps submodule: The authenticity of host 'github.com (192.30.253.113)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no)? yes
./setup.sh: line 45: pushd: embedded-sps: No such file or directory
done
* Building embedded-sps submodule: ./setup.sh: line 51: pushd: release/sps30-i2c: No such file or directory
./setup.sh: line 52: pushd: hw_i2c: No such file or directory
mv: cannot stat 'sensirion_hw_i2c_implementation.c': No such file or directory
./setup.sh: line 55: popd: directory stack empty
failure!
./setup.sh: line 64: popd: directory stack empty
./setup.sh: line 65: popd: directory stack empty
* Initializing virtualenv: ^Cfailed! Cannot continue.
rpj commented

Yup, that was it! Just a bad URL in .gitmodules, ugh. Verified with a clean install on RPI Zero W w/ Raspbian 2018-11-13. Many many thanks to William R over at Hackster for his diligent and gracious help identifying and detailing this issue!