Sixthhokage2 / remuco

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

remuco-mpd problem on Debian Lenny #120

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What is your environment?
* OS: Debian Lenny
* Remuco version: 0.9.3
* Client device: None yet
* Player: MPD

What's the matter?

I've installed remuco-mpd but when I run remuco-mpd, I get the following output:

Log output will be stored in /home/portalert/.cache/remuco/mpd.log
Contribute to Remuco: Please run 'remuco-report' once a client has connected, 
thanks!
Traceback (most recent call last):
  File "/usr/bin/remuco-mpd", line 615, in <module>
    pa = MPDAdapter()
  File "/usr/bin/remuco-mpd", line 76, in __init__
    search_mask=SEARCH_MASK)
  File "/usr/lib/python2.5/site-packages/remuco/adapter.py", line 471, in __init__
    self.config = config.Config(self.__name)
  File "/usr/lib/python2.5/site-packages/remuco/config.py", line 177, in __init__
    cp = ConfigParser.RawConfigParser(_DEFAULTS, _odict)
TypeError: __init__() takes at most 2 arguments (3 given)

MPD works well and, reading the above output, I would say that there is a 
problem with my config file. Here is my remuco.cfg file:

[DEFAULT]
custom-mpd-host = localhost
custom-mpd-port = 6600
custom-mpd-music-dir = /home/Multimedia/Musica
custom-mpd-password =
bluetooth-enabled = 0
wifi-enabled = 1
wifi-port = 34271
ping-interval = 15
file-browser-use-xdg-user-dirs = 0 
file-browser-root-dirs = /home/Multimedia/Musica
file-browser-show-extensions = 0
file-browser-enabled = 0
config-version = 1.3
log-level = INFO
player-encoding = UTF8

Prior to the current problem, I had to create an empty user-dirs.dirs file in 
order to avoid another warning: "unable to load user-dirs.dirs".

Thanks in advance for your help,

Daniel.

Original issue reported on code.google.com by usapi...@gmail.com on 25 Aug 2010 at 5:55

GoogleCodeExporter commented 9 years ago
As a side note, I forgot to say that make install-mpd did not create a 
remuco.cfg file so I had to create it from scratch.

Original comment by usapi...@gmail.com on 25 Aug 2010 at 8:09

GoogleCodeExporter commented 9 years ago
Somewhere between version 0.9.2 and 0.9.3 Remuco has dropped support for Python 
2.5, i.e. you need Python 2.6 or 2.7.

A dirty hack to use Remuco anyway in your system is to change line 177 in 
remuco/config.py from

cp = ConfigParser.RawConfigParser(_DEFAULTS, _odict)

to

cp = ConfigParser.RawConfigParser(_DEFAULTS)

But there may be other incompatibilities and for sure there will be more in 
future releases. The safe way is to upgrade to Python 2.6.

BTW .. a configuration file does not get created on installation but when 
remuco-mpd runs the first time (more or less successfully).

Original comment by obensonne@googlemail.com on 30 Aug 2010 at 2:47

GoogleCodeExporter commented 9 years ago

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