[SRU] ttx2xgf crashed with ModuleNotFoundError

Bug #2061319 reported by Sudip Mukherjee
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
xgridfit (Debian)
Fix Released
Unknown
xgridfit (Ubuntu)
Fix Released
Medium
Unassigned
Focal
Fix Released
Undecided
Unassigned
Jammy
Fix Released
Undecided
Unassigned
Noble
Fix Released
Undecided
Unassigned

Bug Description

[ Impact ]

The commands "xgridfit", "xgfconfig" and "ttx2xgf" fails to run and crashes immediately when executed by the user.

$ xgridfit
Traceback (most recent call last):
  File "/usr/bin/xgridfit", line 4, in <module>
    from xgflib import run_xgridfit
ModuleNotFoundError: No module named 'xgflib'

$ xgfconfig
Traceback (most recent call last):
  File "/usr/bin/xgfconfig", line 3, in <module>
    from xgflib import run_config
ModuleNotFoundError: No module named 'xgflib'

$ ttx2xgf
Traceback (most recent call last):
  File "/usr/bin/ttx2xgf", line 3, in <module>
    from xgflib import run_ttx2xgf
ModuleNotFoundError: No module named 'xgflib'

[ Test Plan ]

install xgridfit.

execute xgridfit
execute xgfconfig
execute ttx2xgf

If the package is not fixed, all the three commands will fail with the above error.

With the fixed package, it will display the help menu.

[ Where problems could occur ]

These commands were shipped with the package but have never worked as the python module was not added to the package. This change only adds the python module to the package so that these commands can find the module while executing. There should not be any regression due to this fix as its not changing any code and just installing the missing module.

But on the other hand, since these commands have never worked before, so any bugs in these commands were never noticed before. And so, there is a possibility that when these commands can now be actually executed, users might notice bugs with these and file new bugs.

[ Other Info ]

It has been fixed in Debian via 2.3-5 package and so Oracular is also fixed.

The Debian package also added another change to remove $(CURDIR)/debian/tmp/usr/local/lib/python* in d/rules. It had to be added as they updated debhelper version to 13 in which dh_missing will default to --fail-missing and the build will fail. But that is not needed for this SRU.

[ Original Bug Description ]

ttx2xgf fails to run with the error:

$ ttx2xgf
Traceback (most recent call last):
  File "/usr/bin/ttx2xgf", line 3, in <module>
    from xgflib import run_ttx2xgf
ModuleNotFoundError: No module named 'xgflib'

ProblemType: Crash
DistroRelease: Ubuntu 24.04
Package: xgridfit 2.3-4build4
ProcVersionSignature: Ubuntu 6.8.0-22.22-generic 6.8.1
Uname: Linux 6.8.0-22-generic x86_64
ApportVersion: 2.28.0-0ubuntu1
Architecture: amd64
CasperMD5CheckResult: pass
Date: Sun Apr 14 20:44:05 2024
ExecutablePath: /usr/bin/ttx2xgf
InstallationDate: Installed on 2024-04-10 (4 days ago)
InstallationMedia: Ubuntu 24.04 LTS "Noble Numbat" - Beta amd64 (20240410)
InterpreterPath: /usr/bin/python3.12
JournalErrors: -- No entries --
PackageArchitecture: all
ProcCmdline: /usr/bin/python3 /usr/bin/ttx2xgf
Python3Details: /usr/bin/python3.12, Python 3.12.2, python3-minimal, 3.12.2-0ubuntu2
PythonArgs: ['/usr/bin/ttx2xgf']
PythonDetails: N/A
SourcePackage: xgridfit
Title: ttx2xgf crashed with ModuleNotFoundError in __main__: No module named 'xgflib'
Traceback:
 Traceback (most recent call last):
   File "/usr/bin/ttx2xgf", line 3, in <module>
     from xgflib import run_ttx2xgf
 ModuleNotFoundError: No module named 'xgflib'
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sudo users

Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :
information type: Private → Public
Changed in xgridfit (Debian):
status: Unknown → New
tags: removed: need-duplicate-check
Changed in xgridfit (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Lenin (gagarin) wrote :

i also needed that module to build junicode from source, it is fixed now in sid

Changed in xgridfit (Ubuntu):
status: New → Fix Committed
Changed in xgridfit (Debian):
status: New → Fix Released
Changed in xgridfit (Ubuntu):
status: Fix Committed → Fix Released
Changed in xgridfit (Ubuntu Focal):
status: New → In Progress
Changed in xgridfit (Ubuntu Jammy):
status: New → In Progress
Changed in xgridfit (Ubuntu Noble):
status: New → In Progress
assignee: nobody → Sudip Mukherjee (sudipmuk)
Changed in xgridfit (Ubuntu Jammy):
assignee: nobody → Sudip Mukherjee (sudipmuk)
Changed in xgridfit (Ubuntu Focal):
assignee: nobody → Sudip Mukherjee (sudipmuk)
summary: - ttx2xgf crashed with ModuleNotFoundError
+ [SRU] ttx2xgf crashed with ModuleNotFoundError
description: updated
Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

Uploaded for Noble, Jammy and Focal and waiting for SRU review now.

Mantic is also affected, but since it will be EOL in few day so I skipped it.

description: updated
Changed in xgridfit (Ubuntu Focal):
assignee: Sudip Mukherjee (sudipmuk) → nobody
Changed in xgridfit (Ubuntu Jammy):
assignee: Sudip Mukherjee (sudipmuk) → nobody
Changed in xgridfit (Ubuntu Noble):
assignee: Sudip Mukherjee (sudipmuk) → nobody
Revision history for this message
Timo Aaltonen (tjaalton) wrote : Please test proposed package

Hello Sudip, or anyone else affected,

Accepted xgridfit into noble-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/xgridfit/2.3-4ubuntu0.24.04.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-noble to verification-done-noble. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-noble. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in xgridfit (Ubuntu Noble):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-noble
Changed in xgridfit (Ubuntu Jammy):
status: In Progress → Fix Committed
tags: added: verification-needed-jammy
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Hello Sudip, or anyone else affected,

Accepted xgridfit into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/xgridfit/2.3-4ubuntu0.22.04.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-jammy to verification-done-jammy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-jammy. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in xgridfit (Ubuntu Focal):
status: In Progress → Fix Committed
tags: added: verification-needed-focal
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Hello Sudip, or anyone else affected,

Accepted xgridfit into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/xgridfit/2.3-4ubuntu0.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

I can confirm that xgridfit from noble-proposed has fixed the bug for me.

Test done:

install xgridfit and try to execute "xgridfit --help", "xgfconfig --help" and "ttx2xgf --help" and confirmed that they still fail.

Added noble-proposed to apt sources.
install xgridfit from noble-proposed.

execute "xgridfit --help", "xgfconfig --help" and "ttx2xgf --help" and confirmed that they all display the help message.

Package tested:

$ apt-cache policy xgridfit
xgridfit:
  Installed: 2.3-4ubuntu0.24.04.1
  Candidate: 2.3-4ubuntu0.24.04.1
  Version table:
 *** 2.3-4ubuntu0.24.04.1 100
        100 http://gb.archive.ubuntu.com/ubuntu noble-proposed/universe amd64 Packages
        100 /var/lib/dpkg/status
     2.3-4build4 500
        500 http://gb.archive.ubuntu.com/ubuntu noble/universe amd64 Packages

Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

I can confirm that xgridfit from jammy-proposed has fixed the bug for me.

Test done:

install xgridfit and try to execute "xgridfit --help", "xgfconfig --help" and "ttx2xgf --help" and confirmed that they still fail.

Added jammy-proposed to apt sources.
install xgridfit from jammy-proposed.

execute "xgridfit --help", "xgfconfig --help" and "ttx2xgf --help" and confirmed that they all display the help message.

Package tested:

$ apt-cache policy xgridfit
xgridfit:
  Installed: 2.3-4ubuntu0.22.04.1
  Candidate: 2.3-4ubuntu0.22.04.1
  Version table:
 *** 2.3-4ubuntu0.22.04.1 500
        500 http://gb.archive.ubuntu.com/ubuntu jammy-proposed/universe amd64 Packages
        500 http://gb.archive.ubuntu.com/ubuntu jammy-proposed/universe i386 Packages
        100 /var/lib/dpkg/status
     2.3-4build4 500
        500 http://gb.archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
        500 http://gb.archive.ubuntu.com/ubuntu jammy/universe i386 Packages

Revision history for this message
Sudip Mukherjee (sudipmuk) wrote :

I can confirm that xgridfit from focal-proposed has fixed the bug for me.

Test done:

install xgridfit and try to execute "xgridfit --help", "xgfconfig --help" and "ttx2xgf --help" and confirmed that they still fail.

Added focal-proposed to apt sources.
install xgridfit from focal-proposed.

execute "xgridfit --help", "xgfconfig --help" and "ttx2xgf --help" and confirmed that they all display the help message.

Package tested:

$ apt-cache policy xgridfit
xgridfit:
  Installed: 2.3-4ubuntu0.1
  Candidate: 2.3-4ubuntu0.1
  Version table:
 *** 2.3-4ubuntu0.1 500
        500 http://gb.archive.ubuntu.com/ubuntu focal-proposed/universe amd64 Packages
        500 http://gb.archive.ubuntu.com/ubuntu focal-proposed/universe i386 Packages
        100 /var/lib/dpkg/status
     2.3-4build1 500
        500 http://gb.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
        500 http://gb.archive.ubuntu.com/ubuntu focal/universe i386 Packages

tags: added: verification-done verification-done-focal verification-done-jammy verification-done-noble
removed: verification-needed verification-needed-focal verification-needed-jammy verification-needed-noble
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xgridfit - 2.3-4ubuntu0.24.04.1

---------------
xgridfit (2.3-4ubuntu0.24.04.1) noble; urgency=medium

  * Fix crash due to missing xgflib module. (LP: #2061319)

 -- Sudip Mukherjee <email address hidden> Tue, 02 Jul 2024 20:17:36 +0100

Changed in xgridfit (Ubuntu Noble):
status: Fix Committed → Fix Released
Revision history for this message
Andreas Hasenack (ahasenack) wrote : Update Released

The verification of the Stable Release Update for xgridfit has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

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

This bug was fixed in the package xgridfit - 2.3-4ubuntu0.22.04.1

---------------
xgridfit (2.3-4ubuntu0.22.04.1) jammy; urgency=medium

  * Fix crash due to missing xgflib module. (LP: #2061319)

 -- Sudip Mukherjee <email address hidden> Tue, 02 Jul 2024 20:13:16 +0100

Changed in xgridfit (Ubuntu Jammy):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package xgridfit - 2.3-4ubuntu0.1

---------------
xgridfit (2.3-4ubuntu0.1) focal; urgency=medium

  * Fix crash due to missing xgflib module. (LP: #2061319)

 -- Sudip Mukherjee <email address hidden> Tue, 02 Jul 2024 19:41:14 +0100

Changed in xgridfit (Ubuntu Focal):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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