spi.open(0,0) code example Example: spi.open(0,1) FileNotFoundError: [Errno 2] No such file or directory Have you enabled SPI in sudo raspi-config?