Closed Bug 1619589 Opened 4 years ago Closed 4 years ago

Moz-phab 1.78 always exits with TypeError: __init__() got an unexpected keyword argument 'required'

Categories

(Conduit :: moz-phab, defect, P1)

Production
x86_64
Windows 10
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: MarcoZ, Unassigned)

Details

(Keywords: regression)

Attachments

(1 file)

After update to moz-phab 1.78 under MozBuild under Windows 10, no matter what argument or I use, or even none, I get:

TypeError: init() got an unexpected keyword argument 'required'
Run moz-phab again with '--trace' to show the stack trace
Sentry is attempting to send 0 pending error messages
Waiting up to 2 seconds
Press Ctrl-Break to quit

--trace does not work, gives the same error output.

I'm unable to reproduce this with moz-phab 0.1.78 on Windows 10.
moz-phab itself doesn't have a function named init, so it isn't clear where this is coming from.

can you run again with DEBUG=1 moz-phab submit? hopefully that'll generate a stack trace.

Flags: needinfo?(mzehe)

DEBUG 2020-03-03 16:30:54,299 MozPhab (0.1.78)
ERROR 2020-03-03 16:30:54,303 Traceback (most recent call last):
File "c:\mozilla-build\python3\lib\site-packages\mozphab\mozphab.py", line 5450, in main
args = parse_args(argv)
File "c:\mozilla-build\python3\lib\site-packages\mozphab\mozphab.py", line 5117, in parse_args
required=True,
File "c:\mozilla-build\python3\lib\argparse.py", line 1703, in add_subparsers
action = parsers_class(option_strings=[], **kwargs)
TypeError: init() got an unexpected keyword argument 'required'

Sentry is attempting to send 0 pending error messages
Waiting up to 2 seconds
Press Ctrl-Break to quit

Flags: needinfo?(mzehe)
Priority: -- → P1
Assignee: nobody → pzalewa
Status: NEW → ASSIGNED

(In reply to Marco Zehe (:MarcoZ) from comment #0)

After update to moz-phab 1.78 under MozBuild under Windows 10, no matter what argument or I use, or even none, I get:

TypeError: init() got an unexpected keyword argument 'required'
Run moz-phab again with '--trace' to show the stack trace
Sentry is attempting to send 0 pending error messages
Waiting up to 2 seconds
Press Ctrl-Break to quit

--trace does not work, gives the same error output.

I have the same behavior on Ubuntu 18.04. I've update to most recent moz-central and re-run ./mach bootstrap with no change in results.

Please run pip3 install MozPhab --upgrade

Assignee: pzalewa → nobody
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: