ondryaso / pi-rc522

Raspberry Pi Python library for SPI RFID RC522 module
MIT License
411 stars 150 forks source link

Errno 2 directory does not exist #63

Open bustercody3 opened 4 years ago

bustercody3 commented 4 years ago

I am using a raspberry pi 4 model b running the latest version of raspbian (2020-02-13). I followed this tutorial on how to use the rc522 RFID scanner with a raspberry pi: https://pimylifeup.com/raspberry-pi-rfid-rc522/ / https://www.youtube.com/watch?v=evRuZRxvPFI&t=172s .When I got to the point where I needed to run Write.py it gave me the error: python3: can’t open file ‘Write.py’ : [Errno 2] No such file or directory

Thank you for your time, and I hope you can help.

mattelacchiato commented 4 years ago

Are you in the same directory as Write.py? Do you have in mind that most Linux file system are case sensitive? (Eg. Write.py is not write.py)

bustercody3 notifications@github.com schrieb am Mi., 19. Feb. 2020, 23:52:

I am using a raspberry pi 4 model b running the latest version of raspbian (2020-02-13). I followed this tutorial on how to use the rc522 RFID scanner with a raspberry pi: https://pimylifeup.com/raspberry-pi-rfid-rc522/ / https://www.youtube.com/watch?v=evRuZRxvPFI&t=172s .When I got to the point where I needed to run Write.py it gave me the error: python3: can’t open file ‘Write.py’ : [Errno 2] No such file or directory

Thank you for your time, and I hope you can help.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ondryaso/pi-rc522/issues/63?email_source=notifications&email_token=AAAZYYPJVCKBTTHCRNUNNP3RDWZ4HA5CNFSM4KYDHQ72YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IOZOXKQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAZYYPAHUWK6CNYM4COWGTRDWZ4HANCNFSM4KYDHQ7Q .

bustercody3 commented 4 years ago

I’m a beginner at this so I’m not entirely sure what I am doing, but here is a photo of what I have. image

mattelacchiato commented 4 years ago

The file in your folder is named "Write.py.save" .

You should clone the complete repository first and then execute the file from within the cloned folder. If you don't know what cloning means, you can have a look here: https://help.github.com/en/github/creating-cloning-and-archiving-repositories/cloning-a-repository

bustercody3 notifications@github.com schrieb am Do., 20. Feb. 2020, 18:49:

I’m a beginner at this so I’m not entirely sure what I am doing, but here is a photo of what I have. [image: image] https://user-images.githubusercontent.com/61254569/74963103-27470680-53df-11ea-8b26-2e50dd63400f.png

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ondryaso/pi-rc522/issues/63?email_source=notifications&email_token=AAAZYYPQ453FE2ROXNW256TRD27B5A5CNFSM4KYDHQ72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMPNDKY#issuecomment-589222315, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAZYYNBYMP5BCVUHR4DLMTRD27B5ANCNFSM4KYDHQ7Q .

bustercody3 commented 4 years ago

Thank you for the help, I now got past that step but now it will not recognize when I place an RFID tag on it. The tags came with the scanner. All my wires are set up correctly and are soldered properly. When I place the tag on it it will not write “Written” in the terminal. Any solutions?

bustercody3 commented 4 years ago

I have now fixed it.

EnggUsama commented 3 years ago

How you fixed it.?

bustercody3 commented 3 years ago

I fixed it by restarting the tutorial I was following from scratch, and it worked just fine the second time.

Chaoui-lpb commented 2 years ago

Don't forget to enable SPI interface with sudo raspi-config