Closed nilsleh closed 4 months ago
https://docs.python.org/3.12/whatsnew/changelog.html#python-3-12-3-final contains a few argparse-related changes. I'm guessing jsonargparse relies on undocumented or untested argparse internals and something changed.
It looks like this specific commit broke things for us: https://github.com/python/cpython/commit/c02b7ae4dd367444aa6822d5fb73b61e8f5a4ff9, https://github.com/python/cpython/pull/114180
Thank you for reporting! This issue has already been fixed in #486. The fix will be included in a release tomorrow or the day after.
🐛 Bug report
We using the lightning CLI for a package we are trying to develop called lightning-uq-box. For testing we also utilize the CLI and recently encountered CI pytests failing on python 3.11. Tests are passing on main, where the CI uses python 3.11.8, but on more recent PRs, python 3.11.9 is picked and we encounter the following error:
To reproduce
I have made a separate PR branch, where I have just made a random change to the
README.md
where one can see that the python version on the PR used is 3.11.9 while on the main branch it is still 3.11.8 (where the tests pass). The same thing happens for python 3.12 now, where 3.12.3 breaks, but 3.12.2 (on main) still passes.Environment
Specified also in
requirements/tests.yaml
@adamjstewart