Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWX CLI crashes with Python 3.13.1 #15687

Open
5 of 11 tasks
mhassan1 opened this issue Dec 5, 2024 · 0 comments · May be fixed by #15692
Open
5 of 11 tasks

AWX CLI crashes with Python 3.13.1 #15687

mhassan1 opened this issue Dec 5, 2024 · 0 comments · May be fixed by #15692

Comments

@mhassan1
Copy link

mhassan1 commented Dec 5, 2024

Please confirm the following

  • I agree to follow this project's code of conduct.
  • I have checked the current issues for duplicates.
  • I understand that AWX is open source software provided for free and that I might not receive a timely response.
  • I am NOT reporting a (potential) security vulnerability. (These should be emailed to [email protected] instead.)

Bug Summary

After upgrading from Python 3.13.0 to 3.13.1, the AWX CLI crashes with the following:

Traceback (most recent call last):
  File "/Users/user/.pyenv/versions/3.13.1/lib/python3.13/site-packages/awxkit/cli/__init__.py", line 23, in run
    cli.parse_args(argv or sys.argv)
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
  File "/Users/user/.pyenv/versions/3.13.1/lib/python3.13/site-packages/awxkit/cli/client.py", line 296, in parse_args
    self.args = self.parser.parse_known_args(self.argv)[0]
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
  File "/Users/user/.pyenv/versions/3.13.1/lib/python3.13/argparse.py", line 1899, in parse_known_args
    return self._parse_known_args2(args, namespace, intermixed=False)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/user/.pyenv/versions/3.13.1/lib/python3.13/argparse.py", line 1928, in _parse_known_args2
    namespace, args = self._parse_known_args(args, namespace, intermixed)
                      ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: HelpfulArgumentParser._parse_known_args() takes 3 positional arguments but 4 were given

AWX version

[email protected]

Select the relevant components

  • UI
  • UI (tech preview)
  • API
  • Docs
  • Collection
  • CLI
  • Other

Installation method

N/A

Modifications

no

Ansible version

No response

Operating system

MacOS Sonoma

Web browser

No response

Steps to reproduce

pyenv install 3.13.1
pip install awxkit
awx --version

Expected results

24.6.1

Actual results

Traceback (most recent call last):
  File "/Users/user/.pyenv/versions/3.13.1/lib/python3.13/site-packages/awxkit/cli/__init__.py", line 23, in run
    cli.parse_args(argv or sys.argv)
    ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
  File "/Users/user/.pyenv/versions/3.13.1/lib/python3.13/site-packages/awxkit/cli/client.py", line 296, in parse_args
    self.args = self.parser.parse_known_args(self.argv)[0]
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
  File "/Users/user/.pyenv/versions/3.13.1/lib/python3.13/argparse.py", line 1899, in parse_known_args
    return self._parse_known_args2(args, namespace, intermixed=False)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/user/.pyenv/versions/3.13.1/lib/python3.13/argparse.py", line 1928, in _parse_known_args2
    namespace, args = self._parse_known_args(args, namespace, intermixed)
                      ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: HelpfulArgumentParser._parse_known_args() takes 3 positional arguments but 4 were given

Additional information

This is not reproducible on Python 3.13.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant