Closed jpgaroto closed 7 years ago
INFO Enabled extensions: mopify, spotify, mpd, http, stream, spotmop, m3u, softwaremixer, file, local-images, local
Looks like mopidy, when running as a service, cannot find the local-sqlite
extension, though it can find, for example, local-images
. So, how did you install mopidy-local-sqlite
?
I installed it just like the documentation says (pip install Mopidy-Local-SQLite). It was my first use of pip so I don't know any other way to install it. As I said, it worked fine running Mopidy with my user but not as a service. If I need to install it in a different way please tell me how and I'll try.
thanks a lot.
No other idea? Any help please?
sudo pip install mopidy-local-sqlite
should work.
Another option on Debian/Ubuntu would be installing from apt.mopidy.com
: https://docs.mopidy.com/en/latest/installation/debian/
However, since this doesn't seem to be an issue with mopidy-local-sqlite
specifically, but more some kind of general installation question, I'd suggest posting this on https://discuss.mopidy.com if the problem persists.
Is this still an issue?
Closing due to inactivity.
I had the same issue. I had to run the mopidy as pi user not root
Does the same solution work?
sudo pip install mopidy-local-sqlite should work. Another option on Debian/Ubuntu would be installing from apt.mopidy.com: https://docs.mopidy.com/en/latest/installation/debian/
Just to be clear for anyone else that lands here.
I had the same issue. I had to run the mopidy as pi user not root
We suggest and provide documentation for running Mopidy as:
pi
when using Raspbian.There is no requirement to run Mopidy as the root
user and in general you should avoid running things as root
where possible.
When you run Mopidy as a service you must be sure to install anything from PyPI in such a way that the service user (mopidy
) can find it. Just as @tkem said, normally that's the case of using sudo pip install <SOME PACKAGE>
. Or alternatively, installing the package(s) using your package manager i.e. sudo apt install <SOME PACKAGE>
.
Hi,
I'm not an expert so sorry if I'm asking for help in a wrong place. I installed Mopidy and Mopidy-local-sqlite on Lubuntu. I've tried and configured them running Mopidy with my user from a Terminal and everything was right. I could create a local library and browsed it using SpotMop sucessfully. When I was happy with everything I configured Mopidy to run as a service but the library was empty. I thought that it could be normal so I tried to create it again with "sudo mopidyctl local scan" but I received the following error:
Running "/usr/bin/mopidy --config /usr/share/mopidy/conf.d:/etc/mopidy/mopidy.conf local scan" as user mopidy INFO Starting Mopidy 2.0.1 INFO Loading config from builtin defaults INFO Loading config from /etc/mopidy/mopidy.conf INFO Loading config from command line options INFO Enabled extensions: mopify, spotify, mpd, http, stream, spotmop, m3u, softwaremixer, file, local-images, local INFO Disabled extensions: none ERROR Local library sqlite not found
I tried uninstalling and installing again local-sqlite using pip but nothing changed.
My /etc/mopidy/mopidy.conf lines related to this are:
[core] cache_dir = /var/cache/mopidy config_dir = /etc/mopidy data_dir = /var/lib/mopidy ....... [local-sqlite] enabled = true
[local] library = sqlite data_dir = /var/lib/mopidy/local media_dir = /home/garoto/Música/Musica scan_follow_symlinks = true
Thanks in advance.