-
Notifications
You must be signed in to change notification settings - Fork 16
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
failure to setup #1
Comments
Do you have python 3 installed? Try running:
to see if python 3 launches. If it doesn't, install python 3 with:
and install pip3:
Doug |
Also, after you get python3 and pip3 installed, use the second method of installing pi-sht1x:
Doug |
Hi Doug, |
I've made a fix and uploaded a new version to PyPI - 1.0.8. Try doing the install again using the same command, which will pull the latest version. Let me know if that clears up the error. |
The install worked this time thank you. from time import sleep DATA_PIN = 18 ## physical pin 12 with SHT1x(DATA_PIN, SCK_PIN, gpio_mode=GPIO.BCM) as sensor: ERROR MSG: |
Double-check your pin connections. The error indicates that its not communicating with the sensor properly. Are you using 3.3V or 5V to power the sensor? Could you also check the log file? Do this:
you should see a file called |
I just realized that in your initial post, you mentioned you're using the SHT71 sensor. I don't believe that sensor will work with this library. This library was specifically written to work with the SHT1x sensors (SHT10, SHT11, and SHT15). I'm not sure how compatible the SHT71 is to this series, I'd have to look at the data sheet. Most likely it isn't. |
Ah yes sorry, I didn't realise that. Thanks for pointing that out. I'll purchase a SHT1x sensor if this doesn't work out. May i also ask if my interpret is correct in that the BCM pin 18 is equal to the physical pin 12 etc.. Thanks again for your help. For the record this is the contents of the pi_sht1x.log [2015-02-17 19:42:08,612] sht1x:initialize_sensor:156 INFO Initializing sensor using bit mask: 00000000 |
I took a brief look at the data sheet and the sensors are very similar. I'm going to dig into this over the weekend and see what adjustments are necessary to add SHT7x support. I'll give you an update afterwards. |
I just got my SHT-75. I should be able to look into this some time this weekend. |
Closing this. If I get time to look into the SHT7x series I'll reopen this ticket. |
Hi,
I'm very new to all this so please forgive me.
I'm trying to use a SHT71 humidity sensor with a R.Pi 2 b
The R.Pi is new so may not have everything needed to support the setup.
I copied the pi-sht1x-1.0.6 to my R.Pi and now wish to install it.
Up until now when i'm installing things on the R.Pi i have done the following:
pi@raspberrypi~/pi-sht1x-1.0.6 $ sudo python setup.py install
Howerver when i do this i get:
Traceback (most recent call last):
File "setup.py", line 9, in
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
TypeError: 'encoding' is an invalid keyword argument for this function
Or if i try:
pi@raspberrypi~ $ pip3 install pi-sht1x even with sudo i get:
bash: pip3:command not found
i would greatly appreciate your help.
The text was updated successfully, but these errors were encountered: