Nikolay-Kha / PyCNC

Python CNC machine controller for Raspberry Pi and other ARM Linux boards

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't run PyCNC - [Errno 2] No such file or directory: '/dev/i2c-1'

iSQL opened this issue · comments

commented

pi@raspberrypi:~/Downloads/pycnc $ sudo ./pycnc
Traceback (most recent call last):
File "./pycnc", line 3, in
import cnc.main
File "/home/pi/Downloads/pycnc/cnc/main.py", line 10, in
from cnc.gmachine import GMachine, GMachineException
File "/home/pi/Downloads/pycnc/cnc/gmachine.py", line 4, in
from cnc import hal
File "/home/pi/Downloads/pycnc/cnc/hal.py", line 101, in
from cnc.hal_raspberry.hal import *
File "/home/pi/Downloads/pycnc/cnc/hal_raspberry/hal.py", line 6, in
from cnc.sensors import thermistor
File "/home/pi/Downloads/pycnc/cnc/sensors/thermistor.py", line 34, in
import ads111x as adc
File "/home/pi/Downloads/pycnc/cnc/sensors/ads111x.py", line 35, in
i2c = __I2CDev()
File "/home/pi/Downloads/pycnc/cnc/sensors/ads111x.py", line 16, in init
self._dev = os.open("/dev/i2c-1", os.O_SYNC | os.O_RDWR)
OSError: [Errno 2] No such file or directory: '/dev/i2c-1'

This is what I get. Is my RPi device bad or did I messed up something?

Hello. Please enable I2C interface for your Raspberry Pi with 'raspi-config' util(https://www.raspberrypi.org/documentation/configuration/raspi-config.md)