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

Fix error devnest command py313 #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ccamposr
Copy link

@ccamposr ccamposr commented Nov 4, 2024

raise TypeError('parents must be a list of ArgumentParser')

ccamposr@fedora:~/devnest$ devnest --help
Traceback (most recent call last):
File "/home/ccamposr/.local/bin/devnest", line 8, in
sys.exit(main())
~~~~^^
File "/home/ccamposr/.local/lib/python3.13/site-packages/devnest/lib/cli.py", line 709, in main
JenkinsNodeShell().main(args)
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
File "/home/ccamposr/.local/lib/python3.13/site-packages/devnest/lib/cli.py", line 389, in main
parser_args = self.parse_args(argv)
File "/home/ccamposr/.local/lib/python3.13/site-packages/devnest/lib/cli.py", line 362, in parse_args
parser = self.get_base_parser()
File "/home/ccamposr/.local/lib/python3.13/site-packages/devnest/lib/cli.py", line 139, in get_base_parser
parser = argparse.ArgumentParser(prog='devnest',
parents=[config_group],
...<2 lines>...
formatter_class=formatter,
add_help=False)
File "/usr/lib64/python3.13/argparse.py", line 1806, in init
raise TypeError('parents must be a list of ArgumentParser')
TypeError: parents must be a list of ArgumentParser

raise TypeError('parents must be a list of ArgumentParser')
@gthiemonge
Copy link

This fix works for me

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

Successfully merging this pull request may close these issues.

2 participants