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

Neuftech USB RFID Reader doesn't get recognized #1847

Closed
fab4x opened this issue Jun 5, 2022 · 5 comments · Fixed by #1791
Closed

Neuftech USB RFID Reader doesn't get recognized #1847

fab4x opened this issue Jun 5, 2022 · 5 comments · Fixed by #1791

Comments

@fab4x
Copy link

fab4x commented Jun 5, 2022

Bug

Neuftech USB RFID Reader doesn't get recognized with the installer script.
I've also added the fix that worked for me. I hope that's okay.

What I did

I've installed the latest RPi Buster Lite image and ran the installer script and at the end of the installation where I am able to choose one, the script ran into an error after I've picked the option Neuftech USB Reader.

The error output said that the python package evdev is missing and that the user pi doesn't exist.

Fix

To fix the problem I've manually created the user pi (sudo adduser pi) on my system and instantly disabled the login (sudo passwd -l pi) to avoid security problems (even though it's just the music box for my daughter). Afterwards I installed the python package evdev with the command pip install evdev and started the installation script again and it ran through without any problems.

Source of the problem

I've checked the source code in the installation script (buster-install-default.sh) and found the issue in line 1228 (sudo chown pi:www-data "${jukebox_dir}"/scripts/deviceName.txt) - wouldn't it make sense to use the variable $USER or ask for a User on the system which really exists? It may also help to add the installation command for python evdev.

@s-martin
Copy link
Collaborator

s-martin commented Jun 5, 2022

It's the missing evdev package. The underlying issue was fixed by #1791, but is not yet part of master.

At the moment Phoniebox requires the user pi.

@vitospinelli
Copy link

I manually installed evdev but it still doesn't work

@fab4x
Copy link
Author

fab4x commented Aug 16, 2022

Did you check if the user pi exists? If it does, could you paste the exact error message please?

@vitospinelli
Copy link

I just solved it.

I manually installed RC522 following exactly the instructions at the link below.

https://github.com/pimylifeup/MFRC522-python

Then I reinstalled phoniebox with the one line command and it started working.

The error I had was this:
phoniebox git clone -q git://github.com/ondtryaso/pi-rc522.git /tmp/pip-install-5yjpx8ai/pi-rc522 failed with error code 128 in None

So it looks like the installation process was failing to install pi-rc522. A manual install and then redoing the installation did the trick.

@s-martin
Copy link
Collaborator

Fixed by #1791, but not merged to master yet.

@s-martin s-martin linked a pull request Aug 20, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants