Skip to content

PulseIO NotImplemented Error raised #54

Closed
@yeyeto2788

Description

@yeyeto2788

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions