Mailinglist Archive: opensuse-buildservice (239 mails)

< Previous Next >
[opensuse-buildservice] osc r7259 (timeout) depends on Python 2.6
  • From: Peter Poeml <poeml@xxxxxxx>
  • Date: Wed, 6 May 2009 12:32:26 +0200
  • Message-id: <20090506103226.GC30759@xxxxxxx>

poeml@batavia510 ~ % osc rdelete home:poeml:branches:Subversion
Traceback (most recent call last):
File "/suse/poeml/bin/osc", line 12, in <module>
r =
File "/suse/poeml/osc-trunk/osc/", line 38, in run
return prg.main()
File "/suse/poeml/osc-trunk/osc/", line 255, in main
return self.cmd(args)
File "/suse/poeml/osc-trunk/osc/", line 278, in cmd
retval = self.onecmd(argv)
File "/suse/poeml/osc-trunk/osc/", line 394, in onecmd
return self._dispatch_cmd(handler, argv)
File "/suse/poeml/osc-trunk/osc/", line 1084, in _dispatch_cmd
return handler(argv[0], opts, *args)
File "/suse/poeml/osc-trunk/osc/", line 1001, in do_rdelete
elif len(meta_get_packagelist(conf.config['apiurl'], prj)) >= 1 and not
File "/suse/poeml/osc-trunk/osc/", line 1625, in meta_get_packagelist
f = http_GET(u)
File "/suse/poeml/osc-trunk/osc/", line 1552, in http_GET
def http_GET(*args, **kwargs): return http_request('GET', *args,
File "/suse/poeml/osc-trunk/osc/", line 1542, in http_request
fd = urllib2.urlopen(req, data=data, timeout=timeout)
TypeError: urlopen() got an unexpected keyword argument 'timeout'
[1] 9270 exit 1 osc rdelete home:poeml:branches:Subversion

the timeout argument to urllib2.urlopen was introduced with Python 2.6,
as it seems.

One way to work around would be to set socket.setdefaulttimeout(timeout);
possibly only for certain commands; or globally if it doesn't have negative

What do you think?
"WARNING: This bug is visible to non-employees. Please be respectful!"

SUSE LINUX Products GmbH
Research & Development
< Previous Next >
Follow Ups