usb creator crashes on startup

Bug #1962862 reported by Maik
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
usb-creator (Ubuntu)
Fix Released
High
Unassigned

Bug Description

On Kubuntu 22.04 usb-creator-kde and usb-creator-gtk both crash on startup showing the following message:

An unhandled exception occurred: module 'collections' has no attribute 'Callable'

Tests using Ubuntu 22.04 suggest that usb-creator can be started more than once but once the process of navigating to a downloaded ISO is started then the application will always crash on start-up with the error noted above.
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu78
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: KDE
DistroRelease: Ubuntu 22.04
InstallationDate: Installed on 2022-02-18 (12 days ago)
InstallationMedia: Kubuntu 22.04 LTS "Jammy Jellyfish" - Alpha amd64 (20220217)
Package: usb-creator (not installed)
ProcVersionSignature: Ubuntu 5.15.0-18.18-generic 5.15.12
Tags: jammy
Uname: Linux 5.15.0-18-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin lxd plugdev sambashare sudo
_MarkForUpload: True

Revision history for this message
Paul White (paulw2u) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please execute the following command only once, as it will automatically gather debugging information, in a terminal:

  apport-collect 1962862

and then change the status of the bug report back to 'New'.

When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://wiki.ubuntu.com/ReportingBugs.

Maik, this may be a Kubuntu issue or something specific to your installation but I'm not seeing a crash while using Ubuntu 22.04.

tags: added: jammy
Changed in usb-creator (Ubuntu):
status: New → Incomplete
Revision history for this message
Maik (maik-adamietz) wrote : ProcCpuinfoMinimal.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Maik (maik-adamietz) wrote : ProcEnviron.txt

apport information

Revision history for this message
Maik (maik-adamietz) wrote : UsbCreatorLog.txt

apport information

Revision history for this message
Maik (maik-adamietz) wrote : UsbDevices.txt

apport information

Changed in usb-creator (Ubuntu):
status: Incomplete → New
Revision history for this message
Maik (maik-adamietz) wrote :

Paul,

I just updated Ubuntu 22.04 on the Pi 4 that i have running and after the reboot i get the same issue with the usb-creator on there too now.

Revision history for this message
Paul White (paulw2u) wrote (last edit ):

Maik, now that is interesting...

I've just downloaded an ISO to check your findings and at some point after navigating to the location of the ISO I see the error that you reported so I can confirm the bug although I'm not sure of how to amend the bug description so that others can reproduce the problem but I was definitely able to start usb-creator more than once earlier.

May be we only see the bug after navigating to the downloaded ISO the first time but usb-creator will always crash afterwards?

Changed in usb-creator (Ubuntu):
status: New → Confirmed
Paul White (paulw2u)
description: updated
Revision history for this message
Maik (maik-adamietz) wrote :

RikMills said on IRC he would guess that the transition to python 3.10 broke it.
That stuff is beyond my knowledge though.

Revision history for this message
Rik Mills (rikmills) wrote :

On today's Kubuntu and Ubuntu daily ISO, the KDE/GTK versions seem to launch ok.

Revision history for this message
Paul White (paulw2u) wrote :

On Ubuntu 22.04 (fully updated) I started the application twice and navigated to where I thought an ISO image was located. As I didn't have one I downloaded a new image, restarted usb-creator and was immediately met with the 'callable' error.

Very strange that I had an error on start-up yesterday, today I didn't but now I do.

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

usbcreator/misc.py, line 44 probably needs to change from:

        return isinstance(obj, collections.Callable)

to

        return isinstance(obj, collections.abc.Callable)

I'll install jammy and test it when I get a minute.

Revision history for this message
Paul White (paulw2u) wrote (last edit ):

Thanks for comment #11 Marc.

I made that small change and the applications now starts, detects the ISO image in ~/Downloads, finds my USB stick in /dev/sda and successfully writes the image to it.

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

Great, I uploaded a new package to jammy a few minutes ago.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package usb-creator - 0.3.13

---------------
usb-creator (0.3.13) jammy; urgency=medium

  * usbcreator/misc.py: fix compatibility with Python 3.10. (LP: #1962862)
  * bin/usb-creator-helper: increase block size to 8M to improve
    performance. (LP: #1949652)

 -- Marc Deslauriers <email address hidden> Fri, 04 Mar 2022 07:59:39 -0500

Changed in usb-creator (Ubuntu):
status: Confirmed → Fix Released
Changed in usb-creator (Ubuntu):
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.