mgaggero / Adafruit_Python_HTU21D

Python Library for the Adafruit HTU21D-F Humidity/Temperature sensor breakout board
MIT License
11 stars 1 forks source link

IO Error found #2

Closed cw1812 closed 6 years ago

cw1812 commented 6 years ago

The error is as below:

Traceback (most recent call last): File "simpletest.py", line 46, in print 'Temp = {0:0.2f} *C'.format(sensor.read_temperature()) File "build/bdist.linux-armv6l/egg/Adafruit_HTU21D/HTU21D.py", line 78, in read_temperature File "build/bdist.linux-armv6l/egg/Adafruit_HTU21D/HTU21D.py", line 58, in read_raw_temp File "build/bdist.linux-armv6l/egg/Adafruit_GPIO/I2C.py", line 135, in readList File "build/bdist.linux-armv6l/egg/Adafruit_PureIO/smbus.py", line 201, in read_i2c_block_data IOError: [Errno 5] Input/output error

mgaggero commented 6 years ago

Duplicate of #1

mgaggero commented 6 years ago

Fixed in 43ae28adc789097d48f53162e0708be897aa6f18.

croya68 commented 5 years ago

I am getting an error when trying to run simpletest.py: Traceback (most recent call last): File "simpletest.py", line 51, in print ('Temp = {0:0.2f} *C'.format(sensor.read_temperature())) File "build/bdist.linux-armv6l/egg/Adafruit_HTU21D/HTU21D.py", line 179, in read_temperature File "build/bdist.linux-armv6l/egg/Adafruit_HTU21D/HTU21D.py", line 143, in read_raw_temp File "build/bdist.linux-armv6l/egg/Adafruit_HTU21D/HTU21D.py", line 89, in send_command AttributeError: 'int' object has no attribute 'to_bytes' Let me know if there is any additional information I can provide. Thank you.