Mailinglist Archive: opensuse-project (202 mails)
| < Previous | Next > |
Re: [opensuse-project] GSoC 2011: Bug reporting tool.
- From: Mihnea Dobrescu-Balaur <mihneadb@xxxxxxxxx>
- Date: Wed, 22 Jun 2011 17:24:12 +0300
- Message-id: <BANLkTingmGfoY=1biUt8i7aqhU4Kvdf0QA@mail.gmail.com>
Hello,
I'm having trouble using the osc python bindings and was hoping I
could get some help here.
I'm at the part of figuring out who the maintainer/bug owner of a
package is. I managed to do it in the shell, but I am trying to do it
via the osc library.
My problem is using the meta_exists function from osc.core. I've tried
various ways of calling it and I've got no success. The source on
gitourious[0] isn't commented so it doesn't really help.
Some sample output:
-- GET https://api.opensuse.org/source/openSUSE:Factory/_meta
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/site-packages/osc/core.py", line 2954, in meta_exists
data = http_GET(url).readlines()
File "/usr/lib/python2.7/site-packages/osc/core.py", line 2661, in http_GET
def http_GET(*args, **kwargs): return http_request('GET',
*args, **kwargs)
File "/usr/lib/python2.7/site-packages/osc/core.py", line 2600, in
http_request
if conf.is_known_apiurl(url):
File "/usr/lib/python2.7/site-packages/osc/conf.py", line 333, in
is_known_apiurl
return config['api_host_options'].has_key(apiurl)
KeyError: 'api_host_options'
I don't really understand what's happening. That url after GET is OK
and it actually contains the meta information that I need.
Any ideas?
Thanks!
Mihnea DB
[0] http://www.gitorious.org/opensuse/osc/blobs/master/osc/core.py - line 3227
--
To unsubscribe, e-mail: opensuse-project+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-project+help@xxxxxxxxxxxx
I'm having trouble using the osc python bindings and was hoping I
could get some help here.
I'm at the part of figuring out who the maintainer/bug owner of a
package is. I managed to do it in the shell, but I am trying to do it
via the osc library.
My problem is using the meta_exists function from osc.core. I've tried
various ways of calling it and I've got no success. The source on
gitourious[0] isn't commented so it doesn't really help.
Some sample output:
makeurl: https://api.opensuse.org ['source/openSUSE:Factory/_meta'] []osc.core.meta_exists(metatype='prj', path_args='openSUSE:Factory')
-- GET https://api.opensuse.org/source/openSUSE:Factory/_meta
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/site-packages/osc/core.py", line 2954, in meta_exists
data = http_GET(url).readlines()
File "/usr/lib/python2.7/site-packages/osc/core.py", line 2661, in http_GET
def http_GET(*args, **kwargs): return http_request('GET',
*args, **kwargs)
File "/usr/lib/python2.7/site-packages/osc/core.py", line 2600, in
http_request
if conf.is_known_apiurl(url):
File "/usr/lib/python2.7/site-packages/osc/conf.py", line 333, in
is_known_apiurl
return config['api_host_options'].has_key(apiurl)
KeyError: 'api_host_options'
I don't really understand what's happening. That url after GET is OK
and it actually contains the meta information that I need.
Any ideas?
Thanks!
Mihnea DB
[0] http://www.gitorious.org/opensuse/osc/blobs/master/osc/core.py - line 3227
--
To unsubscribe, e-mail: opensuse-project+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-project+help@xxxxxxxxxxxx
| < Previous | Next > |