Hey Hervé, The replacement line you posted should be:
from urllib importquote from urllib2 import urlopen as only urllib has quote(). Now, I still get an error: Traceback (most recent call last): File "/home/roey/.kde/share/apps/amarok/scripts/SlimserverControl/SlimserverControl.py", line 79, in ? main() File "/home/roey/.kde/share/apps/amarok/scripts/SlimserverControl/SlimserverControl.py", line 74, in main elif "trackChange" in notification or "playing" in notification: play_track(slimserver_ip, slimserver_port, squeezebox_player) File "/home/roey/.kde/share/apps/amarok/scripts/SlimserverControl/SlimserverControl.py", line 49, in play_track result = urlopen(url) File "/usr/lib/python2.4/urllib2.py", line 130, in urlopen return _opener.open(url, data) File "/usr/lib/python2.4/urllib2.py", line 358, in open response = self._open(req, data) File "/usr/lib/python2.4/urllib2.py", line 376, in _open '_open', req) File "/usr/lib/python2.4/urllib2.py", line 337, in _call_chain result = func(*args) File "/usr/lib/python2.4/urllib2.py", line 1021, in http_open return self.do_open(httplib.HTTPConnection, req) File "/usr/lib/python2.4/urllib2.py", line 996, in do_open raise URLError(err) urllib2.URLError: <urlopen error (-2, 'Name or service not known')> - Roey ---------- hleroy;166241 Wrote: > Hello Roey, > > I have googled the error message you sent. I found in forums that this > error may be related to a proxy authentication. Do you have any > http_proxy configured on your computer? > If this is the case, the solution that I saw in forums is: > > replace this line > from urllib import quote, urlopen > > by > from urllib2 import quote, urlopen > > because urllib2 supports proxy authentication. > > I hope it can help you. > > Regards and Happy new Year! > > Hervé > > ps: sorry for taking time to answer, the thread update notification > email went directly in the spam folder. arggh! -- roey ------------------------------------------------------------------------ roey's Profile: http://forums.slimdevices.com/member.php?userid=5735 View this thread: http://forums.slimdevices.com/showthread.php?t=29438 _______________________________________________ discuss mailing list [email protected] http://lists.slimdevices.com/lists/listinfo/discuss
