Timed Out Error with PulseIn on Raspberry pi
See original GitHub issueThis happens on my Raspberrypi zero(Buster) and Raspberrypi 3(stretch):
Python 3.7.3 (default, Dec 20 2019, 18:57:59)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import board, pulseio
>>> p = pulseio.PulseIn(board.D14)
/usr/local/lib/python3.7/dist-packages/adafruit_blinka/microcontroller/bcm283x/pulseio/libgpiod_pulsein: error while loading shared libraries: libgpiod.so.2: cannot open shared object file: No such file or directory
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.7/dist-packages/adafruit_blinka/microcontroller/bcm283x/pulseio/PulseIn.py", line 64, in __init__
message = self._wait_receive_msg()
File "/usr/local/lib/python3.7/dist-packages/adafruit_blinka/microcontroller/bcm283x/pulseio/PulseIn.py", line 80, in _wait_receive_msg
raise RuntimeError("Timed out waiting for PulseIn message")
RuntimeError: Timed out waiting for PulseIn message
I first notice this error when I was using ultrasonic sensor, see https://github.com/adafruit/Adafruit_CircuitPython_HCSR04/pull/16
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (2 by maintainers)
Top Results From Across the Web
DHT22: libgpiod_pulsein issue
RuntimeError: Timed out waiting for PulseIn message. Make sure libgpiod is installed. After killing the process via terminal:.
Read more >Gathering temperature from raspberry pi (DHT22) through ...
RuntimeError: Timed out waiting for PulseIn message. Make sure libgpiod is installed. When this happens, I need to reboot the webserver and it ......
Read more >Raspberry Pi Zero and AM2302 sensor reading error.
RuntimeError : Timed out waiting for PulseIn message. error message on. Code: Select all dhtDevice = DHT_TYPE(DHT_PIN).
Read more >Arduino pulseIn() With Interrupts
The problem with pulseIn() is that it's going to block your entire program for a certain amount of time. This amount of time...
Read more >Ultrasonic Ranger Examples - Raspberry Pi Pico — 16-223 ...
1# sonar_demo.py 2# 3# Raspberry Pi Pico - HC-04 sonar module demo 4 5# This ... 70 now = time.monotonic_ns() 71 if now...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi, have you been able to solve this? If not please try running
sudo apt install libgpiod2
.Solved after I run
sudo apt install libgpiod2
Thank you!