-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No module named Adafruit_BMP #4
Comments
Sorry the codes are all for Python 2, not Python 3 temporarily. It is possible to run the code in Python 3, for more information, you can it check out in Python.org but it might be a lot of work. |
I have the same problem, with example file simpletest.py works but when i run my program with sockets the error is this: Traceback (most recent call last): |
Try: sudo apt-get install python-smbus i2c-tools Back then I didn't know there are separate install commands for Py2 and Py3. |
Hi,
Thanks for contacting us.Your question, I have asked our engineers help , if they give any results, I will inform you immediately,
if there are other questions, please contact us anytime, we will try our best to solve it for you.
Best Regards
Jake
[email protected]
From: ash73
Date: 2018-07-31 10:43
To: sunfounder/SunFounder_SensorKit_for_RPi2
CC: SunFounder; Comment
Subject: Re: [sunfounder/SunFounder_SensorKit_for_RPi2] No module named Adafruit_BMP (#4)
Try:
sudo apt-get install python-smbus i2c-tools
sudo apt-get install build-essential python-dev python-smbus
cd ~
git clone https://github.com/sunfounder/Adafruit_Python_BMP.git
cd Adafruit_Python_BMP
python3 setup.py install
cd BMP180/SunFounder_SensorKit_for_RPi2/Python/
python3 31_barometer.py
Back then I didn't know there are separate install commands for Py2 and Py3.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hi dear
Yes, Python 3 needs to re-execute CD ~ CD Adafruit_Python_BMP Python 3 setup.py install before CD BMP180/SunFounder_SensorKit_for_RPi2/Python/
31 _barometer python3. Py
Best Regards
Jake
[email protected]
From: ash73
Date: 2018-07-31 10:43
To: sunfounder/SunFounder_SensorKit_for_RPi2
CC: SunFounder; Comment
Subject: Re: [sunfounder/SunFounder_SensorKit_for_RPi2] No module named Adafruit_BMP (#4)
Try:
sudo apt-get install python-smbus i2c-tools
sudo apt-get install build-essential python-dev python-smbus
cd ~
git clone https://github.com/sunfounder/Adafruit_Python_BMP.git
cd Adafruit_Python_BMP
python3 setup.py install
cd BMP180/SunFounder_SensorKit_for_RPi2/Python/
python3 31_barometer.py
Back then I didn't know there are separate install commands for Py2 and Py3.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hi smalhao
Thanks for contacting us.
Python 3 needs to re-execute CD ~ CD Adafruit_Python_BMP Python 3 setup.py install before CD BMP180/SunFounder_SensorKit_for_RPi2/Python/
31 _barometer python3. Py
Best Regards
Jake
[email protected]
From: smalhao
Date: 2018-07-31 05:51
To: sunfounder/SunFounder_SensorKit_for_RPi2
CC: SunFounder; Comment
Subject: Re: [sunfounder/SunFounder_SensorKit_for_RPi2] No module named Adafruit_BMP (#4)
I have the same problem, with example file simpletest.py works but when i run my program with sockets the error is this:
Traceback (most recent call last):
File "sensorServer.py", line 2, in
import Adafruit_BMP.BMP085 as BMP085
ImportError: No module named 'Adafruit_BMP'
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hi Jake
Can I send my code to see if it can tell me how to pass the temperature value of the BMP180 sensor from a raspberry pi to another raspberry pi through the Ethernet network through communication with the socket library?
Best regards,
Sérgio Malhão
De: SunFounder <[email protected]>
Enviada: 2 de agosto de 2018 13:45
Para: sunfounder/SunFounder_SensorKit_for_RPi2 <[email protected]>
Cc: Sérgio Miguel Nunes Malhão <[email protected]>; Comment <[email protected]>
Assunto: Re: [sunfounder/SunFounder_SensorKit_for_RPi2] No module named Adafruit_BMP (#4)
Hi smalhao
Thanks for contacting us.
Python 3 needs to re-execute CD ~ CD Adafruit_Python_BMP Python 3 setup.py install before CD BMP180/SunFounder_SensorKit_for_RPi2/Python/
31 _barometer python3. Py
Best Regards
Jake
[email protected]
From: smalhao
Date: 2018-07-31 05:51
To: sunfounder/SunFounder_SensorKit_for_RPi2
CC: SunFounder; Comment
Subject: Re: [sunfounder/SunFounder_SensorKit_for_RPi2] No module named Adafruit_BMP (#4)
I have the same problem, with example file simpletest.py works but when i run my program with sockets the error is this:
Traceback (most recent call last):
File "sensorServer.py", line 2, in
import Adafruit_BMP.BMP085 as BMP085
ImportError: No module named 'Adafruit_BMP'
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#4 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/Ac0U81OMSi-aDofMx5Nx0_aarlkbyFduks5uMvQ8gaJpZM4Ly0KM>.
|
Hi, I'm using a BMP180 sensor with a Raspberry Pi3 and the sample python program works ok in Python 2, but I get this error in Python 3:
import Adafruit_BMP.BMP085 as BMP085
ImportError: No module named 'Adafruit_BMP'
I'm new this; is it possible to get it working in Python 3? TIA
The text was updated successfully, but these errors were encountered: