Bug 2093964

Summary: virt-bootstrap fails to build with Python 3.11: TypeError: install() got an unexpected keyword argument 'codeset'
Product: [Fedora] Fedora Reporter: Tomáš Hrnčiar <thrnciar>
Component: virt-bootstrapAssignee: Radostin Stoyanov <rstoyanov1>
Status: CLOSED WORKSFORME QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: mhroncok, rstoyano, rstoyanov1, thrnciar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-07-05 22:42:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2016048, 2045102, 2045109    

Description Tomáš Hrnčiar 2022-06-06 13:09:44 UTC
virt-bootstrap fails to build with Python 3.11.0b3.

Traceback (most recent call last):
  File "/builddir/build/BUILD/virt-bootstrap-1.1.1/setup.py", line 39, in <module>
    import virtBootstrap
    ^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/virt-bootstrap-1.1.1/src/virtBootstrap/__init__.py", line 198, in <module>
    from virtBootstrap.virt_bootstrap import bootstrap
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/virt-bootstrap-1.1.1/src/virtBootstrap/virt_bootstrap.py", line 47, in <module>
    gettext.install("virt-bootstrap",
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: install() got an unexpected keyword argument 'codeset'

The following deprecated functions and methods are removed in the gettext module: lgettext(), ldgettext(), lngettext() and ldngettext().

Function bind_textdomain_codeset(), methods output_charset() and set_output_charset(), and the codeset parameter of functions translation() and install() are also removed, since they are only used for the l*gettext() functions. (Contributed by Dong-hee Na and Serhiy Storchaka in bpo-44235.)


https://docs.python.org/3.11/whatsnew/3.11.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.11/fedora-rawhide-x86_64/04499683-virt-bootstrap/

For all our attempts to build virt-bootstrap with Python 3.11, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.11/package/virt-bootstrap/

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.11:
https://copr.fedorainfracloud.org/coprs/g/python/python3.11/

Let us know here if you have any questions.

Python 3.11 is planned to be included in Fedora 37. To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.11.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon.
We'd appreciate help from the people who know this package best, but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Miro Hrončok 2022-06-20 10:21:03 UTC
*** Bug 2099186 has been marked as a duplicate of this bug. ***

Comment 2 Miro Hrončok 2022-06-27 14:54:00 UTC
Hello,

This is the first reminder (step 3 from https://docs.fedoraproject.org/en-US/fesco/Fails_to_build_from_source_Fails_to_install/#_package_removal_for_long_standing_ftbfs_and_fti_bugs).

If you know about this problem and are planning on fixing it, please acknowledge so by setting the bug status to ASSIGNED. If you don't have time to maintain this package, consider orphaning it, so maintainers of dependent packages realize the problem.

Comment 3 Radostin Stoyanov 2022-06-27 18:07:40 UTC
Hi Miro, thank you for the update. I have changed the bug status to ASSIGNED.

Comment 4 Radostin Stoyanov 2022-06-27 19:27:10 UTC
The error appears because the 'codeset' parameter has been removed in Python 3.11. I have updated the virt-bootstrap package with a fix.

Comment 5 Miro Hrončok 2022-07-05 22:42:50 UTC
Hello,

Please note that this comment was generated automatically. If you feel that this output has mistakes, please contact me via email (mhroncok).

All subpackages of a package against which this bug was filled are now installable or removed from Fedora 37.

Thanks for taking care of it!