-
Notifications
You must be signed in to change notification settings - Fork 48
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
mopidy 3.x breaks installation #9
Comments
Migrating our Mopidy packages to Python 3/Mopidy 3.0.0 is on my TODO list. Mopidy Raspberry GPIO at least has a pending PR: pimoroni/mopidy-raspberry-gpio#3 |
@kingosticks looking into getting everything updated, tested and pushed to support Mopidy 3.x.x. However I've hit a roadblock I updated to Mopidy 3.0.1 and configuration seems to have broken. Mopidy sees the following config:
Yet the config file reads:
And, indeed, no hostname is seen when starting Mopidy:
Am I being stupid? |
@Gadgetoid not sure if this answers your question or not but here is the working config I was using for mopidy 3.0.1 before I decided to downgrade:
This may be a bug in mopidy 3.x but it would seem that It should also be noted that I had to explicitly add |
also @Gadgetoid if you would like me to pull together a PR with the changes I made to the installation script to lock mopidy package to 2.3.1-1, let me know. |
So, is it the comment for the http/hostname that breaks it? Also, looks like you need to install Mopidy-Mpd. |
I was working on this issue with @dkinon yesterday, and I definitely made progress in getting things working with 3.x by removing the mid-line comment on the http hostname. |
@dkinon that might be a good short-term fix while I get everything migrated. A PR would be appreciated if you have the time, thank you! |
Can confirm it's the comment on the end of the http/hostname that breaks it. Is this something that warrants an upstream bug report? |
Hello, first of all thank you for your work.If I want to set up a pirate audio device with mopidy today what should I do? |
@rCarto Sorry for the delay....I didn't have my Pirate Radio setup to test the work we did over the weekend, so I had to do that first. Good thing, too - it turns out the Spotify plugin, which the install.sh script installs for you, also needs to be pinned to a previous version. So to get this working today, here are the steps I took this morning to get Spotify working. If you don't want to use Spotify, you can check out the other Mopidy extensions and set things up to your own liking after step 6 below. PLEASE NOTE: As of January 3, 2020 11:58 AM PST, the fix has been merged and steps 4 and 5 below are NO LONGER REQUIRED. If you performed step 1 prior to this date and time, please delete, and re-clone the repository.
After the Pi boots, the LCD should have the UI up on it with a web URL to visit to control Mopidy. The URL takes you to the main Mopidy interface on the Pi, so to get the Spotify controls, click the Iris web client link on the page. |
Thank you very much @docmollo ! |
Thank you for weighing in on this @docmollo - it's very appreciated! I will be able to give the Python 3 ports the attention they deserve when I'm back in the office- alas our Pirate Audio launch came at a somewhat awkward time! |
You're welcome, @Gadgetoid! Heh...yeah, you guys have had a pretty insanely busy few months...throw in the holidays and I am surprised your brains haven't haven't melted out of your ears yet. ;) Hopefully when you're all back on the 6th things go smoothly! |
Still plugging away at 3.x.x support and running into more issues making it difficult to test & release. In particular, and what puts my mind at least somewhat at ease -- and in strong favour of version pinning the Python 2.x-compatible releases -- is that Iris does not yet support Mopidy/Python 3.x: jaedb/Iris#356 In the mean time I've started a port of mopidy-pidi to Python 3. |
@Gadgetoid @docmollo here is the PR I promised and Happy New Year! |
@dkinon you're a star! I'll give it a go now. And happy new year! (sorry forgot myself there and had tunnel vision on that juicy PR!) |
I tried an install with the latest install.sh. It includes the modification mentioned by @docmollo above.
I have no knowledge about mopidy - any help is appreciated. |
Thanks a lot docmollo!! |
@exviia you're welcome....but it was a team effort! Hopefully you got things working. @Rocketansky Hmmm....that sounds like your apt sources aren't set up correctly. I haven't tried the install since the changes were merged into the Pimoroni source, but I just checked and the install.sh file that I tested with is exactly like a freshly cloned copy. Steps 4 and 5 in my comment above are now obsolete - you shouldn't need to make any changes to a freshly cloned install.sh file. You could try checking the sha256 checksum of the install.sh file - it should look like this:
If the output of sha256sum doesn't match the above, I would go up a few directories, blow away your cloned copy of the code and do the git clone again. I'll edit my comment above to indicate things are now fixed and add a Tweet to my thread with that info, too. Let me know how it goes. |
Hi Dustin!
Thanks for the quick reply.
I deleted the whole directory and cloned it again.
The result of install.sh is the same as mentioned above.
Then i verified the checksum as you described. Got the same value.
You mentioned a missing apt source. Is it possible that you added one manually that is not in the script?
--
Diese Nachricht wurde von meinem Android Mobiltelefon mit GMX Mail gesendet.Am 04.01.2020, 16:34 schrieb Dustin Mollo <notifications@github.com>:
@exviia you're welcome....but it was a team effort! Hopefully you got things working.
@Rocketansky Hmmm....that sounds like your apt sources aren't set up correctly. I haven't tried the install since the changes were merged into the Pimoroni source, but I just checked and the install.sh file that I tested with is exactly like a freshly cloned copy. Steps 4 and 5 in my comment above are now obsolete - you shouldn't need to make any changes to a freshly cloned install.sh file.
You could try checking the sha256 checksum of the install.sh file - it should look like this:
pi@piaudio:~/temp/pirate-audio/mopidy $ sha256sum install.sh d9ad7b1c7ed5c0a266407e6202c69c7fd62cab0ad8354507c0a65193df5c46f1 install.sh
If the output of sha256sum doesn't match the above, I would go up a few directories, blow away your cloned copy of the code and do the git clone again.
I'll edit my comment above to indicate things are now fixed and add a Tweet to my thread with that info, too. Let me know how it goes.
—You are receiving this because you were mentioned.Reply to this email directly, view it on GitHub, or unsubscribe.
|
@Rocketansky we specifically covered that case in the script so I believe there is something else going on there. You can see in the script that you should end up with /etc/apt/sources.list.d/mopidy.list, does that file exist for you? Please send output from the following commands:
Also please send updated output from the script so we can review it in detail. |
Since you only finding mopidy 2.2.3-1 (the latest currently available in Debian's repo) and not finding mopidy-spotify at all sounds exactly like you do not have |
@kingosticks maybe that is the reason because the script searches for 2.3.1-1. |
@dkinon the file mopidy.list exists in the mentioned directory but has 0 bytes size.
Here the requested output of install.sh: |
@kingosticks we're specifically installing version 2.3.1-1 of mopidy and 3.1.0-0mopidy1 of mopidy-spotify from the mopidy apt repo due to the switch to python 3 in December. @Rocketansky The mopidy sources file being zero bytes is your problem. You'll need to either figure out what's going on with your system that's causing that file to not be written by the install script at line 85, or start with a fresh install of raspbian buster. |
Very sorry, I was in la-la land and wrote a complete load of garbage earlier. What I should have said is since you are not finding mopidy-spotify at all (it's not available in Debian's repo), that sounds exactly like you do not have To be totally clear, @Rocketansky, the version in the script is correct. You should remove |
@kingosticks haha no worries! I am considering myself still on Holiday Time until I go back to work on Monday morning, so just chalk it up to that, I say! I'm surprised I'm as lucid in this thread as I am given that ;) |
@kingosticks thx for the hint to delete the file mopidy.list. That brought me one step further. But still the script did not finish successfully. |
It sounds like Iris is very nearly ready for a Python 3 release. That being said, the other two existing Python 3 compatible webclients do certainly support selecting music. But I do admit that musicbox-webclient isn't half as slick as Iris and clearly a lot of love went into that project. With that mind, can we help anywhere with porting the Pirate Audio extensions? Is there a work in progress branch to continue from? Is there any questions or specific issues we can help with? I take it you're happy to workaround that config inline comment regression. |
@Gadgetoid if you don't have a problem with me storing the required debs for mopidy This only needs to work until we get the remaining bits of python3 support figured out and then we can decide whether to go back to the mopidy repo (which is admittedly bleeding edge) or go with some other solution to install mopidy. |
@dkinon I might be able to host the deb files on our own domain, so at least we wont gum GitHub up with binary files- but yes, something along those lines I think is necessary in the short term or we're going to have people bouncing off this installer and all the mayhem that entails. @kingosticks thank you- I think I've got everything basically ready for Mopidy 3.x / Python 3.x, but lack of Iris for Mopidy 3.x meant I couldn't finish testing and satisfy myself they were ready to ship. (and couldn't update this installer, since we rely heavily on Iris to provide the UI)
|
@dkinon possible road block- where do we obtain a set of previous Mopidy debs? I've done some frantic Googling and, as near as I can tell, the only source was their repository, and I can't seem to find a mirror or other source apart from - hypothetically- a local cache on a Pi perhaps. Maybe using the debian supplied version is the sensible option, though this may present compatibility issues with more recent plugins? Thanks again for your input on this, by the way, I feel stuck between a rock and a hard place with respect to our Mopidy-centric support of Pirate Audio boards. |
Nice, I'll try a give it all a go on mine tonight (with another webclient). Also, I doubt you'll find an extension that requires Mopidy 2.3.x, and won't work just fine on Mopidy 2.2.x. I can't think of any right now. |
@Gadgetoid here is the list of mopidy repo packages I have on my working installation:
I was able to fish those 4 debs out of /var/cache/apt/archives, let me know how you'd like me to deliver them. Also @Gadgetoid @docmollo @jodal, let me know if I'm missing any packages. |
If you could bung them to me that'd be ace! I'll get 'em hosted ASAP. |
Thanks to @dkinon we now have the 2.x packages hosted on get.pimoroni.com, which is the first step to putting together a stand-in installer that will keep us limping along until the whole stack is ready to move over to Mopidy 3.x (hopefully soon!) The files are:
The install script will have to wget these packages and use |
@Gadgetoid I just tested the packages you hosted rather than the mopidy repo (with the latest iris which is still v3.43.0) and it's worked! Thank you very much I had to resolve a slight problem with the GStream alsasink not being installed but that might be unrelated |
The gstreamer1.0-alsa
<https://packages.debian.org/it/sid/gstreamer1.0-alsa> package,
as well as -tools and -pulseaudio, are _recommended_ Mopidy dependencies
and are probably not considered when installing manually like this. You
need that -alsa package if you are specific the alsasink output.
…On Sat, 25 Jan 2020 14:36 Bradley Mason, ***@***.***> wrote:
@Gadgetoid <https://github.com/Gadgetoid> I just tested the packages you
hosted rather than the mopidy repo (with the latest iris which is still
v3.43.0) and it's worked! Thank you very much
I had to resolve a slight problem with the GStream alsasink not being
installed but that might be unrelated
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#9?email_source=notifications&email_token=AAHEHKFQ3T2AMNXEPTWZZ7DQ7RE6FA5CNFSM4KAUF7T2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ45VTY#issuecomment-578411215>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHEHKFHYPLVE3P5HYKHIWLQ7RE6FANCNFSM4KAUF7TQ>
.
|
I'm up and running with the Mopidy 3 versions, everything seems to work great. The only install issue I hit was the following exception
Which was solved by installing |
@kingosticks a good way to resolve dependency issues after installing debs via dpkg is to run |
This was a Mopidy 3 installation using apt, no dpkg here at all. I'm guessing the problem lies with using the older python3-pil Debian package as a way to fulfill the dependencies for newer releases from pip. But I'm just guessing. |
@kingosticks ah, I see that now, apologies. If you can open an issue on the finding with the mopidy project, I'm sure they would appreciate it. |
Sorry I wasn't that clear, python3-pil is/will be a dependency for the Python 3 compatible version of mopidy-pidi, nothing to do with Mopidy itself. |
First of all thank you very much for providing the above packages which solves my problems But now i have issues with nginx. My config:
} iptables drops port 6680. works with below environment: The issue now is, that the clients are loading the right pages, ask for credentials but at this stage Many Thanks in Advance. |
@techcom1 you'd be better off asking your question at https://discourse.mopidy.com/ rather than taking this issue off-topic. Plus it doesn't sound like your problem is anything to do with Pirate Audio. |
@kingosticks |
It looks like Mopidy 3.x support for Iris is imminent - jaedb/Iris#478 (comment) |
dpkg doesn't install any dependencies, that's up to you (or to use |
Groan. I'm not used t going to this kind of extent to side-load packages. I think this whole trick just became redundant though: https://github.com/jaedb/Iris/releases/tag/3.44.0 |
Okay! Here we go again: 0f50e9f NOTE: Mopidy Iris 3.44.0 is not yet available on pypi so this installer will still result in a broken distro, but I'm satisfied that this result is less broken and closer to the end goal than trying to work backwards to Mopidy 2.x. I think it would be nice if either this What I've learned from all of this is- if we wish to create a stable distribution and an easy install path for end-users we should probably just treat Mopidy like firmware and release either a RAMDisk image (ala Pirate Radio) or a full Raspbian installer. |
AppImage would be great for it, not sure if it is viable for ARM |
Thanks! Got it working with the latest install.sh (today 4 hours old) on the latest 2020-02-05-raspbian-buster-lite. It only needed one manual change to /etc/mopidy/mopidy.conf :
This doesn't work for me, I don't get a webinterface at all, I changed 0.0.0.0 into the real IP adress and that worked. Futher, I found https://learn.pimoroni.com/tutorial/sandyj/getting-started-with-pirate-audio to be very useful for the configuration. For local files I did what it says in #19 i.e.:
|
I wonder if the script should include It would also be essential for a RamDisk or Disk Image jukebox setup. |
On December 22, 2019 (6 days ago) mopidy released version 3.0.0 which moves mopidy from python2 to python3. This move breaks the installer since it is designed for python2. Trying to move all mopidy dependencies to python3 is not currently possible due to a lack of python3 support for the Mopidy-PiDi and mopidy-raspberry-gpio python packages. The only way I could get this project/installer to work was to modify the installer to force the latest 2.x version of mopidy:
The text was updated successfully, but these errors were encountered: