question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Timed Out Error with PulseIn on Raspberry pi

See original GitHub issue

This 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:closed
  • Created 4 years ago
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

10reactions
makermelissacommented, Apr 29, 2020

Hi, have you been able to solve this? If not please try running sudo apt install libgpiod2.

6reactions
hyansupercommented, May 7, 2020

Solved after I run sudo apt install libgpiod2 Thank you!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found