Trying to install mopidy on sailfishos



I am trying to install mopidy on my sailfish phone (oneplus one using a community port).
I did (as root):
pip install -U mopidy
pip install -U gi
pip install -U Mopidy-MusicBox-Webclient

Also had to install pygobject2 and build python-gst myself. Now mopidy starts, musicbox works, I can browse the list from the somafm extension but when I try to play a stream I get a stack trace:

File “/usr/lib/python2.7/site-packages/mopidy/audio/”, line 84, in _setup_pipeline
src = Gst.Element.make_from_uri(Gst.URIType.SRC, uri)
TypeError: make_from_uri() takes exactly 3 arguments (2 given)

Can anybody point me in a direction to solve this?


If memory serves that’s when the pygst bindings are missing. I think I created a github issue about trying to better detect that error case but I can’t find it right now. If you can find it you may get some hints about where the files are expected to be.


Thanks for your response. I cannot find what you mean. Besides how can those bindings be missing when the trace shows Gst is there only the function is expected to be called differently. But I have to confess I know nothing of python.



I’m not saying it is that, but some gstreamer stuff is missing. Maybe the required elements are compile options and you didn’t specify them? I’m really just guessing.

Edit. Actually it take that back. I’m pretty sure it’s exactly what I said. The 3rd argument is optional, the overrides let you omit that argument when calling from python. Your install is broken.


Yes I am pretty sure the installation is broken. Not mopidy.

I followed your guess and now I suspect the pygobject2 package for sailfishos is for gstreamer-0.10 even though gstreamer-1.0 is used for the rest. Will try to build a newer version.


Newer version of pygobject (3.10.2 -> 3.15.91) makes mopidy work better.
Also needed to enable pulseaudio (#configure-pulseaudio).
Now I have to find out why I still do not get any sound.


mopidy sink was muted.


Hey ! How did you install pygobject 3.15.91 on sailfish ? I tried to compile it but it does’t find autoconf-archive. I tried to compile autoconf-archive but it fails with " rule to make target ax_prog_date.texi', needed’" (I tried both tar and git version, tar version doesn’t even do anything (Nothing to do for target all-am)