kizniche / Mycodo

An environmental monitoring and regulation system
http://kylegabriel.com/projects/
GNU General Public License v3.0
2.94k stars 492 forks source link

No module named 'RTIMU' error when using Sense Hat #1233

Closed wingsergey closed 1 year ago

wingsergey commented 1 year ago

Describe the problem/bug

Sense hat input is not working.

ERROR - mycodo.inputs.sense_hat_0906d318 - Error 101: Device not set up.

Versions:

Additional context

2022-10-08 10:21:56,047 - ERROR - mycodo.inputs.sense_hat_0906d318 - Initialization errored 3 times; giving up. Maybe the following traceback can help diagnose the issue. Traceback (most recent call last): File "/var/mycodo-root/mycodo/abstract_base_controller.py", line 52, in try_initialize self.initialize() File "/home/pi/Mycodo/mycodo/inputs/sense_hat.py", line 120, in initialize from sense_hat import SenseHat File "/var/mycodo-root/env/lib/python3.9/site-packages/sense_hat/init.py", line 2, in from .sense_hat import SenseHat, SenseHat as AstroPi File "/var/mycodo-root/env/lib/python3.9/site-packages/sense_hat/sense_hat.py", line 10, in import RTIMU # custom version ModuleNotFoundError: No module named 'RTIMU'

I tried https://forums.raspberrypi.com/viewtopic.php?t=197281 and it not helped.

If simply run >>> import RTIMU it does not provide any errors

pi@rpi:/usr/lib $ find . -name 'RTI*' ./python3/dist-packages/RTIMULib-7.2.1.egg-info ./python3/dist-packages/RTIMU.cpython-39-aarch64-linux-gnu.so

kizniche commented 1 year ago

Mycodo's virtual environment doesn't use site packages. See if the Input works after this command:

sudo ~/Mycodo/env/bin/pip install rtimulib

If it does, I'll add that as a dependency for the Input.

wingsergey commented 1 year ago

Unfortunately it failed:

pi@rpi:~/Mycodo` $ sudo ~/Mycodo/env/bin/pip install rtimulib
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting rtimulib
  Using cached RTIMULib-7.2.1.tar.gz (7.2 kB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: rtimulib
  Building wheel for rtimulib (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [13 lines of output]
      running bdist_wheel
      running build
      running build_ext
      building 'RTIMU' extension
      creating RTIMULib
      creating RTIMULib/IMUDrivers
      creating build
      creating build/temp.linux-aarch64-cpython-39
      aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-PN012d/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DHAL_QUIET -I../../RTIMULib -I/home/pi/Mycodo/env/include -I/usr/include/python3.9 -c ../../RTIMULib/IMUDrivers/RTHumidity.cpp -o build/temp.linux-aarch64-cpython-39/../../RTIMULib/IMUDrivers/RTHumidity.o -std=c++0x
      aarch64-linux-gnu-gcc: error: ../../RTIMULib/IMUDrivers/RTHumidity.cpp: No such file or directory
      aarch64-linux-gnu-gcc: fatal error: no input files
      compilation terminated.
      error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  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: subprocess-exited-with-error

  × Running setup.py install for rtimulib did not run successfully.
  │ exit code: 1
  ╰─> [13 lines of output]
      running install
      /home/pi/Mycodo/env/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_ext
      building 'RTIMU' extension
      creating build
      creating build/temp.linux-aarch64-cpython-39
      aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-PN012d/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DHAL_QUIET -I../../RTIMULib -I/home/pi/Mycodo/env/include -I/usr/include/python3.9 -c ../../RTIMULib/IMUDrivers/RTHumidity.cpp -o build/temp.linux-aarch64-cpython-39/../../RTIMULib/IMUDrivers/RTHumidity.o -std=c++0x
      aarch64-linux-gnu-gcc: error: ../../RTIMULib/IMUDrivers/RTHumidity.cpp: No such file or directory
      aarch64-linux-gnu-gcc: fatal error: no input files
      compilation terminated.
      error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> rtimulib

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
kizniche commented 1 year ago

Try these commands:

cd
git clone https://github.com/RPi-Distro/RTIMULib
cd ./RTIMULib/Linux/python/
~/Mycodo/env/bin/python setup.py build
~/Mycodo/env/bin/python setup.py install
wingsergey commented 1 year ago

Yes, it helped. It is working now. Thank you a lot for your support. Great project and great job.

hugocollignon commented 1 year ago

Hello, and thanks for your work

I had the same issue, and when I tried to run by hand commands (from here https://github.com/kizniche/Mycodo/blob/master/mycodo/inputs/sense_hat.py#L98):

pi@raspberrypi:/tmp/RTIMULib/Linux/python $ ~/Mycodo/env/bin/python setup.py build
running build
running build_ext
building 'RTIMU' extension
creating RTIMULib
error: could not create 'RTIMULib': Permission denied

It's ok with sudo

pi@raspberrypi:/tmp/RTIMULib/Linux/python $ sudo ~/Mycodo/env/bin/python setup.py build
running build
running build_ext
building 'RTIMU' extension
creating RTIMULib
creating RTIMULib/IMUDrivers
creating build
creating build/temp.linux-aarch64-cpython-39
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-PN012d/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DHAL_QUIET -I../../RTIMULib -I/home/pi/Mycodo/env/include -I/usr/include/python3.9 -c ../../RTIMULib/IMUDrivers/RTHumidity.cpp -o build/temp.linux-aarch64-cpython-39/../../RTIMULib/IMUDrivers/RTHumidity.o -std=c++0x
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-PN012d/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DHAL_QUIET -I../../RTIMULib -I/home/pi/Mycodo/env/include -I/usr/include/python3.9 -c ../../RTIMULib/IMUDrivers/RTHumidityHTS221.cpp -o build/temp.linux-aarch64-cpython-39/../../RTIMULib/IMUDrivers/RTHumidityHTS221.o -std=c++0x
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-PN012d/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DHAL_QUIET -I../../RTIMULib -I/home/pi/Mycodo/env/include -I/usr/include/python3.9 -c ../../RTIMULib/IMUDrivers/RTHumidityHTU21D.cpp -o build/temp.linux-aarch64-cpython-39/../../RTIMULib/IMUDrivers/RTHumidityHTU21D.o -std=c++0x
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-PN012d/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DHAL_QUIET -I../../RTIMULib -I/home/pi/Mycodo/env/include -I/usr/include/python3.9 -c ../../RTIMULib/IMUDrivers/RTIMU.cpp -o build/temp.linux-aarch64-cpython-39/../../RTIMULib/IMUDrivers/RTIMU.o -std=c++0x
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-PN012d/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DHAL_QUIET -I../../RTIMULib -I/home/pi/Mycodo/env/include -I/usr/include/python3.9 -c ../../RTIMULib/IMUDrivers/RTIMUBMX055.cpp -o build/temp.linux-aarch64-cpython-39/../../RTIMULib/IMUDrivers/RTIMUBMX055.o -std=c++0x
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-PN012d/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DHAL_QUIET -I../../RTIMULib -I/home/pi/Mycodo/env/include -I/usr/include/python3.9 -c ../../RTIMULib/IMUDrivers/RTIMUBNO055.cpp -o build/temp.linux-aarch64-cpython-39/../../RTIMULib/IMUDrivers/RTIMUBNO055.o -std=c++0x
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-PN012d/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DHAL_QUIET -I../../RTIMULib -I/home/pi/Mycodo/env/include -I/usr/include/python3.9 -c ../../RTIMULib/IMUDrivers/RTIMUGD20HM303D.cpp -o build/temp.linux-aarch64-cpython-39/../../RTIMULib/IMUDrivers/RTIMUGD20HM303D.o -std=c++0x
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-PN012d/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DHAL_QUIET -I../../RTIMULib -I/home/pi/Mycodo/env/include -I/usr/include/python3.9 -c ../../RTIMULib/IMUDrivers/RTIMUGD20HM303DLHC.cpp -o build/temp.linux-aarch64-cpython-39/../../RTIMULib/IMUDrivers/RTIMUGD20HM303DLHC.o -std=c++0x
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-PN012d/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DHAL_QUIET -I../../RTIMULib -I/home/pi/Mycodo/env/include -I/usr/include/python3.9 -c ../../RTIMULib/IMUDrivers/RTIMUGD20M303DLHC.cpp -o build/temp.linux-aarch64-cpython-39/../../RTIMULib/IMUDrivers/RTIMUGD20M303DLHC.o -std=c++0x
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-PN012d/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DHAL_QUIET -I../../RTIMULib -I/home/pi/Mycodo/env/include -I/usr/include/python3.9 -c ../../RTIMULib/IMUDrivers/RTIMULSM9DS0.cpp -o build/temp.linux-aarch64-cpython-39/../../RTIMULib/IMUDrivers/RTIMULSM9DS0.o -std=c++0x
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-PN012d/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DHAL_QUIET -I../../RTIMULib -I/home/pi/Mycodo/env/include -I/usr/include/python3.9 -c ../../RTIMULib/IMUDrivers/RTIMULSM9DS1.cpp -o build/temp.linux-aarch64-cpython-39/../../RTIMULib/IMUDrivers/RTIMULSM9DS1.o -std=c++0x
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-PN012d/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DHAL_QUIET -I../../RTIMULib -I/home/pi/Mycodo/env/include -I/usr/include/python3.9 -c ../../RTIMULib/IMUDrivers/RTIMUMPU9150.cpp -o build/temp.linux-aarch64-cpython-39/../../RTIMULib/IMUDrivers/RTIMUMPU9150.o -std=c++0x
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-PN012d/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DHAL_QUIET -I../../RTIMULib -I/home/pi/Mycodo/env/include -I/usr/include/python3.9 -c ../../RTIMULib/IMUDrivers/RTIMUMPU9250.cpp -o build/temp.linux-aarch64-cpython-39/../../RTIMULib/IMUDrivers/RTIMUMPU9250.o -std=c++0x
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-PN012d/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DHAL_QUIET -I../../RTIMULib -I/home/pi/Mycodo/env/include -I/usr/include/python3.9 -c ../../RTIMULib/IMUDrivers/RTIMUNull.cpp -o build/temp.linux-aarch64-cpython-39/../../RTIMULib/IMUDrivers/RTIMUNull.o -std=c++0x
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-PN012d/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DHAL_QUIET -I../../RTIMULib -I/home/pi/Mycodo/env/include -I/usr/include/python3.9 -c ../../RTIMULib/IMUDrivers/RTPressure.cpp -o build/temp.linux-aarch64-cpython-39/../../RTIMULib/IMUDrivers/RTPressure.o -std=c++0x
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-PN012d/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DHAL_QUIET -I../../RTIMULib -I/home/pi/Mycodo/env/include -I/usr/include/python3.9 -c ../../RTIMULib/IMUDrivers/RTPressureBMP180.cpp -o build/temp.linux-aarch64-cpython-39/../../RTIMULib/IMUDrivers/RTPressureBMP180.o -std=c++0x
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-PN012d/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DHAL_QUIET -I../../RTIMULib -I/home/pi/Mycodo/env/include -I/usr/include/python3.9 -c ../../RTIMULib/IMUDrivers/RTPressureLPS25H.cpp -o build/temp.linux-aarch64-cpython-39/../../RTIMULib/IMUDrivers/RTPressureLPS25H.o -std=c++0x
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-PN012d/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DHAL_QUIET -I../../RTIMULib -I/home/pi/Mycodo/env/include -I/usr/include/python3.9 -c ../../RTIMULib/IMUDrivers/RTPressureMS5611.cpp -o build/temp.linux-aarch64-cpython-39/../../RTIMULib/IMUDrivers/RTPressureMS5611.o -std=c++0x
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-PN012d/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DHAL_QUIET -I../../RTIMULib -I/home/pi/Mycodo/env/include -I/usr/include/python3.9 -c ../../RTIMULib/IMUDrivers/RTPressureMS5637.cpp -o build/temp.linux-aarch64-cpython-39/../../RTIMULib/IMUDrivers/RTPressureMS5637.o -std=c++0x
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-PN012d/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DHAL_QUIET -I../../RTIMULib -I/home/pi/Mycodo/env/include -I/usr/include/python3.9 -c ../../RTIMULib/RTFusion.cpp -o build/temp.linux-aarch64-cpython-39/../../RTIMULib/RTFusion.o -std=c++0x
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-PN012d/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DHAL_QUIET -I../../RTIMULib -I/home/pi/Mycodo/env/include -I/usr/include/python3.9 -c ../../RTIMULib/RTFusionKalman4.cpp -o build/temp.linux-aarch64-cpython-39/../../RTIMULib/RTFusionKalman4.o -std=c++0x
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-PN012d/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DHAL_QUIET -I../../RTIMULib -I/home/pi/Mycodo/env/include -I/usr/include/python3.9 -c ../../RTIMULib/RTFusionRTQF.cpp -o build/temp.linux-aarch64-cpython-39/../../RTIMULib/RTFusionRTQF.o -std=c++0x
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-PN012d/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DHAL_QUIET -I../../RTIMULib -I/home/pi/Mycodo/env/include -I/usr/include/python3.9 -c ../../RTIMULib/RTIMUHal.cpp -o build/temp.linux-aarch64-cpython-39/../../RTIMULib/RTIMUHal.o -std=c++0x
../../RTIMULib/RTIMUHal.cpp: In member function ‘bool RTIMUHal::HALWrite(unsigned char, unsigned char, unsigned char, const unsigned char*, const char*)’:
../../RTIMULib/RTIMUHal.cpp:156:11: warning: variable ‘ifType’ set but not used [-Wunused-but-set-variable]
  156 |     char *ifType;
      |           ^~~~~~
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-PN012d/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DHAL_QUIET -I../../RTIMULib -I/home/pi/Mycodo/env/include -I/usr/include/python3.9 -c ../../RTIMULib/RTIMUSettings.cpp -o build/temp.linux-aarch64-cpython-39/../../RTIMULib/RTIMUSettings.o -std=c++0x
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-PN012d/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DHAL_QUIET -I../../RTIMULib -I/home/pi/Mycodo/env/include -I/usr/include/python3.9 -c ../../RTIMULib/RTMath.cpp -o build/temp.linux-aarch64-cpython-39/../../RTIMULib/RTMath.o -std=c++0x
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-PN012d/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DHAL_QUIET -I../../RTIMULib -I/home/pi/Mycodo/env/include -I/usr/include/python3.9 -c PyRTIMU.cpp -o build/temp.linux-aarch64-cpython-39/PyRTIMU.o -std=c++0x
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-PN012d/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DHAL_QUIET -I../../RTIMULib -I/home/pi/Mycodo/env/include -I/usr/include/python3.9 -c PyRTIMU_RTHumidity.cpp -o build/temp.linux-aarch64-cpython-39/PyRTIMU_RTHumidity.o -std=c++0x
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-PN012d/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DHAL_QUIET -I../../RTIMULib -I/home/pi/Mycodo/env/include -I/usr/include/python3.9 -c PyRTIMU_RTIMU.cpp -o build/temp.linux-aarch64-cpython-39/PyRTIMU_RTIMU.o -std=c++0x
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-PN012d/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DHAL_QUIET -I../../RTIMULib -I/home/pi/Mycodo/env/include -I/usr/include/python3.9 -c PyRTIMU_RTPressure.cpp -o build/temp.linux-aarch64-cpython-39/PyRTIMU_RTPressure.o -std=c++0x
aarch64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-PN012d/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DHAL_QUIET -I../../RTIMULib -I/home/pi/Mycodo/env/include -I/usr/include/python3.9 -c PyRTIMU_Settings.cpp -o build/temp.linux-aarch64-cpython-39/PyRTIMU_Settings.o -std=c++0x
creating build/lib.linux-aarch64-cpython-39
aarch64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fwrapv -O2 build/temp.linux-aarch64-cpython-39/../../RTIMULib/IMUDrivers/RTHumidity.o build/temp.linux-aarch64-cpython-39/../../RTIMULib/IMUDrivers/RTHumidityHTS221.o build/temp.linux-aarch64-cpython-39/../../RTIMULib/IMUDrivers/RTHumidityHTU21D.o build/temp.linux-aarch64-cpython-39/../../RTIMULib/IMUDrivers/RTIMU.o build/temp.linux-aarch64-cpython-39/../../RTIMULib/IMUDrivers/RTIMUBMX055.o build/temp.linux-aarch64-cpython-39/../../RTIMULib/IMUDrivers/RTIMUBNO055.o build/temp.linux-aarch64-cpython-39/../../RTIMULib/IMUDrivers/RTIMUGD20HM303D.o build/temp.linux-aarch64-cpython-39/../../RTIMULib/IMUDrivers/RTIMUGD20HM303DLHC.o build/temp.linux-aarch64-cpython-39/../../RTIMULib/IMUDrivers/RTIMUGD20M303DLHC.o build/temp.linux-aarch64-cpython-39/../../RTIMULib/IMUDrivers/RTIMULSM9DS0.o build/temp.linux-aarch64-cpython-39/../../RTIMULib/IMUDrivers/RTIMULSM9DS1.o build/temp.linux-aarch64-cpython-39/../../RTIMULib/IMUDrivers/RTIMUMPU9150.o build/temp.linux-aarch64-cpython-39/../../RTIMULib/IMUDrivers/RTIMUMPU9250.o build/temp.linux-aarch64-cpython-39/../../RTIMULib/IMUDrivers/RTIMUNull.o build/temp.linux-aarch64-cpython-39/../../RTIMULib/IMUDrivers/RTPressure.o build/temp.linux-aarch64-cpython-39/../../RTIMULib/IMUDrivers/RTPressureBMP180.o build/temp.linux-aarch64-cpython-39/../../RTIMULib/IMUDrivers/RTPressureLPS25H.o build/temp.linux-aarch64-cpython-39/../../RTIMULib/IMUDrivers/RTPressureMS5611.o build/temp.linux-aarch64-cpython-39/../../RTIMULib/IMUDrivers/RTPressureMS5637.o build/temp.linux-aarch64-cpython-39/../../RTIMULib/RTFusion.o build/temp.linux-aarch64-cpython-39/../../RTIMULib/RTFusionKalman4.o build/temp.linux-aarch64-cpython-39/../../RTIMULib/RTFusionRTQF.o build/temp.linux-aarch64-cpython-39/../../RTIMULib/RTIMUHal.o build/temp.linux-aarch64-cpython-39/../../RTIMULib/RTIMUSettings.o build/temp.linux-aarch64-cpython-39/../../RTIMULib/RTMath.o build/temp.linux-aarch64-cpython-39/PyRTIMU.o build/temp.linux-aarch64-cpython-39/PyRTIMU_RTHumidity.o build/temp.linux-aarch64-cpython-39/PyRTIMU_RTIMU.o build/temp.linux-aarch64-cpython-39/PyRTIMU_RTPressure.o build/temp.linux-aarch64-cpython-39/PyRTIMU_Settings.o -L/usr/lib -o build/lib.linux-aarch64-cpython-39/RTIMU.cpython-39-aarch64-linux-gnu.so
pi@raspberrypi:/tmp/RTIMULib/Linux/python $ sudo ~/Mycodo/env/bin/python setup.py install
running install
/home/pi/Mycodo/env/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/home/pi/Mycodo/env/lib/python3.9/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
running bdist_egg
running egg_info
creating RTIMULib.egg-info
writing RTIMULib.egg-info/PKG-INFO
writing dependency_links to RTIMULib.egg-info/dependency_links.txt
writing top-level names to RTIMULib.egg-info/top_level.txt
writing manifest file 'RTIMULib.egg-info/SOURCES.txt'
reading manifest file 'RTIMULib.egg-info/SOURCES.txt'
writing manifest file 'RTIMULib.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-aarch64/egg
running install_lib
running build_ext
creating build/bdist.linux-aarch64
creating build/bdist.linux-aarch64/egg
copying build/lib.linux-aarch64-cpython-39/RTIMU.cpython-39-aarch64-linux-gnu.so -> build/bdist.linux-aarch64/egg
creating stub loader for RTIMU.cpython-39-aarch64-linux-gnu.so
byte-compiling build/bdist.linux-aarch64/egg/RTIMU.py to RTIMU.cpython-39.pyc
creating build/bdist.linux-aarch64/egg/EGG-INFO
copying RTIMULib.egg-info/PKG-INFO -> build/bdist.linux-aarch64/egg/EGG-INFO
copying RTIMULib.egg-info/SOURCES.txt -> build/bdist.linux-aarch64/egg/EGG-INFO
copying RTIMULib.egg-info/dependency_links.txt -> build/bdist.linux-aarch64/egg/EGG-INFO
copying RTIMULib.egg-info/top_level.txt -> build/bdist.linux-aarch64/egg/EGG-INFO
writing build/bdist.linux-aarch64/egg/EGG-INFO/native_libs.txt
zip_safe flag not set; analyzing archive contents...
__pycache__.RTIMU.cpython-39: module references __file__
creating dist
creating 'dist/RTIMULib-7.2.1-py3.9-linux-aarch64.egg' and adding 'build/bdist.linux-aarch64/egg' to it
removing 'build/bdist.linux-aarch64/egg' (and everything under it)
Processing RTIMULib-7.2.1-py3.9-linux-aarch64.egg
creating /home/pi/Mycodo/env/lib/python3.9/site-packages/RTIMULib-7.2.1-py3.9-linux-aarch64.egg
Extracting RTIMULib-7.2.1-py3.9-linux-aarch64.egg to /home/pi/Mycodo/env/lib/python3.9/site-packages
Adding RTIMULib 7.2.1 to easy-install.pth file

Installed /home/pi/Mycodo/env/lib/python3.9/site-packages/RTIMULib-7.2.1-py3.9-linux-aarch64.egg
Processing dependencies for RTIMULib==7.2.1
Finished processing dependencies for RTIMULib==7.2.1

And by the way, with the Sense HAT v2, we have a color sensor included now! See: https://datasheets.raspberrypi.com/sense-hat/sense-hat-product-brief.pdf And https://github.com/astro-pi/python-sense-hat/pull/131 to patch the library (the light sensor on modules shipped in ISS are not the same than those selled).

Thanks!

kizniche commented 1 year ago

This issue has been mentioned on Radical DIY Forum. There might be relevant details there:

https://forum.radicaldiy.com/t/mycodo-v8-15-0-release/1362/1