[SRU] safeeyes crashed with ModuleNotFoundError in /usr/lib/python3/dist-packages/safeeyes/utility.py: No module named 'distutils'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
safeeyes (Debian) |
New
|
Unknown
|
|||
safeeyes (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Noble |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
[ Impact ]
safeeyes is completely unusable. It will fail immediately when the user tries to start the application and will crash with the error:
$ safeeyes --help
Traceback (most recent call last):
File "/usr/bin/
sys.
File "/usr/bin/
return next(matches)
File "/usr/lib/
module = import_
File "/usr/lib/
return _bootstrap.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "/usr/lib/
from safeeyes import utility
File "/usr/lib/
from distutils.version import LooseVersion
ModuleNotFoundE
[ Test Plan ]
install safeeyes
1) quick test:
open a terminal and use the command "safeeyes --help"
If the package is not fixed it will crash with the above error.
2) Detailed test:
start safeeyes from the launcher menu.
click on the safeeyes icon in the status bar to open the menu and then click on setting in the menu.
Change the time limits for intervals. ( I used 1 minute for interval between short breaks and interval between long breaks)
Select the "Plugins" tab and disable "Smart Pause".
close the settings.
After the time interval is over "safeeyes" will lock the screen with a message.
[ Where problems could occur ]
This upstream patch is changing the way it compares versions of the plugins at startup. As a worst case scenario if the changed code does not work then safeeyes will not start. But considering the fact the safeeyes is unusable now, the user should not see any new regression than what already exists.
[ Other Info ]
1. An extra runtime dependency on python3-packaging was added.
2. This has been fixed in Oracular.
3. In the Debian bug, the upstream co-maintainer mentioned something about a build problem. But I am not sure what problem they saw. There was no build problem in Oracular and the package in Oracular works as expected. I have built the SRU upload in a PPA and there was no build problem in Noble either. The PPA build log can be seen at: https:/
[ Original Bug Description ]
safeeyes crashes immediately when executed.
$ safeeyes
Traceback (most recent call last):
File "/usr/bin/
sys.
File "/usr/bin/
return next(matches)
File "/usr/lib/
module = import_
File "/usr/lib/
return _bootstrap.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "/usr/lib/
from safeeyes import utility
File "/usr/lib/
from distutils.version import LooseVersion
ModuleNotFoundE
ProblemType: Crash
DistroRelease: Ubuntu 24.10
Package: safeeyes 2.1.9-1
ProcVersionSign
Uname: Linux 6.8.0-31-generic x86_64
ApportVersion: 2.28.1-0ubuntu4
Architecture: amd64
CasperMD5CheckR
CrashCounter: 1
CurrentDesktop: ubuntu:GNOME
Date: Tue Jul 30 21:37:42 2024
ExecutablePath: /usr/bin/safeeyes
InstallationDate: Installed on 2024-06-17 (43 days ago)
InstallationMedia: Ubuntu 24.10 "Oracular Oriole" - Daily amd64 (20240617)
InterpreterPath: /usr/bin/python3.12
JournalErrors:
Jul 30 21:37:38 hostname org.gnome.
Jul 30 21:37:38 hostname org.gnome.
PackageArchitec
ProcCmdline: /usr/bin/python3 /usr/bin/safeeyes
ProcEnviron:
LANG=en_US.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-
XDG_RUNTIME_
Python3Details: /usr/bin/
PythonArgs: ['/usr/
PythonDetails: N/A
SourcePackage: safeeyes
Title: safeeyes crashed with ModuleNotFoundError in /usr/lib/
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sudo users
tags: | removed: need-duplicate-check |
Changed in safeeyes (Ubuntu): | |
importance: | Undecided → Medium |
information type: | Private → Public |
Changed in safeeyes (Debian): | |
status: | Unknown → New |
Changed in safeeyes (Ubuntu): | |
status: | New → In Progress |
assignee: | nobody → Sudip Mukherjee (sudipmuk) |
Changed in safeeyes (Ubuntu Noble): | |
status: | New → In Progress |
assignee: | nobody → Sudip Mukherjee (sudipmuk) |
Changed in safeeyes (Ubuntu): | |
assignee: | Sudip Mukherjee (sudipmuk) → nobody |
summary: |
- safeeyes crashed with ModuleNotFoundError in /usr/lib/python3/dist- - packages/safeeyes/utility.py: No module named 'distutils' + [SRU] safeeyes crashed with ModuleNotFoundError in + /usr/lib/python3/dist-packages/safeeyes/utility.py: No module named + 'distutils' |
description: | updated |
Changed in safeeyes (Ubuntu Noble): | |
assignee: | Sudip Mukherjee (sudipmuk) → nobody |
This bug was fixed in the package safeeyes - 2.1.9-1ubuntu1
---------------
safeeyes (2.1.9-1ubuntu1) oracular; urgency=medium
* Fix crash by removing use of distutils. (LP: #2075269)
- Add dependency on python3-packaging.
-- Sudip Mukherjee <email address hidden> Thu, 01 Aug 2024 19:18:50 +0100