Bug#854962: mpd-sima: Error with mpd >= 0.20: "got multiple values for keyword argument 'duration'"

2017-02-12 Thread Geoff
Package: mpd-sima
Version: 0.14.1-2
Severity: important
Tags: patch upstream

Dear Maintainer,

   * What led up to the situation?
   Running mpd-sima on MPD server >= 0.20

   * What was the outcome of this action?
   Running against MPD server > 0.20 raises an exception:

   TypeError: format() got multiple values for keyword argument
   'duration'

Cheers

-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (990, 'testing'), (600, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages mpd-sima depends on:
ii  adduser  3.115
ii  init-system-helpers  1.47
ii  lsb-base 9.20161125
ii  python3-musicpd  0.4.1-1
ii  python3-requests 2.12.4-1
pn  python3:any  

mpd-sima recommends no packages.

Versions of packages mpd-sima suggests:
ii  mpd  0.19.21-1

-- no debconf information
diff --git a/sima/lib/track.py b/sima/lib/track.py
index 10f2bdc..859cfa9 100644
--- a/sima/lib/track.py
+++ b/sima/lib/track.py
@@ -38,6 +38,7 @@ class Track:
 """
 
 def __init__(self, file=None, time=0, pos=-1, **kwargs):
+'duration' in kwargs and kwargs.pop('duration')
 self.title = self.artist = self.album = self.albumartist = ''
 self.musicbrainz_artistid = self.musicbrainz_albumartistid = None
 self.pos = int(pos)
___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers

Bug#825561: mpd-sima: leaves statoverrides after purge, breaking dpkg

2016-05-31 Thread Geoff

Ack.

A fixed has been commited to alioth git repo.


Le 27/05/2016 21:50, Andreas Beckmann a écrit :

Package: mpd-sima
Version: 0.14.1-1
Severity: serious
User: debian...@lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package fails to
install, purge, and install again.
[…]


___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers

Bug#803957: mpd-sima: Warnings about wrong musicbrainz ids for tracks with multiple artists on compilations

2015-11-04 Thread Geoff
Hi Knut,

Thanks very much for the report.
The issue should be fixed upstream in the dev branch.
I made a build out of it, if you want to test it:

http://media.kaliko.me/src/sima/ci/

Cheers

03/11/2015 17:17, Knut Esztermann wrote :
> […]
> I'm getting warnings like this:
> 
> 2015-11-02 13:20:33 WARNING: Wrong mbid Signum feat. 
> Katana:ea3b707a-7616-487f-a7d7-81ac947fd146, 
> fd3d7068-ff2b-413d-800e-091cabba7ab1
> 
> They appear on tracks which have multiple artists (multiple
> musicbrainz_artistids, to be precise).
> 
> 
>* What led up to the situation?
> 
> Playing, or having matching artists in the library, which have
> multiple musicbrainz_artistids and appear on Various Artists
> compilations (so the album artist is ignored).
> 
>* What exactly did you do (or not do) that was effective (or
>  ineffective)?
> 
> The attached patch helped to ignore all but the first mbids (as it
> already is done with the album artists).
> 
>* What was the outcome of this action?
> 
> No more warnings.



signature.asc
Description: OpenPGP digital signature
___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers

Bug#801136: mpd-sima: Troublesome with proxies

2015-10-10 Thread Geoff
Hi Chris,

Thanks very much for your report :)

Two issues then :

[packaging] http proxies env. var should be exposed when using
systemd/SystV.

[upstream] the http client should actually use them ^^
The http client bug was forwarded upstream, the issue is
identified/nearly fixed. Python requests is actually not honoring
HTTP_PROXY because of the use of the lower level API in the http client
which in turn is not propagating environment variables…

I'll try to fix this as soon as I can (I'm also the upstream developer).

Thanks again.
Geoff

The 06/10/2015 17:46, Chris Chiappa wrote :
> […]
> Behind a proxy, I've found it very difficult to get mpd-sima to use it
> for last.fm access.  python-requests documentation at
> http://docs.python-requests.org/en/latest/ says it should pay
> attention to the HTTP_PROXY and HTTPS_PROXY environment variables.  I
> created /etc/systemd/system/mpd-sima.service.d/override.conf
> with
> 
> [Service]
> Environment="HTTP_PROXY=http://proxy.company.com:80;
> Environment="HTTPS_PROXY=http://proxy.company.com:80;
> 
> and restarted mpd-sima.  In /proc//environ I can see both
> environment variables, but from both strace and mpd-sima's log I can
> see that it's failing to connect to last.fm.  I was able to get it to
> work by hacking fetch_ws in http.py and manually specifying proxies:
> 
> @Throttle(WAIT_BETWEEN_REQUESTS)
> def fetch_ws(self, prepreq):
> proxies = {
> "http"  : "http://proxy.company.com:80;,
> "https" : "http://proxy.company.com:80;
> }
> """fetch from web service"""
> sess = Session()
> sess.proxies = proxies
> resp = sess.send(prepreq, timeout=SOCKET_TIMEOUT)
> ...
> 
> but that's obviously not the right way to do it.  Not being a python
> hacker I'm not sure how to tell why the envrironment variables aren't
> working, but it seems like having some better way of configuring
> proxies might be desirable anyhow.



signature.asc
Description: OpenPGP digital signature
___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers

Bug#754557: mpd-sima: unstable. keeps crashing.

2014-08-22 Thread Geoff
Hi,

Thanks for reporting.

12/07/2014 13:30, A3igner wrote :
 mpd-sima keeps crashing. i cannot install 0.12 through apt-get. can you 
 update the archive?
 there is no newer version available. 0.12 is the stable release.

Can you provide more details about the crash?

How do you run mpd-sima?
What command did you issue?
An init script startup with root or calling mpd-sima from a regular user 
account?

mpd-sima should log about the error, at least the python traceback should appear
somewhere, log file or stdout/stderr.
If run via init script, the log should be in /var/log/mpd-sima
Please post report it in order to have more information to diagnose the problem.

Regarding the new version, I'm aware of it, a new package is ready for testing.
I might backport it for stable, but not in the near future, better try the
source [0] if you want 0.12.2 running on debian wheezy.

[0] http://kaliko.me/code/mpd-sima

Cheers,
Geoff

___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers


Bug#646682: Possible work-around

2011-12-06 Thread Geoff Clements
As I understand it (and I may be wrong so please put me right if I am) the 
problem is caused by the glitch-free mode of pulseaudio. In order for  
glitch-free to work properly a responsive kernel is needed, i.e. latency in 
the order of a few milliseconds. In order to get this the kernel needs to be 
compiled with pre-empt enabled and HZ=1000.

As I understand it Debian does not compile its stock kernels with these 
settings. So we need to turn off  glitch-free and go back to the way PA used 
to do its processing. This can be done by editing:

/etc/pulse/default.pa

Find the line like this:

load-module module-udev-detect

and append tsched=0 to the end so that it looks like this:

load-module module-udev-detect tsched=0

Re-start your PC and see if this helps.

-- 
Geoff



___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers