-
Notifications
You must be signed in to change notification settings - Fork 984
Python 3 support #13
Comments
+1 |
Python3 support would be greatly appreciated. |
This module is working with python3 on the beaglebone black running Arch Linux. Tested on DHT 11. |
I also tested it with a Pi an Python 3. There were no problems. You only have to include the lib and start with work |
@M3taKn1ght Could you explain what you mean by "include the lib and start with work"? I am getting the following error on python3 after running
|
Try installing sudo apt-get install python-dev |
That did it. I had |
For those who need support for python3, you can find it in the following repo: |
@tdicola is spending this week and next doing a major overhaul of all our python libs to do: py3 support, pep8, and pypification. its...exciting and fun :) will close this issue once thats compete. |
<3 |
yep both python <3 and <2 will be supported ;) |
Haha |
Hi there, I just tested the lib with Python3. Working like a charm! Should we update the README and close this issue ? |
Yep this one is all ready for Python 2 and 3 now. Grab the latest code and it should install with either 2.7 or 3.3/3.4+. |
Great. Is there a way you can also remove the necessity for using sudo? |
i want to install on python3 with sudo pip3 install adafruit_python_dht and got "ImportError: No module named 'platform_detect'" Another try with sudo pip install adafruit_python_dht works, but module is only available in python2.7 I'm totaly new to python.. what i'm doing wrong? |
You need to install from source like the guide mentions: https://learn.adafruit.com/dht-humidity-sensing-on-raspberry-pi-with-gdocs-logging/software-install-updated The tricky thing about pip and python's package index is that it doesn't handle well a case where you have one platform (Linux) but different hardware-specific binaries. In particular the library needs to compile special code for the Beaglebone Black vs. Raspberry Pi to do fast GPIO access. Unfortunately folks have put the library on pip and it's really unknown what binary might be there--Beaglebone Black vs. Raspberry Pi vs. something else. Stick to the setup.py install and it will compile and install it correctly for your platform. |
I got trapped with pip/pip3 and python/python3.
|
Is Python 3 support planned or already on its way?
The text was updated successfully, but these errors were encountered: