Re: python version in plugin

Jonathan Matthew <[email protected]>
Newsgroups gmane.comp.gnome.apps.rhythmbox.devel
Message-ID <CAGUdnJkyDbjUs8ntaoajLPe+ZCKvKChiS+Vd9RmeFF509fxvnw@mail.gmail.com>
On Sun, Sep 25, 2011 at 11:30 PM, Ivar Eskerud Smith
<[email protected]> wrote:
> Hi, this might be more of a pure Python question... but:
> I am writing a upnp control point plugin using coherence for rhythmbox so
> that one can send whatever is played to a network mediarenderer, for
> instance a WDTV live. The problem is that on my system (kubuntu natty) I
> have both Python 2.6 and 2.7 installed, and as far as I have understood
> coherence is not tested against Python 2.7, so I`d like to try it with
> Python 2.6. It is Python 2.7 that is chosen when my plugin is run in
> rhythmbox, and I get an error about
> File "/usr/lib/pymodules/python2.6/dbus/service.py", line 252, in
> _method_reply_return
>     reply.append(signature=signature, *retval)
> ValueError: Unable to guess signature from an empty list
>
> How can I specify what modules/versions of Python to use? I know how I can
> check for the python version nr., but that does not help much. I want to
> tell the plugin to use python 2.6 or 2.5, if found.

You can't. Rhythmbox is linked to a specific version of the python
interpreter, and that's the version it uses.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.