severity 639091 grave tags 639091 +pending thanks The Wanderer <[email protected]> writes:
> On my system, moosic now dies on launch, with the following output: > > ================ > Traceback (most recent call last): > File "/usr/bin/moosic", line 6, in <module> > main(sys.argv) > File "/usr/lib/python2.6/dist-packages/moosic/client/cli/main.py", line 243, > in main > moosic.no_op() > File "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__ > return self.__send(self.__name, args) > File "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request > verbose=self.__verbose > File "/usr/lib/python2.6/xmlrpclib.py", line 1237, in request > errcode, errmsg, headers = h.getreply() > AttributeError: HTTPConnection instance has no attribute 'getreply' > ================ > > That error appears to be the result of a change which arose in Python > 2.7. However, since moosic's shebang is "#!/usr/bin/python", and > python-minimal currently installs that as a symlink to 'python2.6', and > the Python libraries listed in the traceback are from python2.6, moosic > is apparently being run with Python 2.6; therefore this error should not > be appearing. > > I have now seen this behavior on two different systems, both of which > track testing. > > I first saw this error in moosicd, on a system where Python 2.7 was not > installed. Installing the python2.7 package made the error go away for > moosicd, but it still occurs for moosic itself. > > If I explicitly launch moosic with python2.7, rather than relying on > the shebang, it runs fine. > > This is very probably a bug in one or more of the Python packages, such > that the correct versions of the Python libraries are not always being > used. However, since I have no idea which package(s) are at fault, and > since the problem could be "fixed" by adding a dependency on python2.7 > and changing the shebang line, I am reporting it here. > > This problem could be worked around at the user end if the > '/usr/bin/python' symlink were handled by the alternatives system. > However, since it is instead installed explicitly by python-minimal, > that is not an advisable solution. > > If there is anything I can do to help track down and resolve the > problem, please do not hesitate to let me know. I use moosic daily, and > having to jump through hoops to get it to be usable is exceedingly > inconvenient. This is caused by a change in version 1.5.5 to support Python 2.7. Without additional work the situation is that due to an incompatibility in the Python standard library (xmlrpclib, to be exact) moosic can either support Python 2.7 or 2.6 but not both at the same time. I have contacted upstream about the problem, and will very soon upload an updated package which makes moosic require Python 2.7. -- Arto Jantunen -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

