apiening
(Andreas)
February 25, 2025, 8:32pm
1
I installed awxkit (24.6.1) in a clean Python 3.13 virtual environment.
Doing a awx --help
gives me two errors:
TypeError: HelpfulArgumentParser._parse_known_args() takes 3 positional arguments but 4 were given
AttributeError: ‘CLI’ object has no attribute ‘verbose’
Is awxkit broken? Should I install a different version?
Hi @apiening
apiening:
TypeError: HelpfulArgumentParser._parse_known_args() takes 3 positional arguments but 4 were given
AttributeError: ‘CLI’ object has no attribute ‘verbose’
Personally, I don’t use AWX, but could it be related to this?
super__parse_known_args = super(HelpfulArgumentParser, self)._parse_known_args
# python <=3.12.7 and ==3.13.0 have an arg count of 3
# python ~=3.12.8 and >=3.13.1 have an arg count of 4
# https://github.com/python/cpython/pull/125356/files#diff-205ef24c9374465bf35c359abce9211d3aa113e986a1e3d41569eb29d07df479R1967
if super__parse_known_args.__code__.co_argcount == 3:
return super__parse_known_args(args, ns)
return super__parse_known_args(args, ns, intermixed)
1 Like
apiening
(Andreas)
February 26, 2025, 12:00pm
3
Hi @NomakCooper ,
yes this seems to be the issue I faced.
I have created a Python 3.11 virtual environment and then it works! I will stick with this workaround until the PR is accepted since it is working fine for me now.
Thank you very much!
1 Like