MiczFlor / RPi-Jukebox-RFID

A Raspberry Pi jukebox, playing local music, podcasts, web radio and streams triggered by RFID cards, web app or home automation. All plug and play via USB. GPIO scripts available.
http://phoniebox.de
MIT License
1.38k stars 397 forks source link

Test and improve latest install script for Buster #721

Closed MiczFlor closed 4 years ago

MiczFlor commented 4 years ago

Hi everybody, Please use the one line install script from the below page that says "For latest updates, try the version in the develop branch": https://github.com/MiczFlor/RPi-Jukebox-RFID/wiki/INSTALL-stretch#raspbian-buster

Please post your results and bug fixes and feedback in this thread. I want to take the discussion from these posts to this new thread to make it easier to manage change:

splitti commented 4 years ago

I've used today the normal installer. After the installation, i made these steps: sudo apt-get install mopidy=2.3.1-1 sudo python2.7 -m pip install Mopidy==2.3.* pip install 'tornado==5.0'

After that step, i used the develop OneLineInstaller. Everything works fine, but i already made the steps manual before!!! Everything works fine, excluding Iris...

I will try a brand new installation in the next days! But a problem is, the RegisterDevice.py is not the python3 version, it is the old version of the Master repository in python2 Style.

patrickweigelt commented 4 years ago

Hi @splitti You are right. The line python3 RegisterDevice.py should be python2 RegisterDevice.py like in the install script on the master branch. I must have overlooked that when solving the conflicts between my suggestions and the install script on the develop branch.

Actually also IRIS should work. It does on my boxes. Unfortunately I didn't have the time to run the script again today. I hope I will manage to try a new installation from scratch tomorrow evening

patrickweigelt commented 4 years ago

I created a pull request for what I mentioned above. However I was wondering if we would maybe need a second version or another branch for the buster installer script. One that makes the old mopidy 2.3.1-1 with IRIS run and uses all files as they are on the master branch at the moment and one that prepares for the use of mopidy 3 once all libraries are migrated (including IRIS). I am suggesting this because I have the feeling that I changed back things that others prepared for being able to use mopidy 3 in the future.

splitti commented 4 years ago

Wait, it must be tested with a fresh Installation. I will make an Installation tomorrow... Maybe the RegisterDevice.py was drin the Master repo. I am not Sure, because in the dev Environment it looks fine.

beng81 commented 4 years ago

In the last step I get the following error:

Have you connected your USB Reader? [Y/n] Y File "RegisterDevice.py", line 9 print "Choose the reader from list" ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Choose the reader from list")? 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.

splitti commented 4 years ago

@MiczFlor why is the nee RegisterDevice.py not in the dev repo? It is python2 Script, Not the nee one. You could Change to python2 in the Installer or Change the File to the new one.

splitti commented 4 years ago

There are Phyton Pip Errors before the RegisterReader. I tried also also git clone --branch develop in the Script. In this Case, the Script took the python3 Version. But there are also errors. It tried the python2 Version, also errors because of missing Python endev. I am really confused of that. Spotify isn't working for me with a fresh Installation, i tried the Develop Installer with cloning master and another time with Develop Branch, both time a fresh installed SD Card. I have to Invest time in the Installer and of course, Python...

https://github.com/MiczFlor/RPi-Jukebox-RFID/blob/4a7800e9d29bddd95974e1641b082fdd917c534a/scripts/installscripts/buster-install-default.sh#L517-L524

Hier scheint der Fehler zu liegen. Er meckert mir auch immer evdev an! Err3

MiczFlor commented 4 years ago

Hi @splitti @patrickweigelt @beng81 I just merged the pull request for register device on python2 with develop. Thanks for the input. I feel motivated and a bit pushed :) in a good way :)

splitti commented 4 years ago

That is not the solution, the problem is, the mopidy Installation does not work. There are dependencies in the setup.py for the following pip Installations. And so on, the RegisterDevice does not work. Python3 for Register Device is correct.

I will send you some new code, maybe this fixes all problems...

splitti commented 4 years ago

So, there are different files to be fixed to python3-compatibility. RegisterDevice is working for me, the setup.py need to be executed be python2. The RFid Service needs python3 compatibility. The service itself need a refresh to python3. I think there is a lot of work because of python3! These steps could work, please add the last Requests to the develop branch! Please notice, that i clone the develop branch in the installer this time!

726

725

724

723

MiczFlor commented 4 years ago

Hi @splitti thanks for your input (and, obviously, your great blog posts a few months back :) I merged all to masters. There were a few conflicts to resolve. I haven't tested it yet, but I believe it should work as you intended. I got the cloning in the install script. Not sure if this is the best way or if we should use the develop install to install the master code base. What is your intention to switch to develop?

splitti commented 4 years ago

This is Just dir loading the Files python3 ready. It is more a package, but i edited the Files in the Browser, so there are different Pull requests. The File should bei updated finally together to master Branch, and the Clone should bei changed to master also for the master Branch.

patrickweigelt commented 4 years ago

Hi @splitti Thanks a lot for your effort. I think this is bringing it much forward. My take on it or how I understood @MiczFlor was to first make the old installer work with the old py files to have a working version including spotify and IRIS and to be able to push it to the master branch as soon as possible and then work on the updates of the python scripts and do some testing on the develop branch. I thought I had a working version including IRIS (is running on my two boxes now) but I didn't manage to try another fresh install so far to confirm the installer was working properly. Sorry for that. The way we're approaching it now is nice because it moves things forward much more quickly. I just fear there is not much I can contribute at this stage any more as both Raspbian and python are not really my expertise. Is there something I should test. Now that the develop install script also clones the develop repository there is probably a lot new stuff. Is is all working? Is IRIS running? Cheers

splitti commented 4 years ago

Hmm, for that Problem, i Just can make a wget of the 3 files and Take the master Branch. You are right, maybe we get other Code making Problems... I have no Idea to optimize my Dev Environment this time. Please wait up to sunday, i have a Lot of Work this Weekend...

splitti commented 4 years ago

@MiczFlor could you apply the new pull request, i make a fresh installation to test it...

sglock commented 4 years ago

Hi, thanks for the work you put into the project. Can't get the RFID Reader to register. Tried both one line installers but every time i try to run RegisterDevice.py same error.

File "/home/pi/RPi-Jukebox-RFID/scripts/RegisterDevice.py", line 9 print "Choose the reader from list" ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Choose the reader from list")?

Tried to clean up the code but no luck. Maybe you have a tip.

splitti commented 4 years ago

@sglock In which time did you Install? And which Branch, Master or Develop

sglock commented 4 years ago

@splitti installed about 2 hours ago. First I tried the develop and then the master branch. Have to admit I didn't set up from scratch. Used my already installed system.

RealTatron commented 4 years ago

Moin, I installed a fresh 2019-09-26-raspbian-buster-lite image on my raspberry pi 4 today, 1 hour ago. After updating with

sudo apt update
sudo apt full-upgrade
sudo reboot

I started the Phoniebox master install (no Spotify selected) with the following result:

Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:2 http://archive.raspberrypi.org/debian buster InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libspotify-dev
./buster-install-default.sh: line 494: git: command not found
./buster-install-default.sh: line 497: cd: RPi-Jukebox-RFID: No such file or directory
sudo: pip: command not found
sudo: pip: command not found
sudo: pip: command not found
sudo: pip: command not found
sudo: pip: command not found
sudo: pip: command not found
sudo: pip: command not found
cp: cannot stat '/home/pi/RPi-Jukebox-RFID/misc/sampleconfigs/smb.conf.buster-default.sample': No such file or directory
chown: cannot access '/etc/samba/smb.conf': No such file or directory
chmod: cannot access '/etc/samba/smb.conf': No such file or directory
sed: can't read /etc/samba/smb.conf: No such file or directory
sudo: smbpasswd: command not found
cp: cannot stat '/home/pi/RPi-Jukebox-RFID/misc/sampleconfigs/lighttpd.conf.buster-default.sample': No such file or directory
chown: cannot access '/etc/lighttpd/lighttpd.conf': No such file or directory
chmod: cannot access '/etc/lighttpd/lighttpd.conf': No such file or directory
cp: cannot stat '/home/pi/RPi-Jukebox-RFID/misc/sampleconfigs/15-fastcgi-php.conf.buster-default.sample': No such file or directory
chown: cannot access '/etc/lighttpd/conf-available/15-fastcgi-php.conf': No such file or directory
chmod: cannot access '/etc/lighttpd/conf-available/15-fastcgi-php.conf': No such file or directory
cp: cannot stat '/home/pi/RPi-Jukebox-RFID/misc/sampleconfigs/php.ini.buster-default.sample': No such file or directory
chown: cannot access '/etc/php/7.3/cgi/php.ini': No such file or directory
chmod: cannot access '/etc/php/7.3/cgi/php.ini': No such file or directory
cp: cannot stat '/home/pi/RPi-Jukebox-RFID/misc/sampleconfigs/sudoers.buster-default.sample': No such file or directory
cp: cannot stat '/home/pi/RPi-Jukebox-RFID/settings/rfid_trigger_play.conf.sample': No such file or directory
./buster-install-default.sh: line 555: /home/pi/RPi-Jukebox-RFID/settings/Audio_iFace_Name: No such file or directory
./buster-install-default.sh: line 556: /home/pi/RPi-Jukebox-RFID/settings/Audio_Folders_Path: No such file or directory
./buster-install-default.sh: line 557: /home/pi/RPi-Jukebox-RFID/settings/Audio_Volume_Change_Step: No such file or directory
./buster-install-default.sh: line 558: /home/pi/RPi-Jukebox-RFID/settings/Max_Volume_Limit: No such file or directory
./buster-install-default.sh: line 559: /home/pi/RPi-Jukebox-RFID/settings/Idle_Time_Before_Shutdown: No such file or directory
./buster-install-default.sh: line 560: /home/pi/RPi-Jukebox-RFID/settings/Second_Swipe: No such file or directory
./buster-install-default.sh: line 561: /home/pi/RPi-Jukebox-RFID/settings/Playlists_Folders_Path: No such file or directory
./buster-install-default.sh: line 562: /home/pi/RPi-Jukebox-RFID/settings/ShowCover: No such file or directory
cp: cannot stat '/home/pi/RPi-Jukebox-RFID/htdocs/config.php.sample': No such file or directory
sudo: lighttpd-enable-mod: command not found
sudo: lighttpd-enable-mod: command not found
Failed to restart lighttpd.service: Unit lighttpd.service not found.
Failed to restart php7.3-fpm.service: Unit php7.3-fpm.service not found.
cp: cannot stat '/home/pi/RPi-Jukebox-RFID/misc/sampleconfigs/gpio-buttons.py.sample': No such file or directory
chmod: cannot access '/home/pi/RPi-Jukebox-RFID/scripts/gpio-buttons.py': No such file or directory
chown: cannot access '/home/pi/RPi-Jukebox-RFID/scripts/*.sh': No such file or directory
chmod: cannot access '/home/pi/RPi-Jukebox-RFID/scripts/*.sh': No such file or directory
chown: cannot access '/home/pi/RPi-Jukebox-RFID/scripts/*.py': No such file or directory
chmod: cannot access '/home/pi/RPi-Jukebox-RFID/scripts/*.py': No such file or directory
### Deleting older versions of service daemons. This might throw errors, ignore them
Failed to disable unit: Unit file idle-watchdog.service does not exist.
Failed to disable unit: Unit file rfid-reader.service does not exist.
Failed to disable unit: Unit file startup-sound.service does not exist.
Failed to disable unit: Unit file gpio-buttons.service does not exist.
rm: cannot remove '/etc/systemd/system/rfid-reader.service': No such file or directory
rm: cannot remove '/etc/systemd/system/startup-sound.service': No such file or directory
rm: cannot remove '/etc/systemd/system/gpio-buttons.service': No such file or directory
rm: cannot remove '/etc/systemd/system/idle-watchdog.service': No such file or directory
### Done with erasing old daemons. Stop ignoring errors!
cp: cannot stat '/home/pi/RPi-Jukebox-RFID/misc/sampleconfigs/phoniebox-rfid-reader.service.stretch-default.sample': No such file or directory
cp: cannot stat '/home/pi/RPi-Jukebox-RFID/misc/sampleconfigs/phoniebox-startup-sound.service.stretch-default.sample': No such file or directory
cp: cannot stat '/home/pi/RPi-Jukebox-RFID/misc/sampleconfigs/phoniebox-gpio-buttons.service.stretch-default.sample': No such file or directory
cp: cannot stat '/home/pi/RPi-Jukebox-RFID/misc/sampleconfigs/phoniebox-idle-watchdog.service.sample': No such file or directory
chown: cannot access '/etc/systemd/system/phoniebox-rfid-reader.service': No such file or directory
chown: cannot access '/etc/systemd/system/phoniebox-startup-sound.service': No such file or directory
chown: cannot access '/etc/systemd/system/phoniebox-gpio-buttons.service': No such file or directory
chown: cannot access '/etc/systemd/system/phoniebox-idle-watchdog.service': No such file or directory
chmod: cannot access '/etc/systemd/system/phoniebox-rfid-reader.service': No such file or directory
chmod: cannot access '/etc/systemd/system/phoniebox-startup-sound.service': No such file or directory
chmod: cannot access '/etc/systemd/system/phoniebox-gpio-buttons.service': No such file or directory
chmod: cannot access '/etc/systemd/system/phoniebox-idle-watchdog.service': No such file or directory
Failed to enable unit: Unit file phoniebox-idle-watchdog.service does not exist.
Failed to enable unit: Unit file phoniebox-rfid-reader.service does not exist.
Failed to enable unit: Unit file phoniebox-startup-sound.service does not exist.
Failed to enable unit: Unit file phoniebox-gpio-buttons.service does not exist.
cp: cannot stat '/home/pi/RPi-Jukebox-RFID/misc/sampleconfigs/startupsound.mp3.sample': No such file or directory
cp: cannot stat '/home/pi/RPi-Jukebox-RFID/misc/sampleconfigs/shutdownsound.mp3.sample': No such file or directory
cp: cannot stat '/home/pi/RPi-Jukebox-RFID/misc/sampleconfigs/mpd.conf.buster-default.sample': No such file or directory
sed: can't read /etc/mpd.conf: No such file or directory
sed: can't read /etc/mpd.conf: No such file or directory
chown: invalid user: ‘mpd:audio’
chmod: cannot access '/etc/mpd.conf': No such file or directory
./buster-install-default.sh: line 665: /home/pi/RPi-Jukebox-RFID/settings/edition: No such file or directory
./buster-install-default.sh: line 669: mpc: command not found
Warning: The unit file, source configuration file or drop-ins of dhcpcd.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Synchronizing state of dhcpcd.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable dhcpcd
mkdir: cannot create directory ‘/home/pi/RPi-Jukebox-RFID/playlists’: No such file or directory
chown: cannot access '/home/pi/RPi-Jukebox-RFID/playlists': No such file or directory
chmod: cannot access '/home/pi/RPi-Jukebox-RFID/playlists': No such file or directory
chown: cannot access '/home/pi/RPi-Jukebox-RFID/shared': No such file or directory
chmod: cannot access '/home/pi/RPi-Jukebox-RFID/shared': No such file or directory
chown: cannot access '/home/pi/RPi-Jukebox-RFID/htdocs': No such file or directory
chmod: cannot access '/home/pi/RPi-Jukebox-RFID/htdocs': No such file or directory
chown: cannot access '/home/pi/RPi-Jukebox-RFID/settings': No such file or directory
chmod: cannot access '/home/pi/RPi-Jukebox-RFID/settings': No such file or directory
chown: cannot access '/home/pi/RPi-Jukebox-RFID/shared/audiofolders': No such file or directory
chmod: cannot access '/home/pi/RPi-Jukebox-RFID/shared/audiofolders': No such file or directory
chown: cannot access '/home/pi/RPi-Jukebox-RFID/scripts/*.sh': No such file or directory
chmod: cannot access '/home/pi/RPi-Jukebox-RFID/scripts/*.sh': No such file or directory
chown: cannot access '/home/pi/RPi-Jukebox-RFID/scripts/*.py': No such file or directory
chmod: cannot access '/home/pi/RPi-Jukebox-RFID/scripts/*.py': No such file or directory
numid=1,iface=MIXER,name='PCM Playback Volume'
  ; type=INTEGER,access=rw---R--,values=1,min=-10239,max=400,step=0
  : values=400
  | dBscale-min=-102.39dB,step=0.01dB,mute=1
rm: cannot remove '/home/pi/RPi-Jukebox-RFID/settings/global.conf': No such file or directory

#
# 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]
./buster-install-default.sh: line 833: cd: /home/pi/RPi-Jukebox-RFID/scripts/: No such file or directory
python2: can't open file 'RegisterDevice.py': [Errno 2] No such file or directory
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]

If I do a develop install followed by the master install I get a working system without working RFID Reader, because of the same error like user sglock.

Tell me if I should do some more testing with a fresh image.

Regards, Tatron

RealTatron commented 4 years ago

RFID error in both install scripts:

Have you connected your USB Reader? [Y/n]
Traceback (most recent call last):
  File "RegisterDevice.py", line 4, in <module>
    from Reader import get_devices
  File "/home/pi/RPi-Jukebox-RFID/scripts/Reader.py", line 23, in <module>
    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
ZyanKLee commented 4 years ago

@RealTatron had this issue once myself. the first error tells you what went wrong: ./buster-install-default.sh: line 494: git: command not found

just install git before running the script again: sudo apt-get update && sudo apt-get -y install git

splitti commented 4 years ago

All done in the past hours, the Onelineinstaller is working fine now... The most problems are because of incompatibility between python2 and python3. The installation works including Iris, Mopidy and also the python2 environment for "old" scripts. Please make it as soon as possible to master: #730

This Pull requests are needed. But they are working ONLY in master branch, it you want to test it, please relace the files in master imager: RegisterDevice.py MiczFlor #707 phoniebox-rfid-reader.service.stretch-default.sample MiczFlor #729

s-martin commented 4 years ago

@ZyanKLee Would it make sense to also add git to the packages to be installed first?

sglock commented 4 years ago

@splitti Just finished a complete fresh install with master branch. Registering RFID reader failed

pi@phoniepi:~ $ python /home/pi/RPi-Jukebox-RFID/scripts/RegisterDevice.py Traceback (most recent call last): File "/home/pi/RPi-Jukebox-RFID/scripts/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'

Using the /Reader.py.experimental

throws the old error

pi@phoniepi:~ $ cp /home/pi/RPi-Jukebox-RFID/scripts/Reader.py.experimental /home/pi/RPi-Jukebox-RFID/scripts/Reader.py pi@phoniepi:~ $ python /home/pi/RPi-Jukebox-RFID/scripts/RegisterDevice.py Traceback (most recent call last): File "/home/pi/RPi-Jukebox-RFID/scripts/RegisterDevice.py", line 4, in from Reader import get_devices File "/home/pi/RPi-Jukebox-RFID/scripts/Reader.py", line 61 print "Card detected." ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print("Card detected.")?

Hope that helps finding the errors.

splitti commented 4 years ago

Use python2.7 to call the python-File. It was working for me with that installation. Maybe it must be 2.7, the most changes were transported manually.

splitti commented 4 years ago

This is working for me, please check:

cd /home/pi/RPi-Jukebox-RFID/scripts/
python2 RegisterDevice.py
sglock commented 4 years ago

@splitti Works! Thx for your help!

ZyanKLee commented 4 years ago

@ZyanKLee Would it make sense to also add git to the packages to be installed first?

@s-martin definitely

splitti commented 4 years ago

Git should bei installed, but in there were Errors in eine cases. With the new Installer should it work.

JoeyRamone commented 4 years ago

@splitti @MiczFlor I've checked the current master onelineinstaller with a Raspi 4 now (fresh installation) and everything seems to work fine. I've tested it before with an "re-installation", but this ended in multiple errors. thank you guys, for all the time you've already spent for this project.

s-martin commented 4 years ago

Ideas for improvement:

fatalerror1981 commented 4 years ago

This failed with below message during the buster master onelineinstaller

E: Version '2.3.1-1' for 'mopidy' was not found

this is after a fresh raspian buster lite installation

fatalerror1981 commented 4 years ago

Building dependency tree Reading state information... Done E: Version '2.3.1-1' for 'mopidy' was not found Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting Mopidy==2.3. Could not find a version that satisfies the requirement Mopidy==2.3. (from versions: ) No matching distribution found for Mopidy==2.3.*

MiczFlor commented 4 years ago

Hi @fatalerror1981 did the install fail or give warnings? And what hardware are you using?

Vanierica commented 4 years ago

@MiczFlor I've the same Problem and posted my output in #741 few days ago. Maybe this helps. I'm using Pi 3 Model B.

ZyanKLee commented 4 years ago

E: Version '2.3.1-1' for 'mopidy' was not found

that might be caused by conversion to python3 as mopidy2 is not compatible with python3: Requires: Python >= 2.7, < 3 https://pypi.org/project/Mopidy/2.3.1/

fifox commented 4 years ago

Hi, I'm facing to exact the same problem. Unfortunately, i have backup only RPi-Jukebox-RFID folder and I need the box running until next friday.

Question: How can I install an old "rock stable" version i.e. without python3? If I remember right, the version from december 2019 was working fine.

Shaquille23 commented 4 years ago

Did a fresh installation with the master branch and spotify enabled on Raspberry 4 with Buster Lite.

Failed to enable unit: Unit file mopidy.service does not exist.
Generating locales (this might take a while)...
  en_GB.ISO-8859-1... done
  en_GB.UTF-8... done
Generation complete.
cp: cannot create regular file '/etc/mopidy/mopidy.conf': No such file or directory
cp: cannot create regular file '/root/.config/mopidy/mopidy.conf': No such file or directory
sed: can't read /etc/mopidy/mopidy.conf: No such file or directory
sed: can't read /etc/mopidy/mopidy.conf: No such file or directory
sed: can't read /etc/mopidy/mopidy.conf: No such file or directory
sed: can't read /etc/mopidy/mopidy.conf: No such file or directory
sed: can't read /root/.config/mopidy/mopidy.conf: No such file or directory
sed: can't read /root/.config/mopidy/mopidy.conf: No such file or directory
sed: can't read /root/.config/mopidy/mopidy.conf: No such file or

The Webinterface is working, but http://192.168.xx.xxx:6680/iris shows a 404 Error.

marsuu commented 4 years ago

E: Version '2.3.1-1' for 'mopidy' was not found

that might be caused by conversion to python3 as mopidy2 is not compatible with python3: Requires: Python >= 2.7, < 3 https://pypi.org/project/Mopidy/2.3.1/

Also facing the same issues (master and develop online installer) after upgrading buster and reinstallation. With fresh installation mopidy will not be installed with the online installer. Perhaps Mopidy 2.3.1-1 no longer contained within the buster mopidy apt repository?

ZyanKLee commented 4 years ago

Would you be willing to test my current version of the installer?

If so, please start from a fresh buster lite image with following commands:

cd /home/pi
wget https://raw.githubusercontent.com/ZyanKLee/RPi-Jukebox-RFID/stretch-dockerfiles/scripts/installscripts/buster-install-default.sh
GIT_BRANCH=develop bash buster-install-default.sh
Shaquille23 commented 4 years ago

Would you be willing to test my current version of the installer?

If so, please start from a fresh buster lite image with following commands:

cd /home/pi
wget https://raw.githubusercontent.com/ZyanKLee/RPi-Jukebox-RFID/stretch-dockerfiles/scripts/installscripts/buster-install-default.sh
GIT_BRANCH=develop bash buster-install-default.sh
E: Version '2.3.1-1' for 'mopidy' was not found
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting Mopidy==2.3.*
  Downloading https://files.pythonhosted.org/packages/5f/d5/867cb8500d6c1dce1bcc4b9ef7eb467148fcf801e15b47c39d55bcac01aa/Mopidy-2.3.1-py2.py3-none-any.whl (215kB)
    100% |████████████████████████████████| 225kB 1.1MB/s
Requirement already satisfied: setuptools in /usr/lib/python2.7/dist-packages (from Mopidy==2.3.*) (40.8.0)
Collecting Pykka>=1.1 (from Mopidy==2.3.*)
  Downloading https://files.pythonhosted.org/packages/d7/1d/acaefaa25356b4cbc027eef320616b2f82406ea74516318b70c81b513d59/Pykka-2.0.2-py2.py3-none-any.whl
Collecting requests>=2.0 (from Mopidy==2.3.*)
  Downloading https://files.pythonhosted.org/packages/51/bd/23c926cd341ea6b7dd0b2a00aba99ae0f828be89d72b2190f27c11d4b7fb/requests-2.22.0-py2.py3-none-any.whl (57kB)
    100% |████████████████████████████████| 61kB 2.7MB/s
Collecting tornado<6,>=4.4 (from Mopidy==2.3.*)
  Downloading https://files.pythonhosted.org/packages/e6/78/6e7b5af12c12bdf38ca9bfe863fcaf53dc10430a312d0324e76c1e5ca426/tornado-5.1.1.tar.gz (516kB)
    100% |████████████████████████████████| 522kB 643kB/s
Collecting idna<2.9,>=2.5 (from requests>=2.0->Mopidy==2.3.*)
  Downloading https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl (58kB)
    100% |████████████████████████████████| 61kB 2.1MB/s
Collecting chardet<3.1.0,>=3.0.2 (from requests>=2.0->Mopidy==2.3.*)
  Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
    100% |████████████████████████████████| 143kB 1.6MB/s
Collecting certifi>=2017.4.17 (from requests>=2.0->Mopidy==2.3.*)
  Downloading https://files.pythonhosted.org/packages/b9/63/df50cac98ea0d5b006c55a399c3bf1db9da7b5a24de7890bc9cfd5dd9e99/certifi-2019.11.28-py2.py3-none-any.whl (156kB)
    100% |████████████████████████████████| 163kB 1.5MB/s
Collecting urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 (from requests>=2.0->Mopidy==2.3.*)
  Downloading https://files.pythonhosted.org/packages/e8/74/6e4f91745020f967d09332bb2b8b9b10090957334692eb88ea4afe91b77f/urllib3-1.25.8-py2.py3-none-any.whl (125kB)
    100% |████████████████████████████████| 133kB 1.8MB/s
Collecting backports_abc>=0.4 (from tornado<6,>=4.4->Mopidy==2.3.*)
  Downloading https://files.pythonhosted.org/packages/7d/56/6f3ac1b816d0cd8994e83d0c4e55bc64567532f7dc543378bd87f81cebc7/backports_abc-0.5-py2.py3-none-any.whl
Collecting futures (from tornado<6,>=4.4->Mopidy==2.3.*)
  Downloading https://files.pythonhosted.org/packages/d8/a6/f46ae3f1da0cd4361c344888f59ec2f5785e69c872e175a748ef6071cdb5/futures-3.3.0-py2-none-any.whl
Collecting singledispatch (from tornado<6,>=4.4->Mopidy==2.3.*)
  Downloading https://files.pythonhosted.org/packages/c5/10/369f50bcd4621b263927b0a1519987a04383d4a98fb10438042ad410cf88/singledispatch-3.4.0.3-py2.py3-none-any.whl
Requirement already satisfied: six in /usr/lib/python2.7/dist-packages (from singledispatch->tornado<6,>=4.4->Mopidy==2.3.*) (1.12.0)
Building wheels for collected packages: tornado
  Running setup.py bdist_wheel for tornado ... done
  Stored in directory: /root/.cache/pip/wheels/6d/e1/ce/f4ee2fa420cc6b940123c64992b81047816d0a9fad6b879325
Successfully built tornado
Installing collected packages: Pykka, idna, chardet, certifi, urllib3, requests, backports-abc, futures, singledispatch, tornado, Mopidy
Successfully installed Mopidy-2.3.1 Pykka-2.0.2 backports-abc-0.5 certifi-2019.11.28 chardet-3.0.4 futures-3.3.0 idna-2.8 requests-2.22.0 singledispatch-3.4.0.3 tornado-5.1.1 urllib3-1.25.8
Reading package lists... Done
Building dependency tree
Reading state information... Done
libspotify12 is already the newest version (12.1.103-0mopidy1).
libspotify12 set to manually installed.
Suggested packages:
  python-ply-doc python-spotify-doc
The following NEW packages will be installed:
  python-cffi python-ply python-pycparser python-spotify
0 upgraded, 4 newly installed, 0 to remove and 1 not upgraded.
Need to get 319 kB of archives.
After this operation, 1,833 kB of additional disk space will be used.
Get:2 https://apt.mopidy.com buster/contrib armhf python-spotify armhf 2.1.3-0mopidy1 [95.2 kB]
Get:1 http://mirror.de.leaseweb.net/raspbian/raspbian buster/main armhf python-ply all 3.11-3 [65.1 kB]
Get:3 http://mirror.de.leaseweb.net/raspbian/raspbian buster/main armhf python-pycparser all 2.19-1 [75.7 kB]
Get:4 http://mirror.de.leaseweb.net/raspbian/raspbian buster/main armhf python-cffi all 1.12.2-1 [83.2 kB]
Fetched 319 kB in 1s (456 kB/s)
Selecting previously unselected package python-ply.
(Reading database ... 98688 files and directories currently installed.)
Preparing to unpack .../python-ply_3.11-3_all.deb ...
Unpacking python-ply (3.11-3) ...
Selecting previously unselected package python-pycparser.
Preparing to unpack .../python-pycparser_2.19-1_all.deb ...
Unpacking python-pycparser (2.19-1) ...
Selecting previously unselected package python-cffi.
Preparing to unpack .../python-cffi_1.12.2-1_all.deb ...
Unpacking python-cffi (1.12.2-1) ...
Selecting previously unselected package python-spotify.
Preparing to unpack .../python-spotify_2.1.3-0mopidy1_armhf.deb ...
Unpacking python-spotify (2.1.3-0mopidy1) ...
Setting up python-ply (3.11-3) ...
Setting up python-pycparser (2.19-1) ...
Setting up python-spotify (2.1.3-0mopidy1) ...
Setting up python-cffi (1.12.2-1) ...
Processing triggers for man-db (2.8.5-2) ...
Cloning into 'mopidy-spotify'...
remote: Enumerating objects: 1, done.
remote: Counting objects: 100% (1/1), done.
remote: Total 2083 (delta 0), reused 1 (delta 0), pack-reused 2082
Receiving objects: 100% (2083/2083), 386.49 KiB | 633.00 KiB/s, done.
Resolving deltas: 100% (1535/1535), done.
running install
running bdist_egg
running egg_info
creating Mopidy_Spotify.egg-info
writing requirements to Mopidy_Spotify.egg-info/requires.txt
writing Mopidy_Spotify.egg-info/PKG-INFO
writing top-level names to Mopidy_Spotify.egg-info/top_level.txt
writing dependency_links to Mopidy_Spotify.egg-info/dependency_links.txt
writing entry points to Mopidy_Spotify.egg-info/entry_points.txt
writing manifest file 'Mopidy_Spotify.egg-info/SOURCES.txt'
reading manifest file 'Mopidy_Spotify.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'Mopidy_Spotify.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-armv7l/egg
running install_lib
running build_py
creating build
creating build/lib.linux-armv7l-2.7
creating build/lib.linux-armv7l-2.7/mopidy_spotify
copying mopidy_spotify/search.py -> build/lib.linux-armv7l-2.7/mopidy_spotify
copying mopidy_spotify/playback.py -> build/lib.linux-armv7l-2.7/mopidy_spotify
copying mopidy_spotify/backend.py -> build/lib.linux-armv7l-2.7/mopidy_spotify
copying mopidy_spotify/utils.py -> build/lib.linux-armv7l-2.7/mopidy_spotify
copying mopidy_spotify/browse.py -> build/lib.linux-armv7l-2.7/mopidy_spotify
copying mopidy_spotify/web.py -> build/lib.linux-armv7l-2.7/mopidy_spotify
copying mopidy_spotify/library.py -> build/lib.linux-armv7l-2.7/mopidy_spotify
copying mopidy_spotify/countries.py -> build/lib.linux-armv7l-2.7/mopidy_spotify
copying mopidy_spotify/images.py -> build/lib.linux-armv7l-2.7/mopidy_spotify
copying mopidy_spotify/lookup.py -> build/lib.linux-armv7l-2.7/mopidy_spotify
copying mopidy_spotify/playlists.py -> build/lib.linux-armv7l-2.7/mopidy_spotify
copying mopidy_spotify/translator.py -> build/lib.linux-armv7l-2.7/mopidy_spotify
copying mopidy_spotify/__init__.py -> build/lib.linux-armv7l-2.7/mopidy_spotify
copying mopidy_spotify/distinct.py -> build/lib.linux-armv7l-2.7/mopidy_spotify
copying mopidy_spotify/ext.conf -> build/lib.linux-armv7l-2.7/mopidy_spotify
copying mopidy_spotify/spotify_appkey.key -> build/lib.linux-armv7l-2.7/mopidy_spotify
creating build/bdist.linux-armv7l
creating build/bdist.linux-armv7l/egg
creating build/bdist.linux-armv7l/egg/mopidy_spotify
copying build/lib.linux-armv7l-2.7/mopidy_spotify/search.py -> build/bdist.linux-armv7l/egg/mopidy_spotify
copying build/lib.linux-armv7l-2.7/mopidy_spotify/playback.py -> build/bdist.linux-armv7l/egg/mopidy_spotify
copying build/lib.linux-armv7l-2.7/mopidy_spotify/backend.py -> build/bdist.linux-armv7l/egg/mopidy_spotify
copying build/lib.linux-armv7l-2.7/mopidy_spotify/utils.py -> build/bdist.linux-armv7l/egg/mopidy_spotify
copying build/lib.linux-armv7l-2.7/mopidy_spotify/spotify_appkey.key -> build/bdist.linux-armv7l/egg/mopidy_spotify
copying build/lib.linux-armv7l-2.7/mopidy_spotify/browse.py -> build/bdist.linux-armv7l/egg/mopidy_spotify
copying build/lib.linux-armv7l-2.7/mopidy_spotify/web.py -> build/bdist.linux-armv7l/egg/mopidy_spotify
copying build/lib.linux-armv7l-2.7/mopidy_spotify/library.py -> build/bdist.linux-armv7l/egg/mopidy_spotify
copying build/lib.linux-armv7l-2.7/mopidy_spotify/countries.py -> build/bdist.linux-armv7l/egg/mopidy_spotify
copying build/lib.linux-armv7l-2.7/mopidy_spotify/ext.conf -> build/bdist.linux-armv7l/egg/mopidy_spotify
copying build/lib.linux-armv7l-2.7/mopidy_spotify/images.py -> build/bdist.linux-armv7l/egg/mopidy_spotify
copying build/lib.linux-armv7l-2.7/mopidy_spotify/lookup.py -> build/bdist.linux-armv7l/egg/mopidy_spotify
copying build/lib.linux-armv7l-2.7/mopidy_spotify/playlists.py -> build/bdist.linux-armv7l/egg/mopidy_spotify
copying build/lib.linux-armv7l-2.7/mopidy_spotify/translator.py -> build/bdist.linux-armv7l/egg/mopidy_spotify
copying build/lib.linux-armv7l-2.7/mopidy_spotify/__init__.py -> build/bdist.linux-armv7l/egg/mopidy_spotify
copying build/lib.linux-armv7l-2.7/mopidy_spotify/distinct.py -> build/bdist.linux-armv7l/egg/mopidy_spotify
byte-compiling build/bdist.linux-armv7l/egg/mopidy_spotify/search.py to search.pyc
byte-compiling build/bdist.linux-armv7l/egg/mopidy_spotify/playback.py to playback.pyc
byte-compiling build/bdist.linux-armv7l/egg/mopidy_spotify/backend.py to backend.pyc
byte-compiling build/bdist.linux-armv7l/egg/mopidy_spotify/utils.py to utils.pyc
byte-compiling build/bdist.linux-armv7l/egg/mopidy_spotify/browse.py to browse.pyc
byte-compiling build/bdist.linux-armv7l/egg/mopidy_spotify/web.py to web.pyc
byte-compiling build/bdist.linux-armv7l/egg/mopidy_spotify/library.py to library.pyc
byte-compiling build/bdist.linux-armv7l/egg/mopidy_spotify/countries.py to countries.pyc
byte-compiling build/bdist.linux-armv7l/egg/mopidy_spotify/images.py to images.pyc
byte-compiling build/bdist.linux-armv7l/egg/mopidy_spotify/lookup.py to lookup.pyc
byte-compiling build/bdist.linux-armv7l/egg/mopidy_spotify/playlists.py to playlists.pyc
byte-compiling build/bdist.linux-armv7l/egg/mopidy_spotify/translator.py to translator.pyc
byte-compiling build/bdist.linux-armv7l/egg/mopidy_spotify/__init__.py to __init__.pyc
byte-compiling build/bdist.linux-armv7l/egg/mopidy_spotify/distinct.py to distinct.pyc
creating build/bdist.linux-armv7l/egg/EGG-INFO
copying Mopidy_Spotify.egg-info/PKG-INFO -> build/bdist.linux-armv7l/egg/EGG-INFO
copying Mopidy_Spotify.egg-info/SOURCES.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying Mopidy_Spotify.egg-info/dependency_links.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying Mopidy_Spotify.egg-info/entry_points.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying Mopidy_Spotify.egg-info/not-zip-safe -> build/bdist.linux-armv7l/egg/EGG-INFO
copying Mopidy_Spotify.egg-info/requires.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
copying Mopidy_Spotify.egg-info/top_level.txt -> build/bdist.linux-armv7l/egg/EGG-INFO
creating dist
creating 'dist/Mopidy_Spotify-3.1.0-py2.7.egg' and adding 'build/bdist.linux-armv7l/egg' to it
removing 'build/bdist.linux-armv7l/egg' (and everything under it)
Processing Mopidy_Spotify-3.1.0-py2.7.egg
creating /usr/local/lib/python2.7/dist-packages/Mopidy_Spotify-3.1.0-py2.7.egg
Extracting Mopidy_Spotify-3.1.0-py2.7.egg to /usr/local/lib/python2.7/dist-packages
Adding Mopidy-Spotify 3.1.0 to easy-install.pth file

Installed /usr/local/lib/python2.7/dist-packages/Mopidy_Spotify-3.1.0-py2.7.egg
Processing dependencies for Mopidy-Spotify==3.1.0
Searching for setuptools==40.8.0
Best match: setuptools 40.8.0
Adding setuptools 40.8.0 to easy-install.pth file
Installing easy_install script to /usr/local/bin

Using /usr/lib/python2.7/dist-packages
Searching for requests==2.22.0
Best match: requests 2.22.0
Adding requests 2.22.0 to easy-install.pth file

Using /usr/local/lib/python2.7/dist-packages
Searching for pyspotify==2.1.3
Best match: pyspotify 2.1.3
Adding pyspotify 2.1.3 to easy-install.pth file

Using /usr/lib/python2.7/dist-packages
Searching for Pykka==2.0.2
Best match: Pykka 2.0.2
Adding Pykka 2.0.2 to easy-install.pth file

Using /usr/local/lib/python2.7/dist-packages
Searching for Mopidy==2.3.1
Best match: Mopidy 2.3.1
Adding Mopidy 2.3.1 to easy-install.pth file
Installing mopidy script to /usr/local/bin

Using /usr/local/lib/python2.7/dist-packages
Searching for urllib3==1.25.8
Best match: urllib3 1.25.8
Adding urllib3 1.25.8 to easy-install.pth file

Using /usr/local/lib/python2.7/dist-packages
Searching for certifi==2019.11.28
Best match: certifi 2019.11.28
Adding certifi 2019.11.28 to easy-install.pth file

Using /usr/local/lib/python2.7/dist-packages
Searching for chardet==3.0.4
Best match: chardet 3.0.4
Adding chardet 3.0.4 to easy-install.pth file
Installing chardetect script to /usr/local/bin

Using /usr/local/lib/python2.7/dist-packages
Searching for idna==2.8
Best match: idna 2.8
Adding idna 2.8 to easy-install.pth file

Using /usr/local/lib/python2.7/dist-packages
Searching for tornado==5.1.1
Best match: tornado 5.1.1
Adding tornado 5.1.1 to easy-install.pth file

Using /usr/local/lib/python2.7/dist-packages
Searching for futures==3.3.0
Best match: futures 3.3.0
Adding futures 3.3.0 to easy-install.pth file

Using /usr/local/lib/python2.7/dist-packages
Searching for singledispatch==3.4.0.3
Best match: singledispatch 3.4.0.3
Adding singledispatch 3.4.0.3 to easy-install.pth file

Using /usr/local/lib/python2.7/dist-packages
Searching for backports-abc==0.5
Best match: backports-abc 0.5
Adding backports-abc 0.5 to easy-install.pth file

Using /usr/local/lib/python2.7/dist-packages
Searching for six==1.12.0
Best match: six 1.12.0
Adding six 1.12.0 to easy-install.pth file

Using /usr/lib/python2.7/dist-packages
Finished processing dependencies for Mopidy-Spotify==3.1.0
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pylast==2.4.0
  Downloading https://files.pythonhosted.org/packages/8c/00/815aa4bdf0f0b2168523098001937379d1fdc0e484a1545d896c9ee65b45/pylast-2.4.0-py2.py3-none-any.whl
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from pylast==2.4.0) (1.12.0)
Installing collected packages: pylast
Successfully installed pylast-2.4.0
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting tornado==5.0
  Downloading https://www.piwheels.org/simple/tornado/tornado-5.0-cp37-cp37m-linux_armv7l.whl (449kB)
    100% |████████████████████████████████| 450kB 799kB/s
Installing collected packages: tornado
Successfully installed tornado-5.0
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting Mopidy-Iris
  Downloading https://www.piwheels.org/simple/mopidy-iris/Mopidy_Iris-3.43.0-py2.py3-none-any.whl (6.2MB)
    100% |████████████████████████████████| 6.2MB 71kB/s
Requirement already satisfied: setuptools>=3.3 in /usr/lib/python3/dist-packages (from Mopidy-Iris) (40.8.0)
Collecting ConfigObj>=5.0.6 (from Mopidy-Iris)
  Downloading https://www.piwheels.org/simple/configobj/configobj-5.0.6-py3-none-any.whl
Collecting Mopidy>=2.0 (from Mopidy-Iris)
  Downloading https://files.pythonhosted.org/packages/45/ac/26cd7fbddcff011b38cb56ffe99af9160775a48aa9e44939967d0c80a799/Mopidy-3.0.1-py3-none-any.whl (124kB)
    100% |████████████████████████████████| 133kB 1.4MB/s
Requirement already satisfied: requests>=2.0.0 in /usr/lib/python3/dist-packages (from Mopidy-Iris) (2.21.0)
Collecting Mopidy-Local-Images>=1.0 (from Mopidy-Iris)
  Downloading https://files.pythonhosted.org/packages/0d/76/e49b06e6d2a7aa4b94a407ab400e138acbd0e01791adfdc5492084da5411/Mopidy_Local_Images-1.0.0-py2.py3-none-any.whl
Requirement already satisfied: six in /usr/lib/python3/dist-packages (from ConfigObj>=5.0.6->Mopidy-Iris) (1.12.0)
Requirement already satisfied: tornado>=4.4 in /usr/local/lib/python3.7/dist-packages (from Mopidy>=2.0->Mopidy-Iris) (5.0)
Collecting Pykka>=2.0.1 (from Mopidy>=2.0->Mopidy-Iris)
  Using cached https://files.pythonhosted.org/packages/d7/1d/acaefaa25356b4cbc027eef320616b2f82406ea74516318b70c81b513d59/Pykka-2.0.2-py2.py3-none-any.whl
Collecting uritools>=1.0 (from Mopidy-Local-Images>=1.0->Mopidy-Iris)
  Downloading https://files.pythonhosted.org/packages/eb/1a/5995c0a000ef116111b9af9303349ba97ec2446d2c9a79d2df028a3e3b19/uritools-3.0.0-py3-none-any.whl
Installing collected packages: ConfigObj, Pykka, Mopidy, uritools, Mopidy-Local-Images, Mopidy-Iris
Successfully installed ConfigObj-5.0.6 Mopidy-3.0.1 Mopidy-Iris-3.43.0 Mopidy-Local-Images-1.0.0 Pykka-2.0.2 uritools-3.0.0
Cloning into 'RPi-Jukebox-RFID'...
remote: Enumerating objects: 6050, done.
remote: Total 6050 (delta 0), reused 0 (delta 0), pack-reused 6050
Receiving objects: 100% (6050/6050), 16.58 MiB | 2.80 MiB/s, done.
Resolving deltas: 100% (4038/4038), done.
--2020-01-26 18:04:24--  https://raw.githubusercontent.com/MiczFlor/RPi-Jukebox-RFID/develop/misc/sampleconfigs/phoniebox-rfid-reader.service.stretch-default.sample
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.0.133, 151.101.64.133, 151.101.128.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 305 [text/plain]
Saving to: ‘phoniebox-rfid-reader.service.stretch-default.sample’

phoniebox-rfid-reader.service.stretch-default.sample        100%[========================================================================================================================================>]     305  --.-KB/s    in 0s

2020-01-26 18:04:24 (3.43 MB/s) - ‘phoniebox-rfid-reader.service.stretch-default.sample’ saved [305/305]

--2020-01-26 18:04:24--  https://raw.githubusercontent.com/MiczFlor/RPi-Jukebox-RFID/develop/scripts/RegisterDevice.py
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.0.133, 151.101.64.133, 151.101.128.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 379 [text/plain]
Saving to: ‘RegisterDevice.py’

RegisterDevice.py                                           100%[========================================================================================================================================>]     379  --.-KB/s    in 0s

2020-01-26 18:04:25 (4.47 MB/s) - ‘RegisterDevice.py’ saved [379/379]

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting evdev==0.7.0 (from -r requirements.txt (line 7))
  Downloading https://www.piwheels.org/simple/evdev/evdev-0.7.0-cp37-cp37m-linux_armv7l.whl (92kB)
    100% |████████████████████████████████| 102kB 767kB/s
Collecting spi-py from git+git://github.com/lthiery/SPI-Py.git#egg=spi-py (from -r requirements.txt (line 8))
  Cloning git://github.com/lthiery/SPI-Py.git to /tmp/pip-install-z9bq8wmj/spi-py
Collecting youtube_dl (from -r requirements.txt (line 9))
  Downloading https://files.pythonhosted.org/packages/05/d4/64dfe51be0fae772e86be3c83d82ec22d59aa8521d8834e10355bf60f9f5/youtube_dl-2020.1.24-py2.py3-none-any.whl (1.8MB)
    100% |████████████████████████████████| 1.8MB 245kB/s
Collecting pyserial (from -r requirements.txt (line 10))
  Downloading https://files.pythonhosted.org/packages/0d/e4/2a744dd9e3be04a0c0907414e2a01a7c88bb3915cbe3c8cc06e209f59c30/pyserial-3.4-py2.py3-none-any.whl (193kB)
    100% |████████████████████████████████| 194kB 1.2MB/s
Requirement already satisfied: RPi.GPIO in /usr/lib/python3/dist-packages (from -r requirements.txt (line 12)) (0.7.0)
Collecting pi-rc522 (from -r requirements.txt (line 13))
  Downloading https://files.pythonhosted.org/packages/c6/4f/cd4ba8cd9f34d89caf243a57dbb2ad77a21f13ae1242c8d4f87c520ff4ed/pi_rc522-2.2.1-py3-none-any.whl
Requirement already satisfied: spidev in /usr/lib/python3/dist-packages (from pi-rc522->-r requirements.txt (line 13)) (3.4)
Building wheels for collected packages: spi-py
  Running setup.py bdist_wheel for spi-py ... done
  Stored in directory: /tmp/pip-ephem-wheel-cache-t955lqja/wheels/10/00/be/9cf7629653643bb77d91c0dd14f094551768ef8e6906c63566
Successfully built spi-py
Installing collected packages: evdev, spi-py, youtube-dl, pyserial, pi-rc522
Successfully installed evdev-0.7.0 pi-rc522-2.2.1 pyserial-3.4 spi-py-1.0 youtube-dl-2020.1.24
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: evdev==0.7.0 in /usr/local/lib/python3.7/dist-packages (0.7.0)
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: evdev==0.7.0 in /usr/local/lib/python3.7/dist-packages (0.7.0)
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already up-to-date: youtube_dl in /usr/local/lib/python3.7/dist-packages (2020.1.24)
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: spi-py from git+git://github.com/lthiery/SPI-Py.git#egg=spi-py in /usr/local/lib/python3.7/dist-packages (1.0)
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: pyserial in /usr/local/lib/python3.7/dist-packages (3.4)
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: RPi.GPIO in /usr/lib/python3/dist-packages (0.7.0)
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: pi-rc522 in /usr/local/lib/python3.7/dist-packages (2.2.1)
Requirement already satisfied: RPi.GPIO in /usr/lib/python3/dist-packages (from pi-rc522) (0.7.0)
Requirement already satisfied: spidev in /usr/lib/python3/dist-packages (from pi-rc522) (3.4)
Added user pi.
Enabling fastcgi: ok
Run "service lighttpd force-reload" to enable changes
Enabling fastcgi-php: ok
Run "service lighttpd force-reload" to enable changes
### Deleting older versions of service daemons. This might throw errors, ignore them
Failed to disable unit: Unit file idle-watchdog.service does not exist.
Failed to disable unit: Unit file rfid-reader.service does not exist.
Failed to disable unit: Unit file startup-sound.service does not exist.
Failed to disable unit: Unit file gpio-buttons.service does not exist.
rm: cannot remove '/etc/systemd/system/rfid-reader.service': No such file or directory
rm: cannot remove '/etc/systemd/system/startup-sound.service': No such file or directory
rm: cannot remove '/etc/systemd/system/gpio-buttons.service': No such file or directory
rm: cannot remove '/etc/systemd/system/idle-watchdog.service': No such file or directory
### Done with erasing old daemons. Stop ignoring errors!
Created symlink /etc/systemd/system/multi-user.target.wants/phoniebox-idle-watchdog.service → /etc/systemd/system/phoniebox-idle-watchdog.service.
Created symlink /etc/systemd/system/multi-user.target.wants/phoniebox-rfid-reader.service → /etc/systemd/system/phoniebox-rfid-reader.service.
Created symlink /etc/systemd/system/multi-user.target.wants/phoniebox-startup-sound.service → /etc/systemd/system/phoniebox-startup-sound.service.
Created symlink /etc/systemd/system/multi-user.target.wants/phoniebox-gpio-buttons.service → /etc/systemd/system/phoniebox-gpio-buttons.service.
Created symlink /etc/systemd/system/multi-user.target.wants/phoniebox-rotary-encoder.service → /etc/systemd/system/phoniebox-rotary-encoder.service.
Synchronizing state of mpd.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable mpd
Removed /etc/systemd/system/multi-user.target.wants/mpd.service.
Removed /etc/systemd/system/sockets.target.wants/mpd.socket.
Failed to enable unit: Unit file mopidy.service does not exist.
Generating locales (this might take a while)...
  en_GB.ISO-8859-1... done
  en_GB.UTF-8... done
Generation complete.
cp: cannot create regular file '/etc/mopidy/mopidy.conf': No such file or directory
sed: can't read /etc/mopidy/mopidy.conf: No such file or directory
sed: can't read /etc/mopidy/mopidy.conf: No such file or directory
sed: can't read /etc/mopidy/mopidy.conf: No such file or directory
sed: can't read /etc/mopidy/mopidy.conf: No such file or directory
Updating DB (#2) ...
volume: 40%   repeat: off   random: off   single: off   consume: off
Synchronizing state of dhcpcd.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable dhcpcd
numid=1,iface=MIXER,name='PCM Playback Volume'
  ; type=INTEGER,access=rw---R--,values=1,min=-10239,max=400,step=0
  : values=400
  | dBscale-min=-102.39dB,step=0.01dB,mute=1
rm: cannot remove '/home/pi/RPi-Jukebox-RFID/settings/global.conf': No such file or directory

#
# INSTALLATION FINISHED
#
#####################################################

The webinterface works, but http://192.168.xx.xx:6680/iris gives a 404 error.

felixlindemann commented 4 years ago

Thank you for this script... https://github.com/MiczFlor/RPi-Jukebox-RFID/issues/721#issuecomment-578498842

unfortunately it didn't work for me as well. same as @Shaquille23 reported. for me it seems as if mopidy is not installed.

ZyanKLee commented 4 years ago

they did some baaad thing with deleting 2.3.x releases

marsuu commented 4 years ago

Thanks for the provided install script @ZyanKLee : https://github.com/MiczFlor/RPi-Jukebox-RFID/issues/721#issuecomment-578498842

works good for me, after downgrading to 2.3.1-1 from apt-cache (luckily available due to previous faulty upgrade) with small dirty (useless for fresh installs) fix in your install script:

#sudo apt-get install --yes mopidy=2.3.1-1
sudo dpkg -i /var/cache/apt/archives/mopidy_2.3.1-1_all.deb
sudo apt-mark mopidy
splitti commented 4 years ago

Sorry, i leaved the project a few days alone and i am currently 200% at my RL because life is sometimes an a**hole.

But i am a little bit confused about the installer. The last time i had a ready one for the Spotify Version, also with working Iris, Reader Setup (python3) and Reader Service (python 2.7). The problem seems to be the classic version and missing packets. I think firstly we should clarify the needed packages for the version Mopidy + Iris and the other dependencies, and on the other hand also for the Classic Version. I agree with you, that we should go up to python 3. What is the current problem getting the installer working? Are the old releases of Mopidy really deleted?

I get the three new Pi's to test in the next days and i will try to code a completly new Installer. We need a good overview which packages are really needed! Did someone invest some time in finding the needed packages?

ZyanKLee commented 4 years ago

Not yet. I mostly concentrated on getting those three installers back on track, when suddenly those buster mopidy 2.3 packages disappeared.

Perhaps it would be best to ditch the apt repo and go for the pip repos instead? But in that case the requirements.txt should be used for all python deps. Requirements.txt files can include others, btw. (Add a line with -r global-req.txt for example)

ZyanKLee commented 4 years ago

That way we could try to keep as much of the dependencies in a central file, add stretch/buster specifics in two others and add more for Spotify or gmusic stuff and then we can collect those into 'collections' like "buster w/ Spotify and gmusic" or "stretch w/ otherStuff" in which almost only includes would be.

Then we only need to keep the stuff up to date in a single file at most.

splitti commented 4 years ago

Sounds like a really fresh Installer, based on Module steps for OS and so on

s-martin commented 4 years ago

Is there a reason why we use mopidity only for Spotify version and not for everything?

splitti commented 4 years ago

For local Music is the mpd Service much faster, starting and playing... Mopidy needs an Internet Connection. In my opinion, this is a good way to have more Performance and to react on use cases.