Skip to content
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

Runtime error with tsl2561 library #10

Closed
jhalpin100 opened this issue Jun 29, 2017 · 1 comment
Closed

Runtime error with tsl2561 library #10

jhalpin100 opened this issue Jun 29, 2017 · 1 comment
Assignees
Labels

Comments

@jhalpin100
Copy link

Hi,

I just installed the tsl2561 library. The install appeared to be fine, but when I triy to run the following script:

#!/usr/bin/python
from tsl2561 import TSL2561
sensor = TSL2561()

I get

rpiw$ ./lux.py
Traceback (most recent call last):
File "./lux.py", line 5, in
sensor = TSL2561()
File "build/bdist.linux-armv6l/egg/tsl2561/tsl2561.py", line 65, in init
File "build/bdist.linux-armv6l/egg/tsl2561/tsl2561.py", line 79, in _begin
File "build/bdist.linux-armv6l/egg/tsl2561/tsl2561.py", line 129, in set_integration_time
File "build/bdist.linux-armv6l/egg/tsl2561/tsl2561.py", line 88, in enable
File "build/bdist.linux-armv6l/egg/Adafruit_GPIO/I2C.py", line 114, in write8
File "build/bdist.linux-armv6l/egg/Adafruit_PureIO/smbus.py", line 236, in write_byte_data
IOError: [Errno 121] Remote I/O error

Any chance you see what's wrong? I'm running this on a raspberry pi with

rpiw$ uname -a
Linux rpiw 4.9.24+ #993 Wed Apr 26 17:56:54 BST 2017 armv6l GNU/Linux

Apologies if this is the wrong place to bring this up, but I couldn't find a forum.

@sim0nx sim0nx self-assigned this Jul 16, 2017
@sim0nx
Copy link
Owner

sim0nx commented Jul 16, 2017

Hi,

Opening an issue on github is totally fine. There is no forum indeed.

The error you are experiencing does not come from the TSL library but from smbus.
My guess would be that there is an issue with the wiring or other hardware related issue.
The smbus library seems to be unable to talk to the device.

Sorry I couldn't help more.

@sim0nx sim0nx closed this as completed Jul 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants