python error Traceback (most recent call last):

somya's picture

Offline

Joined: Sep 18, 2018

Replies: 4
python error Traceback (most recent call last):
July 9, 2019 - 1:39pm

Hi, while running the python code in my raspberry pi3, i got this error 

Traceback (most recent call last):
  File "nrfsendrecv.py", line 11, in <module>
    radio.begin(0, 17)
  File "/home/pi/lib_nrf24_master/lib_nrf24.py", line 373, in begin
    self.spidev.open(0, csn_pin)
FileNotFoundError: [Errno 2] No such file or directory

please help me..i have installed every necessary library but this seems not working. 

 

Abhiemanyu Pandit's picture

Offline

Joined: Jan 21, 2019

Replies: 37
python error Traceback (most recent call last):
July 9, 2019 - 1:43pm

okay so this is clearly a problem of enabling SPI from Raspberry configurations. I would suggest you  go to Raspberry Configuration page and enable the SPI first then you wont see this error anymore. also when you enable or make the changes on raspi config then your raspberry pi will reset so dont panic and wait for the reset. 

from terminal use command "sudo raspi-config" to enter into configuration page and enable SPI yes. reply if this help