[opensuse-buildservice] osc errors
Hello, I tried to fix my ocaml problem and stumbled over a set of errors in osc client. Maybe they are caused by wrong usage, but nevertheless there should be more meaningful error messages: a)~/sources/buildservice/home:dstoecker/lablgtk2> osc --version 0.97 b)~/sources/buildservice/home:dstoecker/lablgtk2> osc meta -e prjconf home:dstoecker Traceback (most recent call last): File "/usr/bin/osc", line 10, in <module> sys.exit( osc.main() ) File "/usr/lib/python2.5/site-packages/osc/cmdln.py", line 256, in main return self.cmd(args) File "/usr/lib/python2.5/site-packages/osc/cmdln.py", line 279, in cmd retval = self.onecmd(argv) File "/usr/lib/python2.5/site-packages/osc/cmdln.py", line 395, in onecmd return self._dispatch_cmd(handler, argv) File "/usr/lib/python2.5/site-packages/osc/cmdln.py", line 1070, in _dispatch_cmd return handler(argv[0], opts, *args) File "/usr/lib/python2.5/site-packages/osc/commandline.py", line 257, in do_meta template_args=None) File "/usr/lib/python2.5/site-packages/osc/core.py", line 1046, in edit_meta f=metafile(url, data, change_is_required) File "/usr/lib/python2.5/site-packages/osc/core.py", line 938, in __init__ f.write(''.join(input)) TypeError c)~/sources/buildservice/home:dstoecker/lablgtk2> osc meta prjconf SUSE_Linux_10.1 Traceback (most recent call last): File "/usr/bin/osc", line 10, in <module> sys.exit( osc.main() ) File "/usr/lib/python2.5/site-packages/osc/cmdln.py", line 256, in main return self.cmd(args) File "/usr/lib/python2.5/site-packages/osc/cmdln.py", line 279, in cmd retval = self.onecmd(argv) File "/usr/lib/python2.5/site-packages/osc/cmdln.py", line 395, in onecmd return self._dispatch_cmd(handler, argv) File "/usr/lib/python2.5/site-packages/osc/cmdln.py", line 1070, in _dispatch_cmd return handler(argv[0], opts, *args) File "/usr/lib/python2.5/site-packages/osc/commandline.py", line 226, in do_meta sys.stdout.write(''.join(show_project_conf(conf.config['apiurl'], project))) File "/usr/lib/python2.5/site-packages/osc/core.py", line 890, in show_project_conf f = http_GET(url) File "/usr/lib/python2.5/site-packages/osc/core.py", line 764, in http_GET def http_GET(*args, **kwargs): return http_request('GET', *args, **kwargs) File "/usr/lib/python2.5/site-packages/osc/core.py", line 755, in http_request fd = urllib2.urlopen(req, data=data) File "/usr/lib/python2.5/urllib2.py", line 121, in urlopen return _opener.open(url, data) File "/usr/lib/python2.5/urllib2.py", line 380, in open response = meth(req, response) File "/usr/lib/python2.5/urllib2.py", line 491, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.5/urllib2.py", line 418, in error return self._call_chain(*args) File "/usr/lib/python2.5/urllib2.py", line 353, in _call_chain result = func(*args) File "/usr/lib/python2.5/urllib2.py", line 499, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) urllib2.HTTPError: HTTP Error 404: Not Found d) Same using "prj xxx". Ciao -- http://www.dstoecker.eu/ (PGP key available) --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Hi, On 2007-08-07 14:18:17 +0200, Dirk Stoecker wrote:
Hello,
I tried to fix my ocaml problem and stumbled over a set of errors in osc client. Maybe they are caused by wrong usage, but nevertheless there should be more meaningful error messages:
a)~/sources/buildservice/home:dstoecker/lablgtk2> osc --version 0.97 b)~/sources/buildservice/home:dstoecker/lablgtk2> osc meta -e prjconf home:dstoecker Traceback (most recent call last):
This is already fixed (in svn).
c)~/sources/buildservice/home:dstoecker/lablgtk2> osc meta prjconf SUSE_Linux_10.1 d) Same using "prj xxx".
There's already a bug report for this "bad" error handling (#280034). Thanks for your reports! Marcus --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Tue, Aug 07, 2007 at 04:04:34PM +0200, Marcus Hüwe wrote:
On 2007-08-07 14:18:17 +0200, Dirk Stoecker wrote:
Hello,
I tried to fix my ocaml problem and stumbled over a set of errors in osc client. Maybe they are caused by wrong usage, but nevertheless there should be more meaningful error messages:
a)~/sources/buildservice/home:dstoecker/lablgtk2> osc --version 0.97 b)~/sources/buildservice/home:dstoecker/lablgtk2> osc meta -e prjconf home:dstoecker Traceback (most recent call last):
This is already fixed (in svn).
I must have broken this when I added error handling (sic). Many thanks for the fix, Marcus.
c)~/sources/buildservice/home:dstoecker/lablgtk2> osc meta prjconf SUSE_Linux_10.1 d) Same using "prj xxx".
There's already a bug report for this "bad" error handling (#280034).
Indeed. It requires some thinking and refactoring -- not possible to fix it in a breeze. The reported "HTTP Error 404: Not Found" is still correct in these cases, though. Peter -- "WARNING: This bug is visible to non-employees. Please be respectful!" SUSE LINUX Products GmbH Research & Development
On 2007-08-08 20:21:36 +0200, Dr. Peter Poeml wrote:
On Tue, Aug 07, 2007 at 04:04:34PM +0200, Marcus Hüwe wrote:
On 2007-08-07 14:18:17 +0200, Dirk Stoecker wrote:
Hello,
I tried to fix my ocaml problem and stumbled over a set of errors in osc client. Maybe they are caused by wrong usage, but nevertheless there should be more meaningful error messages:
a)~/sources/buildservice/home:dstoecker/lablgtk2> osc --version 0.97 b)~/sources/buildservice/home:dstoecker/lablgtk2> osc meta -e prjconf home:dstoecker Traceback (most recent call last):
This is already fixed (in svn).
I must have broken this when I added error handling (sic).
Nope it was my fault when I moved your meta stuff into smaller methods:)
Many thanks for the fix, Marcus.
Marcus --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (3)
-
Dirk Stoecker
-
Dr. Peter Poeml
-
Marcus Hüwe