Library is not compatible with Python 3
See original GitHub issueThese errors occur:
Traceback (most recent call last):
File "example.py", line 4, in <module>
from ina219 import INA219
File "/home/pi/pi_ina219/ina219.py", line 7, in <module>
import Adafruit_GPIO.I2C as I2C
ImportError: No module named 'Adafruit_GPIO'
and:
File "example.py", line 14
print "Bus Voltage : %.3f V" % ina.voltage()
Issue Analytics
- State:
- Created 7 years ago
- Comments:15 (7 by maintainers)
Top Results From Across the Web
This is not compatible with python 3.9.2? · Issue #16 - GitHub
I downloaded the latest version since the version i had(3.7.3) did not work well when i ran poetry install. It threw this error...
Read more >The Python Standard Library — Python 3.11.1 documentation
The library contains built-in modules (written in C) that provide access to system functionality such as file I/O that would otherwise be inaccessible...
Read more >Python 2 modules with python 3 - Stack Overflow
I tried to use pip-install to just load it into the 3.5 environment but that fails ( it has the code "(34*3600L)" in...
Read more >Unable to install python 3.7 library - Super User
Please try installing directly from cmd with this command: pip install pandas. it will install the latest and compatible ...
Read more >Cheat Sheet: Writing Python 2-3 compatible code
urllib module urllib is the hardest module to use from Python 2/3 compatible code. You might want to switch to Requests (http://python-requests.org) instead....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
On a new installation of Raspbian I did:
So from this is does look like your system is to blame. So reinstalling Rasbian will work.
Chris
On Sun, Mar 4, 2018 at 12:06 PM, GawiQ notifications@github.com wrote:
To install dependencies for Python 3 on Raspberry Pi, this need to be executed:
sudo python3 -m pip install git+git://github.com/chrisb2/pi_ina219.git
this fixes the import error above.