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
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
>>> import urllib
>>> location = tempfile.NamedTemporaryFile()
>>> urllib.urlretrieve(url, location.name)
('/tmp/tmphXaKEv', <httplib.HTTPMessage instance at 0x9f3078c>)
works fine.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/675186
Title:
Software-center does not show screenshots
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs