Re: urlopen errors in script

2009-08-19 Thread Sleepy Cabbage
On Tue, 18 Aug 2009 13:05:03 +, Sleepy Cabbage wrote: > Thanks for the time you've spent anyway Peter. I have superkaramba > installed and the rest of the script is running fine, it's only when I > put the urlopen part in that it comes back with errors. The quotes are > just to make it readabl

Re: urlopen errors in script

2009-08-18 Thread Sleepy Cabbage
Thanks for the time you've spent anyway Peter. I have superkaramba installed and the rest of the script is running fine, it's only when I put the urlopen part in that it comes back with errors. The quotes are just to make it readable on here as my first attempt at posting muted the text. -- h

Re: urlopen errors in script

2009-08-18 Thread Peter Otten
Sleepy Cabbage wrote: > This is the script up to where the error seems to fall: > > "#!/usr/bin/env superkaramba" > "# -*- coding: iso-8859-1 -*-" > > "import karamba" > "import subprocess" > "from subprocess import Popen, PIPE, STDOUT, call" > "import urllib" > "from urllib import urlopen" > >

Re: urlopen errors in script

2009-08-18 Thread Sleepy Cabbage
On Tue, 18 Aug 2009 13:21:59 +0200, Peter Otten wrote: > Sleepy Cabbage wrote: > >> I'm scripting a superkaramba theme using python and have intgrated >> output from amarok. I have also would like to show the artist and song >> title from a radio stream i've added to my playlist. >> >> If I open

Re: urlopen errors in script

2009-08-18 Thread Peter Otten
Sleepy Cabbage wrote: > I'm scripting a superkaramba theme using python and have intgrated output > from amarok. I have also would like to show the artist and song title from > a radio stream i've added to my playlist. > > If I open a python console and add the following: > > ">>>import urllib2"

urlopen errors in script

2009-08-18 Thread Sleepy Cabbage
I'm scripting a superkaramba theme using python and have intgrated output from amarok. I have also would like to show the artist and song title from a radio stream i've added to my playlist. If I open a python console and add the following: ">>>import urllib2" ">>>from urllib2 import urlopen" ">

urlopen errors in script

2009-08-18 Thread Sleepy Cabbage
I'm scripting a superkaramba theme using python and have intgrated output from amarok. I have also would like to show the artist and song title from a radio stream i've added to my playlist. If I open a python console and add the following: >>>import urllib2 >>>from urllib2 import urlopen >>>now