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

Python 3.11 support problems #24

Closed
eclipseo opened this issue Jun 26, 2022 · 0 comments · Fixed by #25
Closed

Python 3.11 support problems #24

eclipseo opened this issue Jun 26, 2022 · 0 comments · Fixed by #25

Comments

@eclipseo
Copy link
Contributor

Building rfpkg on Python 3.11 fails with the following error:

+ /usr/bin/python3 doc/rfpkg_man_page.py
Traceback (most recent call last):
  File "/builddir/build/BUILD/rfpkg-1.27.0/doc/rfpkg_man_page.py", line 24, in <module>
    client = rfpkg.cli.rfpkgClient(config=config, name='rfpkg')
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/rfpkg-1.27.0/rfpkg/cli.py", line 37, in __init__
    self.setup_fed_subparsers()
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/rfpkg-1.27.0/rfpkg/cli.py", line 54, in setup_fed_subparsers
    self.register_retire()
    ^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/rfpkg-1.27.0/rfpkg/cli.py", line 64, in register_retire
    retire_parser = self.subparsers.add_parser(
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.11/argparse.py", line 1185, in add_parser
    raise ArgumentError(self, _('conflicting subparser: %s') % name)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
argparse.ArgumentError: argument {help,build,chain-build,clean,clog,clone,co,copr-build,commit,ci,compile,container-build,container-build-setup,diff,flatpak-build,gimmespec,gitbuildhash,gitcred,giturl,import,install,lint,list-side-tags,local,mockbuild,mock-config,module-build,module-scratch-build,module-build-cancel,module-build-info,module-build-local,module-build-watch,module-overview,new,new-sources,patch,prep,pull,push,remote,remove-side-tag,request-side-tag,retire,scratch-build,sources,srpm,switch-branch,tag,unused-patches,upload,verify-files,verrel}: conflicting subparser: retire

It is because of this change in Python 3.11

python/cpython#83897
python/cpython#18605

eclipseo added a commit to eclipseo/rfpkg that referenced this issue Jun 26, 2022
Don't register again the retire command as it is already done
by pyrpkg. Starting Python 3.11, it creates an error.
See python/cpython#18605

Fix rpmfusion-infra#24
sergiomb2 pushed a commit that referenced this issue Jun 27, 2022
Don't register again the retire command as it is already done
by pyrpkg. Starting Python 3.11, it creates an error.
See python/cpython#18605

Fix #24
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 a pull request may close this issue.

1 participant