Pytick or Invest with Fedora 6



Hi - I am running Fedora 6 and Gnome desktop. I can not seem to get
Invest or Pytick to work. The Invest icon just sits there in the panel,
but does not display anything. Clicking on the down arrow does nothing.
When I run pytick, I get the following errors.

$ pytick
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/pytick.py", line 385, in close_cb
self.update_cb(None, self.stockStore)
File "/usr/lib/python2.4/site-packages/pytick.py", line 401, in
update_cb
self.update()
File "/usr/lib/python2.4/site-packages/pytick.py", line 305, in update
self.tracker.update()
File "/usr/lib/python2.4/site-packages/pytick.py", line 57, in update
lines = self.urlfile.open(url).readlines()
File "/usr/lib/python2.4/urllib.py", line 190, in open
return getattr(self, name)(url)
File "/usr/lib/python2.4/urllib.py", line 322, in open_http
return self.http_error(url, fp, errcode, errmsg, headers)
File "/usr/lib/python2.4/urllib.py", line 339, in http_error
return self.http_error_default(url, fp, errcode, errmsg, headers)
File "/usr/lib/python2.4/urllib.py", line 345, in http_error_default
raise IOError, ('http error', errcode, errmsg, headers)
IOError: ('http error', 301, 'Moved Permanently', <httplib.HTTPMessage
instance at 0xb7c3edac>)
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/pytick.py", line 455, in
conf_destroy_cb
self.close_cb(obj, data)
File "/usr/lib/python2.4/site-packages/pytick.py", line 385, in close_cb
self.update_cb(None, self.stockStore)
File "/usr/lib/python2.4/site-packages/pytick.py", line 401, in
update_cb
self.update()
File "/usr/lib/python2.4/site-packages/pytick.py", line 305, in update
self.tracker.update()
File "/usr/lib/python2.4/site-packages/pytick.py", line 57, in update
lines = self.urlfile.open(url).readlines()
File "/usr/lib/python2.4/urllib.py", line 190, in open
return getattr(self, name)(url)
File "/usr/lib/python2.4/urllib.py", line 322, in open_http
return self.http_error(url, fp, errcode, errmsg, headers)
File "/usr/lib/python2.4/urllib.py", line 339, in http_error
return self.http_error_default(url, fp, errcode, errmsg, headers)
File "/usr/lib/python2.4/urllib.py", line 345, in http_error_default
raise IOError, ('http error', errcode, errmsg, headers)
IOError: ('http error', 301, 'Moved Permanently', <httplib.HTTPMessage
instance at 0xb53dd26c>)

If this is not the correct newsgroup to post this question to, please
advise. I have not posted it anywhere else.

Thanks for any suggestions.

Ed Doyle
.



Relevant Pages

  • Re: urlretrieve() failing on me
    ... destination = normalize('/'.format(self._info.outdir, ... return self.http_error_default(url, fp, errcode, errmsg, headers) ...
    (comp.lang.python)
  • "HTTP error -1" from urllib2
    ... Traceback: ... return self.http_error_default(url, fp, errcode, errmsg, headers) ... This fails identically using Python 2.4 on a Windows desktop and on Python 2.5 ...
    (comp.lang.python)
  • Re: How can I get the content of a web site using http library
    ... But my question is how can I do a 'GET' request without putting the '/ ... errcode, errmsg, headers = h.getreply ... You may want to go with the urllib module instead. ...
    (comp.lang.python)