This post has been deleted and is no longer viewable
I’m trying to use a mfrc522 mifare reader on a Rpi 3b as per tutorial here and have downloaded the mfrc522 library and installed python3-dev and spidev.
When I try to import the mfrc522 library in a simple python script, the interpreter can’t find the “machine” module used in the mfrc522.py library.
import RPi.GPIO as GPIO from mfrc522 import SimpleMFRC522 reader = SimpleMFRC522() try: id, text = reader.read() print(id) print(text) finally: GPIO.cleanup()
Traceback (most recent call last): File "read_tag.py", line 4, in <module> from mfrc522 import SimpleMFRC522 File "/home/pi/python/raspberrypi_mfrc522/mfrc522.py", line 1, in <module> from machine import Pin, SPI ModuleNotFoundError: No module named 'machine'
I can’t find what library package this module should exist in.. Can anyone help me try to figure out what libraries I need to (re)install to get this working??
Thanks in advance!