Hey, this is Python! I can edit files in /usr/share/software-center/softwarecenter/ to debug the issue, no building needed.
I was wrong: on_screenshot_thumbnail_clicked() doesn't appear to be used at all. I'm getting an IOError from urllib at view/widgets/imagedialog.py line 152:
Traceback (most recent call last):
File "/usr/share/software-center/softwarecenter/view/widgets/imagedialog.py", line 147, in _fetch
self._progress)
File "/usr/lib/python2.6/urllib.py", line 93, in urlretrieve
return _urlopener.retrieve(url, filename, reporthook, data)
File "/usr/lib/python2.6/urllib.py", line 239, in retrieve
fp = self.open(url, data)
File "/usr/lib/python2.6/urllib.py", line 207, in open
return getattr(self, name)(url)
File "/usr/lib/python2.6/urllib.py", line 346, in open_http
h.endheaders()
File "/usr/lib/python2.6/httplib.py", line 908, in endheaders
self._send_output()
File "/usr/lib/python2.6/httplib.py", line 780, in _send_output
self.send(msg)
File "/usr/lib/python2.6/httplib.py", line 739, in send
self.connect()
File "/usr/lib/python2.6/httplib.py", line 720, in connect
self.timeout)
File "/usr/lib/python2.6/socket.py", line 547, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
IOError: [Errno socket error] [Errno -2] Name or service not known
Hey, this is Python! I can edit files in /usr/share/ software- center/ softwarecenter/ to debug the issue, no building needed.
I was wrong: on_screenshot_ thumbnail_ clicked( ) doesn't appear to be used at all. I'm getting an IOError from urllib at view/widgets/ imagedialog. py line 152:
Traceback (most recent call last): software- center/ softwarecenter/ view/widgets/ imagedialog. py", line 147, in _fetch python2. 6/urllib. py", line 93, in urlretrieve retrieve( url, filename, reporthook, data) python2. 6/urllib. py", line 239, in retrieve python2. 6/urllib. py", line 207, in open python2. 6/urllib. py", line 346, in open_http python2. 6/httplib. py", line 908, in endheaders _send_output( ) python2. 6/httplib. py", line 780, in _send_output python2. 6/httplib. py", line 739, in send python2. 6/httplib. py", line 720, in connect python2. 6/socket. py", line 547, in create_connection
File "/usr/share/
self._progress)
File "/usr/lib/
return _urlopener.
File "/usr/lib/
fp = self.open(url, data)
File "/usr/lib/
return getattr(self, name)(url)
File "/usr/lib/
h.endheaders()
File "/usr/lib/
self.
File "/usr/lib/
self.send(msg)
File "/usr/lib/
self.connect()
File "/usr/lib/
self.timeout)
File "/usr/lib/
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
IOError: [Errno socket error] [Errno -2] Name or service not known
The url is http:// screenshots. ubuntu. com/screenshot- with-version/ liferea/ 1.6.3-1ubuntu4 and can be opened successfully in a web browser. I'm confused as to why this happens, since
$ python NamedTemporaryF ile() urlretrieve( url, location.name) tmp/tmphXaKEv' , <httplib. HTTPMessage instance at 0x9f3078c>)
>>> import urllib
>>> location = tempfile.
>>> urllib.
('/
works fine.