adafruit / Adafruit_CircuitPython_DHT

CircuitPython support for DHT11 and DHT22 type temperature/humidity devices
MIT License
179 stars 62 forks source link

PiP3 Install fails: 'HTMLParser' object has no attribute 'unescape' #86

Closed new-gen23 closed 1 year ago

new-gen23 commented 1 year ago

I tried to install adafruit-circuitpython-dht via pip3, but it seems to import from an HTMLParser that has not the required function?

` Collecting adafruit-circuitpython-dht Using cached adafruit_circuitpython_dht-3.7.8-py3-none-any.whl (7.8 kB) Collecting Adafruit-Blinka Using cached Adafruit_Blinka-8.18.1-py3-none-any.whl (289 kB) Collecting Adafruit-PlatformDetect>=3.13.0 Using cached Adafruit_PlatformDetect-3.45.1-py3-none-any.whl (20 kB) Collecting Adafruit-PureIO>=1.1.7 Using cached Adafruit_PureIO-1.1.10.tar.gz (28 kB) Preparing metadata (setup.py) ... error error: subprocess-exited-with-error

python setup.py egg_info did not run successfully. exit code: 1

[13 lines of output] Traceback (most recent call last): File "", line 2, in File "", line 14, in File "/usr/lib/python3/dist-packages/setuptools/init.py", line 20, in from setuptools.dist import Distribution, Feature File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 35, in from setuptools.depends import Require File "/usr/lib/python3/dist-packages/setuptools/depends.py", line 7, in from .py33compat import Bytecode File "/usr/lib/python3/dist-packages/setuptools/py33compat.py", line 55, in unescape = getattr(html, 'unescape', html_parser.HTMLParser().unescape) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'HTMLParser' object has no attribute 'unescape' [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed `

Environment: Kali Linux on Pi Zero W

new-gen23 commented 1 year ago

ok, installed raspian and forced the install there. seemed to install. sadly, the example code just returns "A full buffer was not returned. Try again". I am beginning to think that I should throw away all dht22 and buy proper sensors.