[SRU] Safeeyes crashes in Ubuntu 24.04 with error ModuleNotFoundError: No module named 'imp'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
safeeyes (Debian) |
Fix Released
|
Unknown
|
|||
safeeyes (Ubuntu) |
Fix Released
|
Undecided
|
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
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/
import imp
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 just changing the way it checks python3-croniter module is installed or not 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 ]
This has been fixed in Debian when v2.1.9 was added and so Oracular is also fixed.
[ Original Bug Description ]
Safeeyes uses the imp module, which is incompatible with python 3.12.
```
$ 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/
import imp
ModuleNotFoundE
```
The bug has been fixed upstream (it is just two lines https:/
I suggest that we cherrypick the fix in Ubuntu 24.04
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: safeeyes 2.1.5-0.1
ProcVersionSign
Uname: Linux 6.8.0-11-generic x86_64
NonfreeKernelMo
ApportVersion: 2.28.0-0ubuntu1
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: KDE
Date: Tue Mar 5 18:52:34 2024
InstallationDate: Installed on 2022-12-02 (460 days ago)
InstallationMedia: Kubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220809.1)
PackageArchitec
SourcePackage: safeeyes
UpgradeStatus: Upgraded to noble on 2024-02-07 (27 days ago)
Changed in safeeyes (Debian): | |
status: | Unknown → New |
summary: |
- Safeeyes crashes in Ubuntu 24.04 with error ModuleNotFoundError: No - module named 'imp' + [SRU] Safeeyes crashes in Ubuntu 24.04 with error ModuleNotFoundError: + No module named 'imp' |
Changed in safeeyes (Ubuntu Noble): | |
assignee: | nobody → Sudip Mukherjee (sudipmuk) |
status: | New → In Progress |
Changed in safeeyes (Ubuntu): | |
status: | Confirmed → Fix Released |
description: | updated |
Changed in safeeyes (Ubuntu Noble): | |
assignee: | Sudip Mukherjee (sudipmuk) → nobody |
Changed in safeeyes (Debian): | |
status: | New → Fix Released |
Status changed to 'Confirmed' because the bug affects multiple users.