« first day (10 days earlier)      last day (17 days later) » 

9:03 AM
hey have no experience in rpi python,
also because i copied what you wrote and put into the terminal obviously changing the nfc ro rfid module, for some reason it seams not to work even with python
pi@raspberrypi:~ $ python3
Python 3.7.3 (default, Dec 20 2019, 18:57:59)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from mfrc522 import SimpleMFRC522
>>> reader = SimpleMFRC522()
/usr/local/lib/python3.7/dist-packages/mfrc522/MFRC522.py:151: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings.
GPIO.setup(pin_rst, GPIO.OUT)
>>> reader.write ('parcel1')
(1223443245, 'parcel1')
>>> reader.read()
python 3 i think thats correct
pi@raspberrypi:~ $ python
Python 2.7.16 (default, Oct 10 2019, 22:02:15)
[GCC 8.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from mfrc522 import SimpleMFRC522
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named mfrc522
>>> RFIDModule = SimpleMFRC522()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'SimpleMFRC522' is not defined
>>> XZ
[3]+ Stopped python
python ^ not correct not sure where i went wrong
 
 
2 hours later…
10:50 AM
@627117717.pr I have no experience in python 2. So I am not able to debug. I would suggest you to use python 3 only, like this: (1) Use a new SD card, (2) pip 3 mfrc522, then play with python 3 only. Do not install any python 2 software. And his: (1) Use a new SD card, suing full version , NOT NOOBS, (2) pip 3 mfrc522, then play with python 3 only. Do not install any python 2 software, or rpi buster will be confused.
You have not told everyboy if you are using pi3, 3+, or 3B+, and wheezy or jessie. Use "$ date" and "$ unname - a" so everybody notes your configuration, without guessing. Also compile your answer in steps, so everybody can follow your steps.
 
11:04 AM
@627117717.pr If you insist to use python 2, you need to set the "path" variable to your python 2 software directories. See Ref 42 for more details.
 
11:53 AM
pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.19.97-v7+ #1294 SMP Thu Jan 30 13:15:58 GMT 2020 armv7l GNU/Linux
hi mate this is what came up
 
12:31 PM
@627117717.pr It would be nice if you can provide this info by editing your question, or in your own answer. So you are still using NOOBS. If you browse around, you might find guys recommending NOT to use NOOBS, unless you wish to try other linux versions, say Ubuntu 19. But are you? I am just using uname as an example. Actually I am using a couple more grep commands so that other friends can help.
My other commands include checking chip version 4B 4GB v1.2, free memory, buster release 2020feb13. If you give me the rpi 4.19, I need to cross check what release it it, and sometimes that matters, and wasted my hours to found out finally.
 

« first day (10 days earlier)      last day (17 days later) »