A memo about how to install the grovepi module that stumbled when I tried to make an IoT system and operate the sensor and actuator from python with GrovePi + inserted in RaspberryPi Model 3B.
First conclusion
$git clone https://github.com/DexterInd/GrovePi
$cd GrovePi/Script
$sudo chmod +x install.sh
$sudo ./install.sh
I got the following error with pip install grovepi
(Omitted)
error: Command "g++(Omitted)" failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for scipy
I referred to here https://github.com/pydata/bottleneck/issues/281, but the same error
$pip install grovepi --no-use-pep517
(Omitted)
RuntimeError: Running cythonize failed!
Cythonizing sources
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
pip install --upgrade pip setuptools wheel
(Omitted)
Successfully installed setuptools-46.0.0 wheel-0.34.2
$pip install grovepi
Similar error
Refer to here https://teratail.com/questions/239230, but the same error
$sudo apt install libopenblas-dev
$sudo pip install pybind11
$pip install grovepi
Similar error
So I came to the first conclusion and solved it
I get an error saying that the RPi module is missing, which is resolved below
$pip install rpi.gpio
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Processing /home/pi/.cache/pip/wheels/e9/28/be/151b023b334391106527be123557a1a9b99f6b19cbd1ce8b48/RPi.GPIO-0.7.0-cp38-cp38-linux_armv7l.whl
ERROR: grovepi 1.0.4 requires scipy, which is not installed.
Installing collected packages: rpi.gpio
Successfully installed rpi.gpio-0.7.0
Recommended Posts