Bug 2093964 - virt-bootstrap fails to build with Python 3.11: TypeError: install() got an unexpected keyword argument 'codeset'
Summary: virt-bootstrap fails to build with Python 3.11: TypeError: install() got an u...
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: virt-bootstrap
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Radostin Stoyanov
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2099186 (view as bug list)
Depends On:
Blocks: PYTHON3.11 F37FTBFS F37FailsToInstall
TreeView+ depends on / blocked
 
Reported: 2022-06-06 13:09 UTC by Tomáš Hrnčiar
Modified: 2022-07-05 22:43 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-07-05 22:42:50 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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!


Note You need to log in before you can comment on or make changes to this bug.