RTIMULib error
Closed this issue ยท 4 comments
Pi 3B / 3A+, Raspbian Buster
Not that I need it, but RTIMULib is not compiling
The installation was able to continue
Just reporting, thank you for this time saving script!
Collecting RTIMULib
Using cached https://files.pythonhosted.org/packages/86/78/562816a251259f387b1f27388ced9a6a0758b70944d64f4f622c30e47b21/RTIMULib-7.2.1.tar.gz
Building wheels for collected packages: RTIMULib
Building wheel for RTIMULib (setup.py) ... error
ERROR: Complete output from command /home/pi/.venv/jns/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-ttuyaopr/RTIMULib/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/pip-wheel-9vtthohg --python-tag cp37:
ERROR: running bdist_wheel
running build
running build_ext
building 'RTIMU' extension
creating build
creating build/temp.linux-armv7l-3.7
creating RTIMULib
creating RTIMULib/IMUDrivers
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAL_QUIET -I../../RTIMULib -I/home/pi/.venv/jns/include -I/usr/include/python3.7m -c PyRTIMU.cpp -o build/temp.linux-armv7l-3.7/PyRTIMU.o -std=c++0x
PyRTIMU.cpp:28:10: fatal error: PyRTIMU.h: No such file or directory
#include "PyRTIMU.h"
^~~~~~~~~~~
compilation terminated.
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for RTIMULib
Running setup.py clean for RTIMULib
Failed to build RTIMULib
Installing collected packages: RTIMULib
Running setup.py install for RTIMULib ... error
ERROR: Complete output from command /home/pi/.venv/jns/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-ttuyaopr/RTIMULib/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-record-ixqopdcd/install-record.txt --single-version-externally-managed --compile --install-headers /home/pi/.venv/jns/include/site/python3.7/RTIMULib:
ERROR: running install
running build
running build_ext
building 'RTIMU' extension
creating build
creating build/temp.linux-armv7l-3.7
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DHAL_QUIET -I../../RTIMULib -I/home/pi/.venv/jns/include -I/usr/include/python3.7m -c PyRTIMU.cpp -o build/temp.linux-armv7l-3.7/PyRTIMU.o -std=c++0x
PyRTIMU.cpp:28:10: fatal error: PyRTIMU.h: No such file or directory
#include "PyRTIMU.h"
^~~~~~~~~~~
compilation terminated.
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
----------------------------------------
ERROR: Command "/home/pi/.venv/jns/bin/python3 -u -c 'import setuptools, tokenize;__file__='"'"'/tmp/pip-install-ttuyaopr/RTIMULib/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-record-ixqopdcd/install-record.txt --single-version-externally-managed --compile --install-headers /home/pi/.venv/jns/include/site/python3.7/RTIMULib" failed with error code 1 in /tmp/pip-install-ttuyaopr/RTIMULib/
Hi @qqgg231
Thanks for reporting this issue. I am travelling for work in the moment and do not have a Pi to test. According to this post by Ben Buster now ships Python 3.7 but with Buster having just been released it may take a while for the package to pop up. @bennuttall just pointed to this GitHub repository if you want to install it.
Regards
Eckhard
Hi @qqgg231 and others that might be interested:
To install RTIMULib without pip until it becomes pip-installable on Raspbian Buster the following code should work. I used this on Stretch prior to the package popping up on piwheels.
source /home/pi/.venv/bin/activate
cd ~
git clone https://github.com/RPi-Distro/RTIMULib
cd ./RTIMULib/Linux/python/
python setup.py build
python setup.py install
rm -rf ~/RTIMULib
I will keep this issue open until I find the time to update the script.
Regards
Eckhard
It looks like RTIMULib
can be installed through PyPi
on Buster once again:
root@1a60b405b95f:/# cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
root@1a60b405b95f:/# uname -r
4.15.0-62-generic
root@1a60b405b95f:/#
root@1a60b405b95f:/#
root@1a60b405b95f:/# pip install RTIMULib
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting RTIMULib
Downloading https://www.piwheels.org/simple/rtimulib/RTIMULib-7.2.1-cp37-cp37m-linux_armv6l.whl (383kB)
|โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ| 389kB 1.8MB/s
Installing collected packages: RTIMULib
Successfully installed RTIMULib-7.2.1
Thanks @tanasegabriel for sharing. I admit that I am quite a bit behind with updating the repository to Raspbian Buster. This is well overdue but testing things especially on older Pi is time-consuming. Apart from of my (failed) attempt to come up with a Julia installer that works across Raspberry Pi incarnation the scripts should work and people brave enough to try can handle quirks here and there. An issue with Julia is that the current stable version 1.2.0 is only available for ARMv7. I'll probably create a new Julia installer script that uses the Raspbian Buster repository package on ARMv6 and the official stable version on ARMv7. My README.md also deserves an update. Piwheels - pretty new when I first reorganized this repository - has become the backbone of all things Python on the Raspberry Pi platform.
On a lighter note: I am currently experimenting with an installation of Jupyter on Raspbian Stretch Desktop. I wanted to try it and I want to rid myself of the misconception that Mathematica is only for Mathematics. To be honest: The symbolic underpinnings of Mathematica and the Wolfram Language are rather remarkable. Well aware that the system is proprietary, I am thankful that Stephen Wolfram generous enough to give us the chance to try it out.
Thanks Again !
Eckhard