coldnut
Posts: 8
Joined: Sun Mar 31, 2013 6:01 pm

Issues with the AirPi Code

Sun Sep 29, 2013 6:26 am

I am trying to utilize the AirPi code with some of the sensors that it is designed for, but I continue to get error messages that I can't resolve. I have dug into the code, but I'm not seeing where the issue is. Here is the message that is returned when I run the program.

Code: Select all

 jon@raspberrypi ~/AirPi $  sudo python Upload.py
Traceback (most recent call last):
  File "Upload.py", line 15, in <module>
    from interfaces.PiPlate import Adafruit_CharLCDPlate
  File "/home/jon/AirPi/interfaces/PiPlate/Adafruit_CharLCDPlate.py", line 10, in <module>
    from Adafruit_I2C import Adafruit_I2C
  File "/home/jon/AirPi/interfaces/PiPlate/Adafruit_I2C.py", line 9, in <module>
    class Adafruit_I2C :
  File "/home/jon/AirPi/interfaces/PiPlate/Adafruit_I2C.py", line 23, in Adafruit_I2C
    def __init__(self, address, bus=smbus.SMBus(1), debug=False):
IOError: [Errno 2] No such file or directory
I've adjusted the AirPi.cfg file appropriately for the sensors I am using, and I have also verified that the classes exists in the directories that they should exist in. Likewise, I have installed all of the dependencies as specified by the install guide. Could someone point me in the right direction? :?

coldnut
Posts: 8
Joined: Sun Mar 31, 2013 6:01 pm

Re: Issues with the AirPi Code

Sat Oct 05, 2013 11:04 pm

I have verified multiple times that the file does exist with the package specified by the import... :?

Return to “Python”