![]() |
Issue with MPD python library after Moode update - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: Support (https://moodeaudio.org/forum/forumdisplay.php?fid=7) +--- Thread: Issue with MPD python library after Moode update (/showthread.php?tid=4663) |
Issue with MPD python library after Moode update - mancio61 - 01-15-2022 Hi all, here's my first post after severl months of abscence. This morning I updated my system (RPi3 based) to the last Moode Version (I had version 7.0 before). I have a python script continuosly running getting info from MPD , to print on an OLED 16x2 display the info related to the currenly playing track. I try to run from the command line the python script, but the infamous "No module named mpd" message appears. (In the code , the line is simply "from mpd import MPDClient".) Then I try to install the missing library (as done anytime in the past I made a re-installation from scratch of Moode), but without success. I tried: 1) sudo apt-get install python-mpd 2) sudo apt-get install python-mpd2 3) sudo pip install python-mpd 4) sudo pip install python-mpd2 No one of the above ones works. Any ideas? I tried also to make a simple "sudo apt-get install update" then "sudo apt-get install upgrade", but with non success. Any idea? thanks in advance, and Happy New Year to all the forum participants Andrea (from Italy, apologize for bad english) RE: Issue with MPD python library after Moode update - TheOldPresbyope - 01-15-2022 @mancio61 Choice #4 works here in Maryland Code: pi@rpi4b:~ $ sudo pip install python-mpd2 (note that host rpi4b is a moOde 7.6.1 player) As an aside, note that Python 2 is still the default because moOde 7.6.1 is based on RaspiOS/Debian Buster. Code: pi@rpi4b:~ $ python -V This will change with the move to RaspiOS/Debian Bullseye for moOde 8. ETA: If one runs pip3 instead, one gets a module with the same name and different version number Code: pi@rpi4b:~ $ sudo pip3 install python-mpd2 You'll have to work out what you want. Regards, Kent RE: Issue with MPD python library after Moode update - mancio61 - 01-15-2022 Hi Kent, I try all but it fails. I have a suspect to have a network issue. Even the radio (going onto the Internet) don't play at all. Neither a simple "sudo apt-get update"... it fails with the message "couldn't resolve 'archive-raspberrypi.org' the system is perfectly see inside my LAN (e.g. I'm able to play music get from my NAS), but seems to be have issue to go out in the Internet. Before the update to last Moode version it worked perfectly. I'm not a Linux expert, so what I can do to check and fix this issue ? thanks ! Andrea RE: Issue with MPD python library after Moode update - mancio61 - 01-15-2022 ok, I've solved. It was a problem on the router. In the past I had a reserved IP address for the system having a different hostname (it was "moode-streamer). The system after the upgrade , got the default name "moode", it connects with the same IP address and probably I've got conflict at the router level. I remove the reservatio, create the new one, restarted the router and now all it works ! thanks anyway RE: Issue with MPD python library after Moode update - TheOldPresbyope - 01-15-2022 (01-15-2022, 04:54 PM)mancio61 Wrote: ok, I've solved. It was a problem on the router. In the past I had a reserved IP address for the system having a different hostname (it was "moode-streamer). The system after the upgrade , got the default name "moode", it connects with the same IP address and probably I've got conflict at the router level. Nice! |