-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors on install of python3-coral-enviro with Raspberry Pi Zero W and NaN for Temperature and and Light Level #95
Comments
Hi, This is happening to me as well, here's what I did: What I have
What I didMy process of setting up the Pi has been as follows:
sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade
sudo reboot now
sudo echo "deb https://packages.cloud.google.com/apt coral-cloud-stable main" | sudo tee /etc/apt/sources.list.d/coral-cloud.list
sudo curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
sudo apt update What has happenedAfter updating sources, finally run: sudo apt install python3-coral-enviro
|
Hello, What I have
What I did
What has happened
|
Hello, I am having the same issue when installing What I HaveBuilding from a new raspberry pi image: https://downloads.raspberrypi.org/raspios_armhf/images/raspios_armhf-2021-03-25/2021-03-04-raspios-buster-armhf.zip.torrent What I DidGrabbed the debian package using What Has Happened
|
Same here. But I found someone asking the same question on StackOverflow: https://stackoverflow.com/questions/66084814/what-is-causing-how-can-i-fix-build-error-with-sudo-apt-install-python3-coral-e. The top answer mentions that the compilation fails because the referenced Linux IIO driver API has changed but Google hasn't updated their driver. I modified // .postenable = iio_triggered_buffer_postenable,
// .predisable = iio_triggered_buffer_predisable, Running A real fix would involve Google updating their device drivers, but I don't really see this happening considering the last commit is almost a year old (see https://coral.googlesource.com/coral-cloud/)… |
Hi everyone, I wanted to add my workaround in addition to the comment @msiemens made. As of 2022, the environment board example did not work on RP as there were some problems with the SPI interface because Google did not update the library. After successfully installing the $ sudo apt-get update
$ sudo apt-get install python3 python3-pip python3-pil libjpeg-dev zlib1g-dev libfreetype6-dev liblcms2-dev libopenjp2-7 libtiff5 -y
$ sudo -H pip3 install --upgrade luma.oled Then reboot the board and you can run the example in |
Did what msiemens suggested, edited the ti-ads1015.c source file in a sudo su terminal running Geany, commented out line 797 & 798 /.../ .postenable = iio_triggered_buffer_postenable, are not even used let alone defined, comment them out and it all worked. |
That absolutely worked for me, looks like an issue with the oled driver. Thanks |
Hello. I have the same problem on Raspberry Pi 4B+ with Raspberry Pi OS (release date: 15.03.2024) when performing identical actions. I would be extremely grateful for a detailed solution. Have you found it? If you don`t remember - https://coral.ai/docs/enviro-board/get-started/ |
Hello. I have the same problem on Raspberry Pi 4B+ with Raspberry Pi OS (release date: 15.03.2024) when performing identical actions. I would be extremely grateful for a detailed solution. Have you found it? |
What I ran
sudo apt install python3-coral-enviro
What the docs said should happen
What actually happened
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
coral-enviro-drivers-dkms dkms python3-coral-cloudiot python3-cryptoauthlib
python3-luma-core python3-luma-oled python3-paho-mqtt python3-periphery
python3-smbus2 raspberrypi-kernel-headers
Suggested packages:
python3-apport menu
The following NEW packages will be installed:
coral-enviro-drivers-dkms dkms python3-coral-cloudiot python3-coral-enviro
python3-cryptoauthlib python3-luma-core python3-luma-oled python3-paho-mqtt
python3-periphery python3-smbus2 raspberrypi-kernel-headers
0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
Need to get 27.9 MB of archives.
After this operation, 181 MB of additional disk space will be used.
Get:1 http://archive.raspberrypi.org/debian buster/main armhf raspberrypi-kernel-headers armhf 1.20210201-1 [27.6 MB]
Get:3 https://packages.cloud.google.com/apt coral-cloud-stable/main armhf coral-enviro-drivers-dkms all 1.5 [17.0 kB]
Get:5 https://packages.cloud.google.com/apt coral-cloud-stable/main armhf python3-cryptoauthlib armhf 20190304-3 [62.3 kB]
Get:6 https://packages.cloud.google.com/apt coral-cloud-stable/main armhf python3-coral-cloudiot all 1.2 [6,816 B]
Get:2 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf dkms all 2.6.1-4 [74.4 kB]
Get:7 https://packages.cloud.google.com/apt coral-cloud-stable/main armhf python3-smbus2 all 0.2.2-1 [8,456 B]
Get:8 https://packages.cloud.google.com/apt coral-cloud-stable/main armhf python3-luma-core all 1.8.3-1 [34.8 kB]
Get:9 https://packages.cloud.google.com/apt coral-cloud-stable/main armhf python3-luma-oled all 3.2.0-1 [13.8 kB]
Get:10 https://packages.cloud.google.com/apt coral-cloud-stable/main armhf python3-periphery all 1.1.1-1 [13.9 kB]
Get:11 https://packages.cloud.google.com/apt coral-cloud-stable/main armhf python3-coral-enviro all 1.1 [5,468 B]
Get:4 http://mirror.sjc02.svwh.net/raspbian/raspbian buster/main armhf python3-paho-mqtt all 1.4.0-1 [44.9 kB]
Fetched 27.9 MB in 2min 15s (207 kB/s)
Selecting previously unselected package dkms.
(Reading database ... 98526 files and directories currently installed.)
Preparing to unpack .../00-dkms_2.6.1-4_all.deb ...
Unpacking dkms (2.6.1-4) ...
Selecting previously unselected package raspberrypi-kernel-headers.
Preparing to unpack .../01-raspberrypi-kernel-headers_1.20210201-1_armhf.deb ...
Unpacking raspberrypi-kernel-headers (1.20210201-1) ...
Selecting previously unselected package coral-enviro-drivers-dkms.
Preparing to unpack .../02-coral-enviro-drivers-dkms_1.5_all.deb ...
Unpacking coral-enviro-drivers-dkms (1.5) ...
Selecting previously unselected package python3-paho-mqtt.
Preparing to unpack .../03-python3-paho-mqtt_1.4.0-1_all.deb ...
Unpacking python3-paho-mqtt (1.4.0-1) ...
Selecting previously unselected package python3-cryptoauthlib.
Preparing to unpack .../04-python3-cryptoauthlib_20190304-3_armhf.deb ...
Unpacking python3-cryptoauthlib (20190304-3) ...
Selecting previously unselected package python3-coral-cloudiot.
Preparing to unpack .../05-python3-coral-cloudiot_1.2_all.deb ...
Unpacking python3-coral-cloudiot (1.2) ...
Selecting previously unselected package python3-smbus2.
Preparing to unpack .../06-python3-smbus2_0.2.2-1_all.deb ...
Unpacking python3-smbus2 (0.2.2-1) ...
Selecting previously unselected package python3-luma-core.
Preparing to unpack .../07-python3-luma-core_1.8.3-1_all.deb ...
Unpacking python3-luma-core (1.8.3-1) ...
Selecting previously unselected package python3-luma-oled.
Preparing to unpack .../08-python3-luma-oled_3.2.0-1_all.deb ...
Unpacking python3-luma-oled (3.2.0-1) ...
Selecting previously unselected package python3-periphery.
Preparing to unpack .../09-python3-periphery_1.1.1-1_all.deb ...
Unpacking python3-periphery (1.1.1-1) ...
Selecting previously unselected package python3-coral-enviro.
Preparing to unpack .../10-python3-coral-enviro_1.1_all.deb ...
Unpacking python3-coral-enviro (1.1) ...
Setting up dkms (2.6.1-4) ...
Setting up raspberrypi-kernel-headers (1.20210201-1) ...
run-parts: executing /etc/kernel/header_postinst.d/dkms 5.10.11+
run-parts: executing /etc/kernel/header_postinst.d/dkms 5.10.11-v7+
run-parts: executing /etc/kernel/header_postinst.d/dkms 5.10.11-v7l+
run-parts: executing /etc/kernel/header_postinst.d/dkms 5.10.11-v8+
Setting up python3-paho-mqtt (1.4.0-1) ...
Setting up python3-periphery (1.1.1-1) ...
Setting up python3-smbus2 (0.2.2-1) ...
Setting up python3-cryptoauthlib (20190304-3) ...
Setting up coral-enviro-drivers-dkms (1.5) ...
Loading new coral-enviro-drivers-1.5 DKMS files...
It is likely that 5.10.11+ belongs to a chroot's host
Building for 5.10.11+, 5.10.11-v7+, 5.10.11-v7l+ and 5.10.11-v8+
Building initial module for 5.10.11+
Error! Bad return status for module build on kernel: 5.10.11+ (armv6l)
Consult /var/lib/dkms/coral-enviro-drivers/1.5/build/make.log for more information.
dpkg: error processing package coral-enviro-drivers-dkms (--configure):
installed coral-enviro-drivers-dkms package post-installation script subprocess returned error exit status 10
Setting up python3-coral-cloudiot (1.2) ...
Setting up python3-luma-core (1.8.3-1) ...
Setting up python3-luma-oled (3.2.0-1) ...
dpkg: dependency problems prevent configuration of python3-coral-enviro:
python3-coral-enviro depends on coral-enviro-drivers-dkms; however:
Package coral-enviro-drivers-dkms is not configured yet.
dpkg: error processing package python3-coral-enviro (--configure):
dependency problems - leaving unconfigured
Processing triggers for man-db (2.8.5-2) ...
Errors were encountered while processing:
coral-enviro-drivers-dkms
python3-coral-enviro
E: Sub-process /usr/bin/dpkg returned an error code (1)
After installing I ran:
python3 enviro_demo.py
Temperature and Pressure displayed on the OLED, but light levels and RH were registered as NaN
The text was updated successfully, but these errors were encountered: