Bug 28251 - bugzilla-tool, unable to create a bug.
Summary: bugzilla-tool, unable to create a bug.
Status: RESOLVED DUPLICATE of bug 31125
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac (Intel) OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-13 03:16 PDT by Maxime Simon
Modified: 2009-11-05 08:35 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maxime Simon 2009-08-13 03:16:34 PDT
With this command:
bugzilla-tool create-bug --cc=leavengood@gmail.com,pkasting@google.com --component="WebCore Misc."
and after filling the "Bug title" and "Bug comment" fields,
bugzilla-tool raised an exception, line 568, in prompt_for_bug_title_and_comment.

Here is the Tracback:
  File "/Volumes/Haiku/WebKit/WebKitTools/Scripts/bugzilla-tool", line 725, in <module>
    main()
  File "/Volumes/Haiku/WebKit/WebKitTools/Scripts/bugzilla-tool", line 722, in main
    return tool.main()
  File "/Volumes/Haiku/WebKit/WebKitTools/Scripts/bugzilla-tool", line 717, in main
    return command_object.execute(command_options, command_args, self)
  File "/Volumes/Haiku/WebKit/WebKitTools/Scripts/bugzilla-tool", line 578, in execute
    self.create_bug_from_patch(options, args, tool)
  File "/Volumes/Haiku/WebKit/WebKitTools/Scripts/bugzilla-tool", line 545, in create_bug_from_patch
    (bug_title, comment_text) = self.prompt_for_bug_title_and_comment()
  File "/Volumes/Haiku/WebKit/WebKitTools/Scripts/bugzilla-tool", line 568, in prompt_for_bug_title_and_comment
    raise
TypeError: exceptions must be classes, instances, or strings (deprecated), not NoneType

For information, I use Python 2.5.1 under Mac OSX 10.5.
Comment 1 Eric Seidel (no email) 2009-10-21 10:20:28 PDT
I just hit this too.

eseidel-mac [16063:WebKitTools]% bugzilla-tool create-bub                                                                        [~/Projects/WebKit/WebKitTools]
Usage: bugzilla-tool [options] command [command-options] [command-arguments]

bugzilla-tool: error: create-bub is not a recognized command

Type 'bugzilla-tool --help' to see usage.
eseidel-mac [16064:WebKitTools]% bugzilla-tool create-bug                                                                        [~/Projects/WebKit/WebKitTools]
Bug title: bugzilla-tool's "patch failed to download an apply" error should give more information
Bug comment (hit ^D on blank line to end):
bugzilla-tool's "patch failed to download an apply" error should give more information

https://bugs.webkit.org/show_bug.cgi?id=30435#c9 is one of numerous examples.
Traceback (most recent call last):
  File "/Users/eseidel/Projects/WebKit/WebKitTools/Scripts/bugzilla-tool", line 921, in <module>
    main()
  File "/Users/eseidel/Projects/WebKit/WebKitTools/Scripts/bugzilla-tool", line 918, in main
    return tool.main()
  File "/Users/eseidel/Projects/WebKit/WebKitTools/Scripts/bugzilla-tool", line 913, in main
    return command_object.execute(command_options, command_args, self)
  File "/Users/eseidel/Projects/WebKit/WebKitTools/Scripts/bugzilla-tool", line 635, in execute
    self.create_bug_from_patch(options, args, tool)
  File "/Users/eseidel/Projects/WebKit/WebKitTools/Scripts/bugzilla-tool", line 602, in create_bug_from_patch
    (bug_title, comment_text) = self.prompt_for_bug_title_and_comment()
  File "/Users/eseidel/Projects/WebKit/WebKitTools/Scripts/bugzilla-tool", line 625, in prompt_for_bug_title_and_comment
    raise
TypeError: exceptions must be classes, instances, or strings (deprecated), not NoneType
Comment 2 Eric Seidel (no email) 2009-10-21 10:20:56 PDT
Sorry, I pasted more than I meant to. :(
Comment 3 Maxime Simon 2009-10-21 10:25:42 PDT
(In reply to comment #2)
> Sorry, I pasted more than I meant to. :(

Hmm I generated the patch using git diff, does this may be the problem?
And also it seems that I forgot the ChangeLog.
Comment 4 Maxime Simon 2009-10-21 11:00:30 PDT
(In reply to comment #3)
> (In reply to comment #2)
> > Sorry, I pasted more than I meant to. :(
> 
> Hmm I generated the patch using git diff, does this may be the problem?
> And also it seems that I forgot the ChangeLog.

Oops, I commented the wrong bug. :/

Anyway, I didn't try again to use bugzilla-tool create-bug, but it seems that you get the same issue.
Comment 5 Adam Roben (:aroben) 2009-11-05 08:35:10 PST

*** This bug has been marked as a duplicate of bug 31125 ***