** Description changed:

- safeeyes crashes immediately when executed.
+ [ Impact ]
  
- $ safeeyes 
+ 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/safeeyes", line 33, in <module>
-     sys.exit(load_entry_point('safeeyes==2.1.9', 'console_scripts', 
'safeeyes')())
+     sys.exit(load_entry_point('safeeyes==2.1.5', 'console_scripts', 
'safeeyes')())
               
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/bin/safeeyes", line 25, in importlib_load_entry_point
      return next(matches).load()
             ^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 205, in load
      module = import_module(match.group('module'))
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
    File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
    File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
    File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
    File "<frozen importlib._bootstrap_external>", line 995, in exec_module
    File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
    File "/usr/lib/python3/dist-packages/safeeyes/__main__.py", line 32, in 
<module>
      from safeeyes import utility
    File "/usr/lib/python3/dist-packages/safeeyes/utility.py", line 35, in 
<module>
      from distutils.version import LooseVersion
  ModuleNotFoundError: No module named 'distutils'
  
+ 
+ [ 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://launchpad.net/~sudipmuk/+archive/ubuntu/test-ppa1/+build/28725597
+ 
+ 
+ [ Original Bug Description ]
+ 
+ 
+ safeeyes crashes immediately when executed.
+ 
+ $ safeeyes
+ Traceback (most recent call last):
+   File "/usr/bin/safeeyes", line 33, in <module>
+     sys.exit(load_entry_point('safeeyes==2.1.9', 'console_scripts', 
'safeeyes')())
+              
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+   File "/usr/bin/safeeyes", line 25, in importlib_load_entry_point
+     return next(matches).load()
+            ^^^^^^^^^^^^^^^^^^^^
+   File "/usr/lib/python3.12/importlib/metadata/__init__.py", line 205, in load
+     module = import_module(match.group('module'))
+              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+   File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
+     return _bootstrap._gcd_import(name[level:], package, level)
+            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+   File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
+   File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
+   File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
+   File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
+   File "<frozen importlib._bootstrap_external>", line 995, in exec_module
+   File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
+   File "/usr/lib/python3/dist-packages/safeeyes/__main__.py", line 32, in 
<module>
+     from safeeyes import utility
+   File "/usr/lib/python3/dist-packages/safeeyes/utility.py", line 35, in 
<module>
+     from distutils.version import LooseVersion
+ ModuleNotFoundError: No module named 'distutils'
+ 
  ProblemType: Crash
  DistroRelease: Ubuntu 24.10
  Package: safeeyes 2.1.9-1
  ProcVersionSignature: Ubuntu 6.8.0-31.31-generic 6.8.1
  Uname: Linux 6.8.0-31-generic x86_64
  ApportVersion: 2.28.1-0ubuntu4
  Architecture: amd64
  CasperMD5CheckResult: pass
  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.Characters[11690]: MESA: error: ZINK: 
failed to choose pdev
-  Jul 30 21:37:38 hostname org.gnome.Characters[11690]: libEGL warning: egl: 
failed to create dri2 screen
+  Jul 30 21:37:38 hostname org.gnome.Characters[11690]: MESA: error: ZINK: 
failed to choose pdev
+  Jul 30 21:37:38 hostname org.gnome.Characters[11690]: libEGL warning: egl: 
failed to create dri2 screen
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python3 /usr/bin/safeeyes
  ProcEnviron:
-  LANG=en_US.UTF-8
-  PATH=(custom, no user)
-  SHELL=/bin/bash
-  TERM=xterm-256color
-  XDG_RUNTIME_DIR=<set>
+  LANG=en_US.UTF-8
+  PATH=(custom, no user)
+  SHELL=/bin/bash
+  TERM=xterm-256color
+  XDG_RUNTIME_DIR=<set>
  Python3Details: /usr/bin/python3.12, Python 3.12.4, python3-minimal, 
3.12.3-0ubuntu1
  PythonArgs: ['/usr/bin/safeeyes']
  PythonDetails: N/A
  SourcePackage: safeeyes
  Title: safeeyes crashed with ModuleNotFoundError in 
/usr/lib/python3/dist-packages/safeeyes/utility.py: No module named 'distutils'
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip lpadmin plugdev sudo users

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2075269

Title:
  [SRU] safeeyes crashed with ModuleNotFoundError in
  /usr/lib/python3/dist-packages/safeeyes/utility.py: No module named
  'distutils'

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/safeeyes/+bug/2075269/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to