I am working on a very simple project where I am using a magnetic card reader to scan ID's off of the card and checking it to see if it is allowed or not. In the past whenever I needed to get information from USB devices in linux they always showed up as ttyUSB* and I could connect to them serially to read the information that is being produced. However this ID reader isn't showing up as that.
so the device is connected moreover when I swipe a card while a terminal is open, it populates the card information to stdout and prints to the terminal.
I made a simple python script to read the info and sort through all the garbage and find only the ID number.
obviously this code is rough and probably does work but I haven't been able to test it bc I always get this message:
I'm new to python and fairly new to a ras pi. I am using a ras pi 3. Any help will be greatly appreciated! thanks!