Error Message in cmd: Traceback (most recent call last): File "wniamp_lastest5_playlist.py", line 25, in <module> response = urllib2.urlopen(request) File "C:\Python25\lib\urllib2.py", line 121, in urlopen return _opener.open(url, data) File "C:\Python25\lib\urllib2.py", line 374, in open response = self._open(req, data) File "C:\Python25\lib\urllib2.py", line 392, in _open '_open', req) File "C:\Python25\lib\urllib2.py", line 353, in _call_chain result = func(*args) File "C:\Python25\lib\urllib2.py", line 1100, in http_open return self.do_open(httplib.HTTPConnection, req) File "C:\Python25\lib\urllib2.py", line 1075, in do_open raise URLError(err) urllib2.URLError: <urlopen error (10053, 'Software caused connection abort')>
My script that works almost perfectly cept when trying to post: import urllib,urllib2 from winamp import * import winamp domain = "http://DOMAINHERE/save_play.php" w = winamp.winamp() w.dumpList() List = getTrackList(r"c:\Program Files\Winamp\winamp.m3u") fList = fixTrackList(List) x=0 playlist = [] while x < 6: if x < (len(fList)-1) or x == (len(fList)-1): if fList[x] != "": e = "%d.%s" % (x,fList[x]) playlist.append(e) else: pass else: pass x = x + 1 ME = "|".join(playlist) send = {'playlist':ME} data = urllib.urlencode(send) request = urllib2.Request(domain,data) response = urllib2.urlopen(request) PL = response.read() if PL == "updated": print "Updated Successful." raw_input("Press anything to close") For some reason its not acting right when trying to run. I get that error message and I never seen anything like it.
-- http://mail.python.org/mailman/listinfo/python-list