nhrx / mpdc

A music client for MPD aimed at helping you to feed and manipulate your playlist with great flexibility
http://nhrx.org/mpdc/
MIT License
9 stars 3 forks source link

mpd.ConnectionError: Connection lost while reading line #3

Closed grirgz closed 11 years ago

grirgz commented 11 years ago

Hi, I've just installed mpdc, I followed the installing instructions on the homepage, I checked twice that the host and port of MPD are correctly set and mpd is running.

When I run any of the commands, I get :

ggz@ggzor:~/code/python/mpdc$ mpdc-playlist Traceback (most recent call last): File "/usr/local/bin/mpdc-playlist", line 9, in load_entry_point('MPDC==1.1', 'console_scripts', 'mpdc-playlist')() File "/usr/local/lib/python3.2/dist-packages/distribute-0.6.34-py3.2.egg/pkg_resources.py", line 343, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/local/lib/python3.2/dist-packages/distribute-0.6.34-py3.2.egg/pkg_resources.py", line 2308, in load_entry_point return ep.load() File "/usr/local/lib/python3.2/dist-packages/distribute-0.6.34-py3.2.egg/pkg_resources.py", line 2014, in load entry = import(self.module_name, globals(),globals(), ['name']) File "/usr/local/lib/python3.2/dist-packages/MPDC-1.1-py3.2.egg/mpdc/mpdc_playlist.py", line 7, in from mpdc.initialize import mpd File "/usr/local/lib/python3.2/dist-packages/MPDC-1.1-py3.2.egg/mpdc/initialize.py", line 77, in mpd.update_cache() File "/usr/local/lib/python3.2/dist-packages/MPDC-1.1-py3.2.egg/mpdc/libs/mpdhelper.py", line 201, in update_cache self.get_all_songs_tags(update=True) File "/usr/local/lib/python3.2/dist-packages/MPDC-1.1-py3.2.egg/mpdc/libs/mpdhelper.py", line 105, in get_all_songs_tags for song in self.mpdclient.listallinfo(): File "/usr/local/lib/python3.2/dist-packages/python_mpd2-0.5.0-py3.2.egg/mpd.py", line 569, in decorator return wrapper(self, name, args, bound_decorator(self, returnValue)) File "/usr/local/lib/python3.2/dist-packages/python_mpd2-0.5.0-py3.2.egg/mpd.py", line 228, in _execute return retval() File "/usr/local/lib/python3.2/dist-packages/python_mpd2-0.5.0-py3.2.egg/mpd.py", line 564, in decorator return function(self, _args, *_kwargs) File "/usr/local/lib/python3.2/dist-packages/python_mpd2-0.5.0-py3.2.egg/mpd.py", line 394, in _fetch_database return self._fetch_objects(["file", "directory", "playlist"]) File "/usr/local/lib/python3.2/dist-packages/python_mpd2-0.5.0-py3.2.egg/mpd.py", line 376, in _fetch_objects return self._wrap_iterator(self._read_objects(delimiters)) File "/usr/local/lib/python3.2/dist-packages/python_mpd2-0.5.0-py3.2.egg/mpd.py", line 340, in _wrap_iterator return list(iterator) File "/usr/local/lib/python3.2/dist-packages/python_mpd2-0.5.0-py3.2.egg/mpd.py", line 298, in _read_objects for key, value in self._read_pairs(): File "/usr/local/lib/python3.2/dist-packages/python_mpd2-0.5.0-py3.2.egg/mpd.py", line 280, in _read_pairs pair = self._read_pair(separator) File "/usr/local/lib/python3.2/dist-packages/python_mpd2-0.5.0-py3.2.egg/mpd.py", line 268, in _read_pair line = self._read_line() File "/usr/local/lib/python3.2/dist-packages/python_mpd2-0.5.0-py3.2.egg/mpd.py", line 253, in _read_line raise ConnectionError("Connection lost while reading line") mpd.ConnectionError: Connection lost while reading line

nhrx commented 11 years ago

Hi,

It looks like MPD has too much data to send to mpdc when it tries to fetch all your songs. So you should try with a larger value for max_output_buffer_size in your MPD configuration file, then kill MPD and restart it.

grirgz commented 11 years ago

Thank you, it work now =)