Grove Base Hat for Raspberry Pi installation

Applications/questions using Raspberry Pi with Seeed products, please post it here.

Moderator: violet

Post Reply
gonnotpg
Pre-kindergarten
Pre-kindergarten
Posts: 2
Joined: Sun Jan 13, 2019 1:12 am

Grove Base Hat for Raspberry Pi installation

Post by gonnotpg » Sun Jan 13, 2019 1:16 am

HI,
I am a new user of Grove Base Hat for Raspberry Pi. I have to say that my knowledge of linux and python is limited.
http://wiki.seeedstudio.com/Grove_Base_ ... stallation

My raspberry Pi Zero BW is set with the last Raspbian img (2018-11-13-raspbian-stretch-full)
The one-click installation (curl -sL https://github.com/Seeed-Studio/grove.p ... install.sh | sudo bash -s -
) fail to install rpi-vl53l0x.
It seem that the C source code call by swig is not available at https://github.com/turmary/rpi-vl53l0x
Any advice?

curl -sL https://github.com/Seeed-Studio/grove.p ... install.sh | sudo bash -s -
Warning: apt-key output should not be parsed (stdout is not a terminal)
I2C interface enabled...
Hit:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease
Hit:2 http://archive.raspberrypi.org/debian stretch InRelease
Hit:3 https://seeed-studio.github.io/pi_repo stretch InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree
Reading state information... Done
libmraa1 is already the newest version (1.9.0-git20181030-pi20181030).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-mraa is already the newest version (1.9.0-git20181030-pi20181030).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-upm is already the newest version (1.6.0-git20180813-pi20180813).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-mraa is already the newest version (1.9.0-git20181030-pi20181030).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-upm is already the newest version (1.6.0-git20180813-pi20180813).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-rpi.gpio is already the newest version (0.6.5~stretch-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-rpi.gpio is already the newest version (0.6.5~stretch-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
libbma456 is already the newest version (1.0.0-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
libbmi088 is already the newest version (0.0.2-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
python-bme680 is already the newest version (1.0.5).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3-bme680 is already the newest version (1.0.5).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Requirement already satisfied: rpi-ws281x in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied: rpi-ws281x in /usr/local/lib/python3.5/dist-packages
Requirement already satisfied: smbus2 in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied: smbus2 in /usr/local/lib/python3.5/dist-packages
Collecting rpi-vl53l0x
Using cached https://files.pythonhosted.org/packages ... 0.2.tar.gz
Building wheels for collected packages: rpi-vl53l0x
Running setup.py bdist_wheel for rpi-vl53l0x ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-EEgelO/rpi-vl53l0x/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmp9NnoqZpip-wheel- --python-tag cp27:
running bdist_wheel
running build
running build_py
Compiling vl53l0x library...
make: *** No targets specified and no makefile found. Stop.

creating build
creating build/lib.linux-armv6l-2.7
copying vl53l0x_api.py -> build/lib.linux-armv6l-2.7
copying ez_setup.py -> build/lib.linux-armv6l-2.7
running build_ext
building '_rpi_vl53l0x' extension
swigging rpi_vl53l0x.i to rpi_vl53l0x_wrap.c
swig -python -o rpi_vl53l0x_wrap.c rpi_vl53l0x.i
rpi_vl53l0x.i:25: Error: Unable to find '../VL53L0X_1.0.2/Api/core/inc/vl53l0x_api.h'
rpi_vl53l0x.i:26: Error: Unable to find '../VL53L0X_1.0.2/Api/core/inc/vl53l0x_def.h'
rpi_vl53l0x.i:27: Error: Unable to find '../platform/inc/vl53l0x_platform.h'
error: command 'swig' failed with exit status 1

----------------------------------------
Failed building wheel for rpi-vl53l0x
Running setup.py clean for rpi-vl53l0x
Failed to build rpi-vl53l0x
Installing collected packages: rpi-vl53l0x
Running setup.py install for rpi-vl53l0x ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-EEgelO/rpi-vl53l0x/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-lCnKfM-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
Compiling vl53l0x library...
make: *** No targets specified and no makefile found. Stop.

creating build
creating build/lib.linux-armv6l-2.7
copying vl53l0x_api.py -> build/lib.linux-armv6l-2.7
copying ez_setup.py -> build/lib.linux-armv6l-2.7
running build_ext
building '_rpi_vl53l0x' extension
swigging rpi_vl53l0x.i to rpi_vl53l0x_wrap.c
swig -python -o rpi_vl53l0x_wrap.c rpi_vl53l0x.i
rpi_vl53l0x.i:25: Error: Unable to find '../VL53L0X_1.0.2/Api/core/inc/vl53l0x_api.h'
rpi_vl53l0x.i:26: Error: Unable to find '../VL53L0X_1.0.2/Api/core/inc/vl53l0x_def.h'
rpi_vl53l0x.i:27: Error: Unable to find '../platform/inc/vl53l0x_platform.h'
error: command 'swig' failed with exit status 1

----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-EEgelO/rpi-vl53l0x/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-lCnKfM-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-EEgelO/rpi-vl53l0x/
Collecting rpi-vl53l0x
Using cached https://files.pythonhosted.org/packages ... 0.2.tar.gz
Building wheels for collected packages: rpi-vl53l0x
Running setup.py bdist_wheel for rpi-vl53l0x ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-i4rVht/rpi-vl53l0x/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpOoiwGcpip-wheel- --python-tag cp27:
running bdist_wheel
running build
running build_py
Compiling vl53l0x library...
make: *** No targets specified and no makefile found. Stop.

creating build
creating build/lib.linux-armv6l-2.7
copying vl53l0x_api.py -> build/lib.linux-armv6l-2.7
copying ez_setup.py -> build/lib.linux-armv6l-2.7
running build_ext
building '_rpi_vl53l0x' extension
swigging rpi_vl53l0x.i to rpi_vl53l0x_wrap.c
swig -python -o rpi_vl53l0x_wrap.c rpi_vl53l0x.i
rpi_vl53l0x.i:25: Error: Unable to find '../VL53L0X_1.0.2/Api/core/inc/vl53l0x_api.h'
rpi_vl53l0x.i:26: Error: Unable to find '../VL53L0X_1.0.2/Api/core/inc/vl53l0x_def.h'
rpi_vl53l0x.i:27: Error: Unable to find '../platform/inc/vl53l0x_platform.h'
error: command 'swig' failed with exit status 1

----------------------------------------
Failed building wheel for rpi-vl53l0x
Running setup.py clean for rpi-vl53l0x
Failed to build rpi-vl53l0x
Installing collected packages: rpi-vl53l0x
Running setup.py install for rpi-vl53l0x ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-i4rVht/rpi-vl53l0x/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-T3Mpi2-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
Compiling vl53l0x library...
make: *** No targets specified and no makefile found. Stop.

creating build
creating build/lib.linux-armv6l-2.7
copying vl53l0x_api.py -> build/lib.linux-armv6l-2.7
copying ez_setup.py -> build/lib.linux-armv6l-2.7
running build_ext
building '_rpi_vl53l0x' extension
swigging rpi_vl53l0x.i to rpi_vl53l0x_wrap.c
swig -python -o rpi_vl53l0x_wrap.c rpi_vl53l0x.i
rpi_vl53l0x.i:25: Error: Unable to find '../VL53L0X_1.0.2/Api/core/inc/vl53l0x_api.h'
rpi_vl53l0x.i:26: Error: Unable to find '../VL53L0X_1.0.2/Api/core/inc/vl53l0x_def.h'
rpi_vl53l0x.i:27: Error: Unable to find '../platform/inc/vl53l0x_platform.h'
error: command 'swig' failed with exit status 1

----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-i4rVht/rpi-vl53l0x/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-T3Mpi2-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-i4rVht/rpi-vl53l0x/
Collecting rpi-vl53l0x
Using cached https://files.pythonhosted.org/packages ... 0.2.tar.gz
Building wheels for collected packages: rpi-vl53l0x
Running setup.py bdist_wheel for rpi-vl53l0x ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-FyFym6/rpi-vl53l0x/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpqXQNG7pip-wheel- --python-tag cp27:
running bdist_wheel
running build
running build_py
Compiling vl53l0x library...
make: *** No targets specified and no makefile found. Stop.

creating build
creating build/lib.linux-armv6l-2.7
copying vl53l0x_api.py -> build/lib.linux-armv6l-2.7
copying ez_setup.py -> build/lib.linux-armv6l-2.7
running build_ext
building '_rpi_vl53l0x' extension
swigging rpi_vl53l0x.i to rpi_vl53l0x_wrap.c
swig -python -o rpi_vl53l0x_wrap.c rpi_vl53l0x.i
rpi_vl53l0x.i:25: Error: Unable to find '../VL53L0X_1.0.2/Api/core/inc/vl53l0x_api.h'
rpi_vl53l0x.i:26: Error: Unable to find '../VL53L0X_1.0.2/Api/core/inc/vl53l0x_def.h'
rpi_vl53l0x.i:27: Error: Unable to find '../platform/inc/vl53l0x_platform.h'
error: command 'swig' failed with exit status 1

----------------------------------------
Failed building wheel for rpi-vl53l0x
Running setup.py clean for rpi-vl53l0x
Failed to build rpi-vl53l0x
Installing collected packages: rpi-vl53l0x
Running setup.py install for rpi-vl53l0x ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-FyFym6/rpi-vl53l0x/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-UMRmCG-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
Compiling vl53l0x library...
make: *** No targets specified and no makefile found. Stop.

creating build
creating build/lib.linux-armv6l-2.7
copying vl53l0x_api.py -> build/lib.linux-armv6l-2.7
copying ez_setup.py -> build/lib.linux-armv6l-2.7
running build_ext
building '_rpi_vl53l0x' extension
swigging rpi_vl53l0x.i to rpi_vl53l0x_wrap.c
swig -python -o rpi_vl53l0x_wrap.c rpi_vl53l0x.i
rpi_vl53l0x.i:25: Error: Unable to find '../VL53L0X_1.0.2/Api/core/inc/vl53l0x_api.h'
rpi_vl53l0x.i:26: Error: Unable to find '../VL53L0X_1.0.2/Api/core/inc/vl53l0x_def.h'
rpi_vl53l0x.i:27: Error: Unable to find '../platform/inc/vl53l0x_platform.h'
error: command 'swig' failed with exit status 1

----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-FyFym6/rpi-vl53l0x/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-UMRmCG-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-FyFym6/rpi-vl53l0x/
-------------------------------------------------------
Grove.py installation FAILED, FAILED, FAILED
-------------------------------------------------------

rvieiradossantos
Pre-kindergarten
Pre-kindergarten
Posts: 2
Joined: Sat Feb 02, 2019 2:13 am

Re: Grove Base Hat for Raspberry Pi installation

Post by rvieiradossantos » Sat Feb 02, 2019 3:57 am

I might have a solution. Looks like it cannot find whatever it needs of '../VL53L0X_1.0.2'.

I ended up going to the actual groove.py git page (https://github.com/Seeed-Studio/grove.py) and follow the developers steps instead of the 'Online install'. Installed all the dependencies for python 3.

Eventually if the problem persists you can also go and get the 'VL53L0X_rasp_python' yourself manually at https://github.com/johnbryanmoore/VL53L0X_rasp_python, follow the install steps and make sure the folder is 1 folder above your 'groove.py' folder with the name 'VL53L0X_1.0.2'.

gonnotpg
Pre-kindergarten
Pre-kindergarten
Posts: 2
Joined: Sun Jan 13, 2019 1:12 am

Re: Grove Base Hat for Raspberry Pi installation

Post by gonnotpg » Sat Feb 02, 2019 6:14 pm

Thank you for your response.

I will try this right away.

rvieiradossantos
Pre-kindergarten
Pre-kindergarten
Posts: 2
Joined: Sat Feb 02, 2019 2:13 am

Re: Grove Base Hat for Raspberry Pi installation

Post by rvieiradossantos » Tue Feb 05, 2019 3:48 am

I redid and actually all I needed to make it work was following the instructions of groove.py's git page (https://github.com/Seeed-Studio/grove.py). Only had to make sure pip for python 2 was installed.

Oddly enough, I am still stuck with another issue. I have a Grove Base Hat for Raspberry Pi Zero and if I use it with a Pi Zero Wireless I have a return message stating Illegal Instruction. If I use the very same SD card on a Pi 3 B+ it works fine... Opening another thread for this, once it's approved I'll add a link.

Post Reply