slgobinath / SafeEyes

Protect your eyes from eye strain using this simple and beautiful, yet extensible break reminder
http://slgobinath.github.io/SafeEyes/
GNU General Public License v3.0
1.45k stars 163 forks source link

Can't run safeeyes after upgrading python. #574

Closed davidalmarinho closed 4 months ago

davidalmarinho commented 4 months ago

When installing:

yay -S safeeyes-git

I get the error that module 'disutils' doesn't come with a stdlib distutils module

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/david_marinho/bin/SafeEyes/safeeyes/__main__.py", line 32, in <module>
    from safeeyes import utility
  File "/home/david_marinho/bin/SafeEyes/safeeyes/utility.py", line 35, in <module>
    from distutils.version import LooseVersion
ModuleNotFoundError: No module named 'distutils'

To Reproduce Steps to reproduce the behavior: Upgrade your python to python 3.12 version.

Desktop (please complete the following information):

davidalmarinho commented 4 months ago

A solution is to install setuptools:

sudo pacman -S python-setuptools

More info in this stack overflow link.