Bug 2334009 - livecd-creator fails after upgrades installed on 2024-12-22, which included python3.x86_64 3.13.1-2.fc41
Summary: livecd-creator fails after upgrades installed on 2024-12-22, which included p...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: livecd-tools
Version: 41
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Neal Gompa
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-12-24 16:39 UTC by skeeter9807
Modified: 2025-07-13 04:19 UTC (History)
10 users (show)

Fixed In Version: livecd-tools-31.0-15.el10_1 livecd-tools-31.0-15.el10_0 livecd-tools-31.0-15.el9 livecd-tools-31.0-15.el8 livecd-tools-31.0-15.fc41 livecd-tools-31.0-15.fc42
Clone Of:
Environment:
Last Closed: 2025-07-13 01:45:07 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description skeeter9807 2024-12-24 16:39:51 UTC
Livecd-tools fails after installing the upgrades to Fedora Workstation 41 available on 2024-12-22.  Among the small number of upgrades available that day was an upgrade to python3.x86_64 3.13.1-2.fc41 from python3.x86_64 3.13.0-1.fc41. Livecd-creator worked flawlessly before the upgrades.

After the upgrades, every time I run livecd-creator the following error messages show as the livecd-creator script fails:

Traceback (most recent call last):
  File "/usr/bin/livecd-creator", line 265, in <module>
    sys.exit(main())
             ~~~~^^
  File "/usr/bin/livecd-creator", line 195, in main
    ks = imgcreate.read_kickstart(options.kscfg)
  File "/usr/lib/python3.13/site-packages/imgcreate/kickstart.py", line 54, in read_kickstart
    ksfile = urlgrabber.urlgrab(path, filename=tmpks)
  File "/usr/lib/python3.13/site-packages/urlgrabber/grabber.py", line 808, in urlgrab
    return default_grabber.urlgrab(url, filename, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/urlgrabber/grabber.py", line 1205, in urlgrab
    (url,parts) = opts.urlparser.parse(url, opts)
                  ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/urlgrabber/grabber.py", line 873, in parse
    pathname = pathname2url(url)
  File "/usr/lib64/python3.13/urllib/request.py", line 1679, in pathname2url
    return quote(pathname, encoding=encoding, errors=errors)
  File "/usr/lib64/python3.13/urllib/parse.py", line 908, in quote
    raise TypeError("quote() doesn't support 'encoding' for bytes")
TypeError: quote() doesn't support 'encoding' for bytes

Comment 1 skeeter9807 2025-01-13 02:49:42 UTC
Update:

1.  a) On 2025-01-12 I reinstalled f41 workstation
    b) ran livecd-creator
    c) live image built as expected
    
2.  a) dnf5 upgrade -x *python*
    b) ran livecd-creator
    c) live image built as expected
    
3.  a) dnf5 upgrade
    b) ran livecd-creator
    c) livecd-creator failed with error messages already reported.
    
4.  Conclusion:  There is an incompatibility between the livecd-creator script and the python3 packages in the fedora repositories as of 2025-01-13 0230 UTC.

P.S. I realize f40 is approaching end of life, but this issue affects f40 workstation as well.

Comment 2 Travis Michette 2025-02-07 00:40:25 UTC
Update for FC41 ... looking at the bug, it still appears to live in the FC42 packages too, my solution and work around to get my build system working again was to downgrade all the Python packages and then perform a version lock.

[root@fedora-builder FedoraRemix]# dnf downgrade *python*

[root@fedora-builder FedoraRemix]# dnf versionlock add *python*

Allowed the build system to get up and running again. Tracking the bug separately with exact package versions in Github repo issue tied to FedoraRemix build.

https://github.com/tmichett/Fedora_Remix/issues/83

Comment 3 Travis Michette 2025-02-25 13:13:20 UTC
https://github.com/livecd-tools/livecd-tools/issues/279

Further testing led to the discovering the issue appears only with the kickstart.py. The work around on a system with unlocked versions of Python can be fixed with ...

[root@fedora FedoraRemix]# sudo mv /usr/lib/python3.13/site-packages/imgcreate/kickstart.py /usr/lib/python3.13/site-packages/imgcreate/kickstart_bkup.py
[root@fedora FedoraRemix]# sudo cp ~travis/Downloads/kickstart.py /usr/lib/python3.13/site-packages/imgcreate/kickstart.py
[root@fedora FedoraRemix]# chmod +x /usr/lib/python3.13/site-packages/imgcreate/kickstart.py


I believe that Bryan Kearney pointed this out a long while ago with how it processes kickstart files, so is this a regression?

https://lists.fedoraproject.org/archives/list/livecd@lists.fedoraproject.org/thread/H3DKUMLTFFOSU7VFDP2GEIWOP5RXISG4/?sort=date

Comment 4 Damian Wrobel 2025-04-02 12:35:36 UTC
I also stumbled on this and for local files this seems to be fixed in [1].

Would you please consider pushing an update for >=F41?

[1] https://github.com/livecd-tools/livecd-tools/commit/41e15de6de2caef6bfadafcaf3dbb60c0531079c.patch

Comment 5 Michael Niehaus 2025-04-15 18:29:48 UTC
Same problem today with a new Fedora 42 install.  Manually changing the kickstart.py file with the previously-mentioned patch did work around the issue.

Ideally someone would do a new release of livecd-tools, which would then be picked up by Fedora, but it seems no one is active on that project.

Comment 6 Anton Guda 2025-06-22 08:20:25 UTC
Works for me with proposed patch 41e15de6de2caef6bfadafcaf3dbb60c0531079c.patch (local rebuild).

Comment 7 Fedora Update System 2025-07-04 15:57:55 UTC
FEDORA-EPEL-2025-67848c0d6b (livecd-tools-31.0-15.el10_1) has been submitted as an update to Fedora EPEL 10.1.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2025-67848c0d6b

Comment 8 Fedora Update System 2025-07-04 15:57:56 UTC
FEDORA-2025-93966cc044 (livecd-tools-31.0-15.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-93966cc044

Comment 9 Fedora Update System 2025-07-04 15:57:56 UTC
FEDORA-EPEL-2025-1e307fb12a (livecd-tools-31.0-15.el10_0) has been submitted as an update to Fedora EPEL 10.0.
https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2025-1e307fb12a

Comment 10 Fedora Update System 2025-07-04 15:58:57 UTC
FEDORA-2025-7c918882ab (livecd-tools-31.0-15.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-7c918882ab

Comment 11 Fedora Update System 2025-07-05 01:07:06 UTC
FEDORA-2025-93966cc044 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-93966cc044`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-93966cc044

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 12 Fedora Update System 2025-07-05 01:11:39 UTC
FEDORA-EPEL-2025-67848c0d6b has been pushed to the Fedora EPEL 10.1 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2025-67848c0d6b

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 13 Fedora Update System 2025-07-05 01:13:09 UTC
FEDORA-EPEL-2025-eeac387230 has been pushed to the Fedora EPEL 9 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2025-eeac387230

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 14 Fedora Update System 2025-07-05 01:52:09 UTC
FEDORA-EPEL-2025-1e307fb12a has been pushed to the Fedora EPEL 10.0 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2025-1e307fb12a

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 15 Fedora Update System 2025-07-05 02:01:20 UTC
FEDORA-EPEL-2025-46ecc1cbd8 has been pushed to the Fedora EPEL 8 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2025-46ecc1cbd8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 16 Fedora Update System 2025-07-05 15:47:33 UTC
FEDORA-2025-7c918882ab has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-7c918882ab`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-7c918882ab

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 17 Fedora Update System 2025-07-13 01:45:07 UTC
FEDORA-EPEL-2025-67848c0d6b (livecd-tools-31.0-15.el10_1) has been pushed to the Fedora EPEL 10.1 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 18 Fedora Update System 2025-07-13 01:53:36 UTC
FEDORA-EPEL-2025-1e307fb12a (livecd-tools-31.0-15.el10_0) has been pushed to the Fedora EPEL 10.0 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 19 Fedora Update System 2025-07-13 01:56:32 UTC
FEDORA-EPEL-2025-eeac387230 (livecd-tools-31.0-15.el9) has been pushed to the Fedora EPEL 9 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 20 Fedora Update System 2025-07-13 02:01:55 UTC
FEDORA-EPEL-2025-46ecc1cbd8 (livecd-tools-31.0-15.el8) has been pushed to the Fedora EPEL 8 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 21 Fedora Update System 2025-07-13 02:57:27 UTC
FEDORA-2025-93966cc044 (livecd-tools-31.0-15.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 22 Fedora Update System 2025-07-13 04:19:52 UTC
FEDORA-2025-7c918882ab (livecd-tools-31.0-15.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.


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