Fresh Buster install on a Raspberry Pi 3, and I’m facing this problem: following the docs to install mopidy from APT, it always insists on installing the v2 and cannot find the v3. If I install from PiPy, it says it’s installed the v3 correctly, but there is no way to run it as a service (it says there is no unit file and I cannot believe I need to create it myself, manually).
Did someone have the same problem ? Is my install broken ? Any debugging tips ?
Thanks a million times. Some outputs below:
pip install mopidy
yields:
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: mopidy in /usr/local/lib/python3.7/dist-packages (3.0.2)
Requirement already satisfied: tornado>=4.4 in /usr/local/lib/python3.7/dist-packages (from mopidy) (6.0.4)
Requirement already satisfied: requests>=2.0 in /usr/lib/python3/dist-packages (from mopidy) (2.21.0)
Requirement already satisfied: Pykka>=2.0.1 in /usr/local/lib/python3.7/dist-packages (from mopidy) (2.0.2)
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from mopidy) (40.8.0)
sudo systemctl status mopidy
yields:
● mopidy.service
Loaded: not-found (Reason: Unit mopidy.service not found.)
Active: failed (Result: timeout) since Wed 2020-09-23 09:59:22 CEST; 2h 3min ago
Main PID: 1505 (code=killed, signal=KILL)
Sep 23 09:28:27 raspberrypi systemd[1]: mopidy.service: Current command vanished from the unit file, execution of the command list won't be resumed.
Sep 23 09:57:52 raspberrypi mopidy[1505]: INFO GLib mainloop got SIGTERM. Exiting...
Sep 23 09:57:52 raspberrypi mopidy[1505]: INFO Stopping Mopidy frontends
Sep 23 09:57:52 raspberrypi systemd[1]: Stopping Mopidy music server...
Sep 23 09:57:52 raspberrypi mopidy[1505]: INFO Stopping Mopidy core
Sep 23 09:59:22 raspberrypi systemd[1]: mopidy.service: State 'stop-sigterm' timed out. Killing.
Sep 23 09:59:22 raspberrypi systemd[1]: mopidy.service: Killing process 1505 (mopidy) with signal SIGKILL.
Sep 23 09:59:22 raspberrypi systemd[1]: mopidy.service: Main process exited, code=killed, status=9/KILL
Sep 23 09:59:22 raspberrypi systemd[1]: mopidy.service: Failed with result 'timeout'.
Sep 23 09:59:22 raspberrypi systemd[1]: Stopped Mopidy music server.
mopidy
yields:
INFO 2020-09-23 10:29:53,676 [7129:MainThread] mopidy.__main__
Starting Mopidy 3.0.2
INFO 2020-09-23 10:29:53,752 [7129:MainThread] mopidy.config
Loading config from builtin defaults
INFO 2020-09-23 10:29:53,757 [7129:MainThread] mopidy.config
Loading config from file:///home/pi/.config/mopidy/mopidy.conf
INFO 2020-09-23 10:29:53,763 [7129:MainThread] mopidy.config
Loading config from command line options
WARNING 2020-09-23 10:29:53,778 [7129:MainThread] mopidy.config
Ignoring config section 'local' because no matching extension was found
WARNING 2020-09-23 10:29:53,779 [7129:MainThread] mopidy.config
Ignoring config section 'mpd' because no matching extension was found
INFO 2020-09-23 10:29:54,444 [7129:MainThread] mopidy.__main__
Enabled extensions: softwaremixer, file, stream, http, m3u
INFO 2020-09-23 10:29:54,445 [7129:MainThread] mopidy.__main__
Disabled extensions: none
INFO 2020-09-23 10:29:55,208 [7129:MainThread] mopidy.commands
Starting Mopidy mixer: SoftwareMixer
INFO 2020-09-23 10:29:55,213 [7129:MainThread] mopidy.commands
Starting Mopidy audio
INFO 2020-09-23 10:29:55,219 [7129:MainThread] mopidy.commands
Starting Mopidy backends: FileBackend, M3UBackend, StreamBackend
INFO 2020-09-23 10:29:55,247 [7129:MainThread] mopidy.internal.path
Creating dir file:///home/pi/.local/share/mopidy/m3u
INFO 2020-09-23 10:29:55,269 [7129:Audio-2] mopidy.audio.actor
Audio output set to "autoaudiosink"
INFO 2020-09-23 10:29:55,327 [7129:MainThread] mopidy.commands
Starting Mopidy core
INFO 2020-09-23 10:29:55,365 [7129:MainThread] mopidy.commands
Starting Mopidy frontends: HttpFrontend
INFO 2020-09-23 10:29:55,373 [7129:HttpFrontend-8] mopidy.http.actor
HTTP server running at [::ffff:127.0.0.1]:6680
INFO 2020-09-23 10:29:55,375 [7129:MainThread] mopidy.commands
Starting GLib mainloop
INFO 2020-09-23 10:29:55,413 [7129:HttpServer] mopidy.internal.path
Creating dir file:///home/pi/.local/share/mopidy/http
^CINFO 2020-09-23 10:30:42,711 [7129:MainThread] mopidy.commands
Interrupted. Exiting...
INFO 2020-09-23 10:30:42,712 [7129:MainThread] mopidy.commands
Stopping Mopidy frontends
INFO 2020-09-23 10:30:42,723 [7129:MainThread] mopidy.commands
Stopping Mopidy core
INFO 2020-09-23 10:30:42,729 [7129:MainThread] mopidy.commands
Stopping Mopidy backends
INFO 2020-09-23 10:30:42,738 [7129:MainThread] mopidy.commands
Stopping Mopidy audio
INFO 2020-09-23 10:30:42,746 [7129:MainThread] mopidy.commands
Stopping Mopidy mixer
My default python is 3.7 by the way.