szazo / DHT11_Python

Pure Python library for reading DHT11 sensor on Raspberry Pi
MIT License
296 stars 225 forks source link

Error in setup.py #15

Open DarrenTownsend opened 4 years ago

DarrenTownsend commented 4 years ago

Installing on Pi Zero V1.1

Setup.py returned error in line 15:

NameError: name 'setuptools' is not defined.

I think this is because you imported 'find_packages' as a separate module (using 'from setuptools import...') but in line 15 you try to call it with setuptools.find_packages(). I deleted 'setuptools.' from this line and it solved the error.

However, it failed later with a 'Permission denied' error. This was solved by running the install command as sudo.