Uanble to run yetiborg2

I installed Yetiborg and now when trying to run it I get the following error:

pi@raspberrypi:~/yetiborgv2 $ ./yeti2Web.py
Loading ZeroBorg on bus 1, address 40
Traceback (most recent call last):
File "./yeti2Web.py", line 39, in
ZB.Init()
File "/home/pi/yetiborgv2/ZeroBorg.py", line 304, in Init
self.i2cRead = io.open("/dev/i2c-" + str(self.busNumber), "rb", buffering = 0)
IOError: [Errno 2] No such file or directory: '/dev/i2c-1'

Any ideas on how to fix this?

piborg's picture

The most likely issue is that the I2C is not enabled, you can use raspi-config to enable it.

The exact options may be slightly different, but this is the sequence on the most recent version:

  1. Run the command sudo raspi-config
  2. Move down to 5 Interfacing Options and press ENTER
  3. Move down to P5 I2C and press ENTER
  4. Make sure Yes is highlighted and press ENTER
  5. When the message pops up saying it is enabled press ENTER
  6. Move right to select Finish and press ENTER
  7. If it asks to restart select Yes, otherwise run sudo reboot to restart the Pi yourself

If everything is fine the script should now work. If not there might be another problem preventing the script running.

Subscribe to Comments for "Uanble to run yetiborg2"