Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Installing RFID fails in Python script #842

Closed
tommy-rk opened this issue Mar 8, 2020 · 3 comments · Fixed by #843
Closed

🐛 Installing RFID fails in Python script #842

tommy-rk opened this issue Mar 8, 2020 · 3 comments · Fixed by #843
Assignees
Labels
Milestone

Comments

@tommy-rk
Copy link

tommy-rk commented Mar 8, 2020

Bug

What I did

Re-Installed RPi. After the installer finishes it asks for an RFID device. I have answered with Y.
The following error appears:

INSTALLATION FINISHED

#####################################################

If you are using an USB RFID reader, connect it to your RPi.
(In case your RFID reader required soldering, consult the manual.)
Have you connected your USB Reader? [Y/n]
Traceback (most recent call last):
File "RegisterDevice.py", line 4, in
from Reader import get_devices
File "/home/pi/RPi-Jukebox-RFID/scripts/Reader.py", line 23, in
from evdev import InputDevice, categorize, ecodes, list_devices
ModuleNotFoundError: No module named 'evdev'
chown: cannot access '/home/pi/RPi-Jukebox-RFID/scripts/deviceName.txt': No such file or directory
chmod: cannot access '/home/pi/RPi-Jukebox-RFID/scripts/deviceName.txt': No such file or directory

DONE. Let the sounds begin.
Find more information and documentation on the github account:
https://github.com/MiczFlor/RPi-Jukebox-RFID/wiki/
Reboot is needed to activate all settings
Would you like to reboot now? [Y/n]

Seen already here:

I have seen this error documented already here:
#231

Software

Base image and version

PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian

Branch / Release

Refresh index: 100% (309/309), done.
On branch master
Your branch is up to date with 'origin/master'.

Installscript

cd; rm buster-install-*; wget https://raw.githubusercontent.com/MiczFlor/RPi-Jukebox-RFID/master/scripts/installscripts/buster-install-default.sh; chmod +x buster-install-default.sh; ./buster-install-default.sh

Refresh index: 100% (309/309), done.
On branch master
Your branch is up to date with 'origin/master'.

Hardware

RaspberryPi version

Raspberry Pi 3 Model B Plus Rev 1.3

@tommy-rk tommy-rk added the bug label Mar 8, 2020
@s-martin
Copy link
Collaborator

s-martin commented Mar 8, 2020

There’s an issue in the installer script.

Please try

cd /home/pi/RPi-Jukebox-RFID/
sudo python3 -m pip install -r requirements.txt

and afterwards

cd /home/pi/RPi-Jukebox-RFID/scripts/
python3 RegisterDevice.py

See also https://github.com/MiczFlor/RPi-Jukebox-RFID/wiki/CONFIGURE-stretch#identify-and-configure-your-rfid-reader and https://github.com/MiczFlor/RPi-Jukebox-RFID/wiki/CONFIGURE-stretch#register-your-usb-device-for-the-phoniebox

@tommy-rk
Copy link
Author

tommy-rk commented Mar 8, 2020

This did the trick! Thanks a lot!
This should make it into the Wiki or get corrected. I should read the wiki better, sorry.

@s-martin
Copy link
Collaborator

s-martin commented Mar 8, 2020

This did the trick! Thanks a lot!
This should make it into the Wiki or get corrected. Right now it is buried in the issues section.

Good to hear. It’s a bug introduced in the installer script. Should be fixed with PR #843

@s-martin s-martin linked a pull request Mar 8, 2020 that will close this issue
@ZyanKLee ZyanKLee added this to the 2.0 milestone Mar 8, 2020
@s-martin s-martin closed this as completed Mar 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants