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.
<LINK_TEXT text=“http://wiki.seeedstudio.com/Grove_Base_ … stallation”>http://wiki.seeedstudio.com/Grove_Base_Hat_for_Raspberry_Pi/#installation</LINK_TEXT>
My raspberry Pi Zero BW is set with the last Raspbian img (2018-11-13-raspbian-stretch-full)
The one-click installation (curl -sL <LINK_TEXT text=“https://github.com/Seeed-Studio/grove.p … install.sh”>https://github.com/Seeed-Studio/grove.py/raw/master/install.sh</LINK_TEXT> | 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 <LINK_TEXT text=“https://github.com/Seeed-Studio/grove.p … install.sh”>https://github.com/Seeed-Studio/grove.py/raw/master/install.sh</LINK_TEXT> | 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 <LINK_TEXT text=“https://files.pythonhosted.org/packages … 0.2.tar.gz”>https://files.pythonhosted.org/packages/7c/f6/13af61a4bbe0dac49ecb22667a61fc341e1768deb4aaf7398a590dd5df10/rpi_vl53l0x-0.0.2.tar.gz</LINK_TEXT>
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 <LINK_TEXT text=“https://files.pythonhosted.org/packages … 0.2.tar.gz”>https://files.pythonhosted.org/packages/7c/f6/13af61a4bbe0dac49ecb22667a61fc341e1768deb4aaf7398a590dd5df10/rpi_vl53l0x-0.0.2.tar.gz</LINK_TEXT>
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 <LINK_TEXT text=“https://files.pythonhosted.org/packages … 0.2.tar.gz”>https://files.pythonhosted.org/packages/7c/f6/13af61a4bbe0dac49ecb22667a61fc341e1768deb4aaf7398a590dd5df10/rpi_vl53l0x-0.0.2.tar.gz</LINK_TEXT>
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
-------------------------------------------------------
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’.
Thank you for your response.
I will try this right away.
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.