Could not install python3.8.1 grovepi module on RaspberryPi Model 3B (solved)

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

Solution

$git clone https://github.com/DexterInd/GrovePi
$cd GrovePi/Script
$sudo chmod +x install.sh
$sudo ./install.sh

Log of what I tried below

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

Supplement

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

Could not install python3.8.1 grovepi module on RaspberryPi Model 3B (solved)
Step 2 to install Xenomai on RaspberryPi 3 model B +
Install python on WSL
Install Python on Pidora.
Install Scrapy on python3
Install Python on Mac
Install Python 3 on Mac
Install Python3.4 on CentOS 6.6
Procedure for installing Xenomai on RaspberryPi 3 model B + Part 1
Install python on windows
Power on/off the USB port on the RaspberryPi 4 Model B
Install Python 2.7.3 on CentOS 5.4
Install Python 3.3 on Ubuntu 12.04
Install Python 3.4 on Mac
Install Python 3.6 on Docker
Install Python 3.8 on RHEL 8 (AppStream)
Install watchdog on Windows + Python 3.3
Install pygame on python3.4 on mac
Install Python 3.8 on CentOS 7 (SCL)
Install module on Anaconda (Mac)
Python --Install MySQLDB on EC2
raspberry pi 1 model b, python
Install Python 3.8 on CentOS 8 (AppStream)
[Python] [Chainer] [Windows] Install Chainer on Windows
Install Python Pillow on Amazon Linux
Install Python 3.8 on Ubuntu 18.04 (OS standard)
Install Python 3.8 on Ubuntu 20.04 (OS standard)
Install python2.7 on windows 32bit environment
Install xgboost (python version) on Windows
Install Python on Windows + pip + virtualenv
Install Pytorch on Blender 2.90 python on Windows
Install Python 3.7 Anaconda on MAC, but Python 2
Install Python 3.9 on Ubuntu 20.04 (OS standard?)
Install Python development environment on Windows 10
Install Python on CentOS using Pyenv
Install confluent-kafka for Python on Ubuntu
Install Python 2.7 on Ubuntu 20.04 (OS standard?)
Steps to install python3 on mac
Install Python on CentOS using pyenv
Install the python module with pip on a server without root privileges