pimoroni / automation-hat

Python library and examples for the Pimoroni Automation HAT, pHAT and HAT Mini
https://shop.pimoroni.com/products/automation-hat
MIT License
121 stars 42 forks source link

doesn't work on python3.6 #14

Closed harper357 closed 6 years ago

harper357 commented 6 years ago

I've tried both manually compiled python and linuxbrewed python and neither one seems to work (meaing the import doesn't work) after I install with pip3 install automationhat. I think the problem comes from the back that smbus isn't installed and I can't find a way to install that.

Gadgetoid commented 6 years ago

Presently we only support Raspbian Stretch and Raspbian Jessie and their associated Python versions with any sort of regularity- this is because there's simply not enough time to go far beyond this.

It sounds like you need to find a version of SMBus for Python 3.6, or compile your own.

gvier commented 5 years ago

I had the same problem trying to use automationhat with python 3.6 on piCore 9.0.3. I solved it by using the smbus2 python library and doing a few code changes in both automationhat and sn3218 libraries:

Hope this helps.