Mailinglist Archive: opensuse-buildservice (225 mails)
| < Previous | Next > |
Re: [opensuse-buildservice] Problems with osc and gnome-keyring
- From: Marcus Hüwe <suse-tux@xxxxxx>
- Date: Wed, 21 Sep 2011 01:57:29 +0200
- Message-id: <20110920235729.GB4216@linux.uni-paderborn.de>
On 2011-09-20 16:27:35 -0700, Dave Hylands wrote:
fix for it to git master ("osc --no-keyring config..." should be
working now).
Marcus
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx
Hi Marcus,Yes as I said it's only related to "osc config...". I just pushed a
On Tue, Sep 20, 2011 at 2:54 PM, Marcus Hüwe <suse-tux@xxxxxx> wrote:
On 2011-09-20 12:59:21 -0700, Dave Hylands wrote:
Hi,Yes it's a bug which is only related to "osc config...". Do you get a
We're using osc at work, and I've run into an issue that I'm not quite
sure how to deal with.
I work remotely so I tend to use ssh alot. I have a computer in the
office running Ubuntu 11.04. osc --version reports 0.132.5
If I VNC into my computer and start a terminal session then I can use
osc commands like the following without any problems:
212 >osc config general su-wrapper 'sudo'
'general': 'su-wrapper' is set to 'sudo'
However, if I ssh into the same machine (either from my local computer
or by doing ssh localhost from the terminal session in VNC), and issue
the same command, I get:
253 >osc config general su-wrapper 'sudo'
Traceback (most recent call last):
File "/usr/bin/osc", line 21, in <module>
r = babysitter.run(osccli)
File "/usr/lib/python2.7/dist-packages/osc/babysitter.py", line 52, in
run
return prg.main()
File "/usr/lib/python2.7/dist-packages/osc/cmdln.py", line 302, in main
self.postoptparse()
File "/usr/lib/python2.7/dist-packages/osc/commandline.py", line
118, in postoptparse
override_verbose = self.options.verbose)
File "/usr/lib/python2.7/dist-packages/osc/conf.py", line 857, in
get_config
'pass': password,
UnboundLocalError: local variable 'password' referenced before assignment
I'm guessing that this has something to do with the gnome keyring and
some misconfiguration?
I tried setting keyring = 0 (and 1 and commented out) in my ~/.oscrc
file, but it doesn't seem to have any effect.
I've also tried running osc with --no-gnome-keyring and get the same error.
Running with --no-keyring gives a slightly different error:
Traceback (most recent call last):
File "/usr/bin/osc", line 21, in <module>
r = babysitter.run(osccli)
File "/usr/lib/python2.7/dist-packages/osc/babysitter.py", line 52, in
run
return prg.main()
File "/usr/lib/python2.7/dist-packages/osc/cmdln.py", line 310, in main
return self.cmd(args)
File "/usr/lib/python2.7/dist-packages/osc/cmdln.py", line 333, in cmd
retval = self.onecmd(argv)
File "/usr/lib/python2.7/dist-packages/osc/cmdln.py", line 449, in onecmd
return self._dispatch_cmd(handler, argv)
File "/usr/lib/python2.7/dist-packages/osc/cmdln.py", line 1179, in
_dispatch_cmd
return handler(argv[0], opts, *args)
File "/usr/lib/python2.7/dist-packages/osc/commandline.py", line
6954, in do_config
opt, newval = conf.config_set_option(section, opt, ' '.join(val),
delete=opts.delete, update=True)
File "/usr/lib/python2.7/dist-packages/osc/conf.py", line 610, in
config_set_option
get_config(**kw)
File "/usr/lib/python2.7/dist-packages/osc/conf.py", line 857, in
get_config
'pass': password,
UnboundLocalError: local variable 'password' referenced before assignment
similar error when running "osc ls" (or some other <cmd> except
"config")?
I was able to resolve the issue a couple of different ways.
1 - By setting use_keyring=0 in the .oscrc file, osc config would
work. I would have thought --no-keyring would do the same thing, but
apparently it doesn't.
fix for it to git master ("osc --no-keyring config..." should be
working now).
2 - By removing python-keyring (and using the default .oscrc) then osc
config would work.
If I get a chance, I'll try re-adding python-keyring and seeing if it
affects 'osc ls'.
Marcus
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx
| < Previous | Next > |