MFRC522-python
MFRC522-python copied to clipboard
Error when trying to run read.py
File "Read.py", line 41, in
Please help me to solve this problem
look here i had the same issue and this helped me solve it btw look around before you open a question the link is the exact same problem you are facing click here
I tried it, but I still get the same problem. Sorry, but I also read the issue
On Thu, Jul 4, 2019 at 3:07 PM Freddy789 [email protected] wrote:
look here i had the same issue and this helped me solve it btw look around before you open a question lol the link is the exact same problem you are facing #69 https://github.com/mxgxw/MFRC522-python/issues/69
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mxgxw/MFRC522-python/issues/76?email_source=notifications&email_token=AJS6MZ3BLQ22NUECZ4V4S2DP5WVULA5CNFSM4H5B3EAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZGVLNA#issuecomment-508384692, or mute the thread https://github.com/notifications/unsubscribe-auth/AJS6MZ5JLBL4ODEUGHIGRHTP5WVULANCNFSM4H5B3EAA .
Reverting the SPI-Py to 8cce26b resolved my issue as suggested in the following link.
https://github.com/mxgxw/MFRC522-python/issues/69#issuecomment-466023799
Make sure to change directory to the cloned project directory before running the last line in the link above.
Hello @scimad and @lyocyhs, I've got the same problem. With some modifications on this library, I was able to run Read.py
correctly.
My changes are shared in this pull request.
@lucassarcanjo Thanks a lot for your coordintation in making this post worth usable and improving the flaws in the syntax. I have followed the new directories which you have mentioned in the above comments. I am getting the below error right now. I would be glad if you could assist me,
Welcome to the MFRC522 data read example
Press Ctrl-C to stop.
Traceback (most recent call last):
File "rfidreader.py", line 51, in
Thanks and Regards
Hello @priyesh1112 , I think I got what can be the reason of your issue. In @lucassarcanjo 's code, MFRC522.py, line 310, a variable called "backData" was misspelled as "ackdata", I send him a review for correcting his code, until it happens, you can change the line
print("Size: ".format(ackData[0]))
to
print("Size: ".format(backData[0]))
It should work.
@victormagalhaess thanks a lot for your feedback. It worked fine. Now I am facing some other issues which I am trying to rectify :)
/home/pi/MFRC522.py:133: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings.
GPIO.setup(self.NRSTPD, GPIO.OUT)
Welcome to the MFRC522 data read example
Press Ctrl-C to stop.
Traceback (most recent call last):
File "/home/pi/rfidreader.py", line 51, in
Hello @priyesh1112 , can you send me your code? I'll have an raspberry available tomorrow, so if you send me I can test and try to solve your issue with a practical approach (this way I can test if any other issues spots).
Thanks @victormagalhaess that is really kind of you. I am trying to solve it but if it does not happen, I will copy the code and send it to you so that you may verify. I have also consulted @lucassarcanjo but he has not responded yet. I will let you know. Thanks and Regards
@victormagalhaess could you share your email id so that I can send you my code? Though it is exactly the same as Lucas has posted. But, I am facing different error.