I tried renaming the directories to old-? and re-installing and got exactly the same problem. The Pi I was using was my son’s so I don’t know if he installed Lite or full version of Raspbian. I tried it on my RPi Zero W and my RPi 4 and it worked perfectly. The interesting thing is that the problem file wasn’t installed on either of mine so I’ve swapped Pis and the problem has gone away. Many thanks for your help!
John
The lite version will only boot to a terminal window, there is no desktop GUI. If you run raspi-config and there is no option to boot to the desktop its the Lite version.
If you were at the desktop GUI, its the with desktop, or with desktop and recommended software.
Anyway, nice to hear you got it working.
1 Like
I decided to re-install the full os on my son’s pi then install the ltr559 library. I installed it from my projects test directory and got an error message so I renamed the directories as old-pimoroni and old-ltr559 then reran the commands from the home directory in case that was the problem. When I ran the test program I got the same error message:
Traceback (most recent call last):
File “ltr559_test.py”, line 5, in
ltr559 = LTR559()
File “/usr/local/lib/python3.7/dist-packages/ltr559/init.py”, line 212, in init
BitField(‘ALS’, 0x0F)
File “/usr/local/lib/python3.7/dist-packages/i2cdevice/init.py”, line 166, in init
self._i2c = smbus.SMBus(1)
FileNotFoundError: [Errno 2] No such file or directory
I seem to be fated with this Pi. Help!
Double check that i2c is enabled in Raspberry Pi Configuration, under Interfaces.
You can also run sudo i2cdetect -y 1
from terminal and see if the LTR599 is detected.
It should show up as 23.
That fixed it! Thanks yet again!
That’s one of those errors that can have you guessing the first time you see it. It’s not intuitive as to what it really means.