Sixthhokage2 / remuco

Automatically exported from code.google.com/p/remuco
1 stars 1 forks source link

MPD adapter fails to connect to MPD #161

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What is your environment?
* OS:Oleg Linux on ASUS WL-HDD
* Remuco version:0.9.5
* Client device:Nokia E65
* Player: MPD 0.15.0

Fails to connect to MPD

see the log

2011-05-23 18:28:33,816 [   INFO] [  config.py  218] remuco version: 0.9.5
2011-05-23 18:28:33,861 [  DEBUG] [ adapter.py 1514] flags: 140F0E1F
2011-05-23 18:28:33,888 [WARNING] [   files.py   41] file system encoding is 
not UTF-8, this may cause problems with file browser features
2011-05-23 18:28:33,944 [   INFO] [   files.py   73] file browser root dirs: 
{'Mp3': '/tmp/harddisk/mp3'} 
2011-05-23 18:28:34,021 [  DEBUG] [ adapter.py  512] init done
2011-05-23 18:28:34,056 [  DEBUG] [ remuco-mpd   85] MPD is at localhost:6600
2011-05-23 18:28:34,230 [   INFO] [ manager.py   57] start player adapter
2011-05-23 18:28:34,383 [  DEBUG] [   remos.py  181] publishing zeroconf service
2011-05-23 18:28:35,817 [  DEBUG] [   remos.py  195] published zeroconf service
2011-05-23 18:28:35,833 [   INFO] [     net.py  422] created wifi server
2011-05-23 18:28:35,938 [  DEBUG] [ adapter.py  544] poll every 2500 milli 
seconds
2011-05-23 18:28:35,957 [  DEBUG] [ adapter.py  548] start done
2011-05-23 18:28:35,988 [  ERROR] [ remuco-mpd  562] failed to connect to MPD: 
[Errno 3] invalid value for ai_flags.
2011-05-23 18:28:36,004 [   INFO] [ manager.py  306] manager stopped internally
2011-05-23 18:28:36,020 [  ERROR] [ manager.py   61] failed to start player 
adapter (failed to connect to MPD)
2011-05-23 18:28:36,038 [   INFO] [ manager.py   73] stop player adapter
2011-05-23 18:28:36,074 [  DEBUG] [     net.py  465] closing wifi server socket
2011-05-23 18:28:36,093 [  DEBUG] [ adapter.py  589] stop done
2011-05-23 18:28:36,129 [  DEBUG] [ remuco-mpd  120] MPD adapter stopped
2011-05-23 18:28:36,143 [   INFO] [ manager.py   79] player adapter stopped

Original issue reported on code.google.com by manuel.p...@smitting.de on 23 May 2011 at 4:35

GoogleCodeExporter commented 9 years ago
I have the same problem. Do you solve it ?
Gian Marco

Original comment by gmb...@gmail.com on 25 Jun 2011 at 4:10

GoogleCodeExporter commented 9 years ago
I have solved the problem.
I've changed the file mpd.py
at line 386
def _connect_tcp(self, host, port):
        try:
            flags = socket._ADDR_OK
                           ^^^^^^^^

Original comment by manuel.p...@smitting.de on 27 Jun 2011 at 9:05

GoogleCodeExporter commented 9 years ago
This seems to be a problem in the MPD Python bindings. Which version of the MPD 
client library are you using?

Original comment by obensonne@googlemail.com on 1 Jul 2011 at 9:06

GoogleCodeExporter commented 9 years ago
I mark it as done (fix is documented).

Original comment by obensonne@googlemail.com on 31 Aug 2011 at 7:48