Skip to content

PulseIO NotImplemented Error raised #54

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

Closed
yeyeto2788 opened this issue Dec 14, 2020 · 0 comments · Fixed by #55
Closed

PulseIO NotImplemented Error raised #54

yeyeto2788 opened this issue Dec 14, 2020 · 0 comments · Fixed by #55

Comments

@yeyeto2788
Copy link

Hey guys!

I have installed blinka plus this library (as editable) in order to make some changes for the issue #32 and as @ladyada suggested on this PR in blinka but now I'm getting this error:

Traceback (most recent call last):
  File "a.py", line 3, in <module>
    import adafruit_dht
  File "/home/yeyeto2788/workspace/dht_implementation/venv/src/adafruit-circuitpython-dht/adafruit_dht.py", line 38, in <module>
    from pulseio import PulseIn
  File "/home/yeyeto2788/workspace/dht_implementation/venv/lib/python3.8/site-packages/pulseio.py", line 34, in <module>
    raise NotImplementedError("pulseio not supported for this board.")
NotImplementedError: pulseio not supported for this board.

In the past I did not experience this issue before but even setting the argument use_pulseio does not get properly passed to it.

Script used:

import time
import board
import adafruit_dht
dhtDevice = adafruit_dht.DHT11(board.PG7, use_pulseio=False)

for try_number in range(1,11):
  print(f"Try number {try_number}")
  try:
    print(f"Got temp of: {dhtDevice.temperature}")
    print(f"And hum of: {dhtDevice.humidity}")
  except RuntimeError as e:
    print(e)
    time.sleep(2)
  else:
    time.sleep(2)
  print("\n")

Debug info:

  • Libraries:

    Adafruit-Blinka==5.9.1
    -e 
    git://github.com/yeyeto2788/Adafruit_CircuitPython_DHT.git@85a8f329346c074f6a0be132077269e62a19b89e#egg=adafruit_c

    NOTE: the dht library is just a fork done today with no changes on it.

  • Python version (Python 3.8.5)

  • Board Orange Pi lite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant