I've been running into a recurring error, but this has more to do with Beautiful Soup and not the gui itself. The problem seems to be that, whenever there's a connection timeout, for whatever reason, BS halts and the gui presents the option to quit (mind that I'm no programmer, I'm just relating my experience as an user). This wouldn't be a problem if my collection was small, as I would probably get it right some time, but since mine streches back to 2004, whenever the error occurs, I have to try to download the whole thing again from the beginning. I had this problem with the cli lastscrape as well.
As I see it, an elegant way of bypassing this would be by having an option to continue from the last time, without starting from scratch - you are to overwrite an existing file. Do you want to continue from the last session or overwrite the file?. Something like this. Does this make any sense? :D Here's the traceback: Traceback (most recent call last): File "/home/henriquemaia/Desktop/lastscrape-beta/gui.py", line 339, in run sleep_func=self.sleep): File "/home/henriquemaia/Desktop/lastscrape-beta/lastscrape.py", line 80, in fetch_tracks for artist, track, timestamp in tracks: File "/home/henriquemaia/Desktop/lastscrape-beta/lastscrape.py", line 32, in parse_page soup = BeautifulSoup(urllib2.urlopen(page), File "/usr/lib/python2.6/urllib2.py", line 124, in urlopen return _opener.open(url, data, timeout) File "/usr/lib/python2.6/urllib2.py", line 389, in open response = meth(req, response) File "/usr/lib/python2.6/urllib2.py", line 502, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.6/urllib2.py", line 421, in error result = self._call_chain(*args) File "/usr/lib/python2.6/urllib2.py", line 361, in _call_chain result = func(*args) File "/usr/lib/python2.6/urllib2.py", line 597, in http_error_302 return self.parent.open(new) File "/usr/lib/python2.6/urllib2.py", line 383, in open response = self._open(req, data) File "/usr/lib/python2.6/urllib2.py", line 401, in _open '_open', req) File "/usr/lib/python2.6/urllib2.py", line 361, in _call_chain result = func(*args) File "/usr/lib/python2.6/urllib2.py", line 1130, in http_open return self.do_open(httplib.HTTPConnection, req) File "/usr/lib/python2.6/urllib2.py", line 1103, in do_open r = h.getresponse() File "/usr/lib/python2.6/httplib.py", line 950, in getresponse response.begin() File "/usr/lib/python2.6/httplib.py", line 390, in begin version, status, reason = self._read_status() File "/usr/lib/python2.6/httplib.py", line 354, in _read_status raise BadStatusLine(line) BadStatusLine Thanks, Henrique On Tue, May 26, 2009 at 11:54, Petr Viktorin <[email protected]> wrote: > > The GUI version looks great. Nice work. Where do I report bugs? Here? > > > > > I think here is fine – if not, we get thrown out :) > II already got a few reports on my personal e-mail. They're fine there, > too. > Any way you do it, please report them. That's what betas are for. > > This is the first program I'm pushing out to the world (as opposed to a few > geek friends), so there are quite a few hiccups, but I'm trying my best... > > [///] > _______________________________________________ > Libre-fm mailing list > [email protected] > http://lists.autonomo.us/mailman/listinfo/libre-fm >
_______________________________________________ Libre-fm mailing list [email protected] http://lists.autonomo.us/mailman/listinfo/libre-fm
