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

Subparsers ArgparseError #491

Merged
merged 16 commits into from
Sep 18, 2024
Merged

Conversation

abekipnis
Copy link
Contributor

Argparse error came from calling subparsers.add_parser("localize") and subparsers.add_parser("render") more than once (i.e. lines 1529 + 1123 of main, which made it difficult to run the program outside of the conda env (not really sure why, maybe a python version issue?)

The program is still functional after the change

rafalkowalewski1 and others added 16 commits February 23, 2024 16:27
another attempt at fixing readthedocs, sorry for the spam
@azelcer
Copy link

azelcer commented Sep 17, 2024

ult to run the program outside of the conda env (not really sure why, maybe a python version issue?)

This is correct: argpase behaviour when duplicated subparsers changed in Python 3.11 to trigger an exception if the same subparser name was added more than once (https://bugs.python.org/issue?@action=redirect&bpo=39716, see changelog here)

@rafalkowalewski1 rafalkowalewski1 merged commit 43ed3bc into jungmannlab:development Sep 18, 2024
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.

3 participants