Git Product home page Git Product logo

night-mode-daemon's People

Contributors

empee584 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

night-mode-daemon's Issues

distutils package is deprecated

Python 3.10.7
Kernel: 5.19.0-2-amd64
OS: Debian GNU/Linux bookworm/sid
WM: Xfwm4
Shell: zsh 5.9

I was really excited for this, when settings is launched:

/usr/bin/night_mode_settings:4: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
  import distutils.util
Traceback (most recent call last):
  File "/usr/bin/night_mode_settings", line 140, in <module>
    settings = SettingsWindow()
  File "/usr/bin/night_mode_settings", line 41, in __init__
    loadUi(os.path.join(os.path.dirname(os.path.realpath(__file__)), 'settings.ui'), self)
  File "/home/tom/.local/lib/python3.10/site-packages/PyQt5/uic/__init__.py", line 238, in loadUi
    return DynamicUILoader(package).loadUi(uifile, baseinstance, resource_suffix)
  File "/home/tom/.local/lib/python3.10/site-packages/PyQt5/uic/Loader/loader.py", line 66, in loadUi
    return self.parse(filename, resource_suffix)
  File "/home/tom/.local/lib/python3.10/site-packages/PyQt5/uic/uiparser.py", line 1020, in parse
    document = parse(filename)
  File "/usr/lib/python3.10/xml/etree/ElementTree.py", line 1222, in parse
    tree.parse(source, parser)
  File "/usr/lib/python3.10/xml/etree/ElementTree.py", line 569, in parse
    source = open(source, "rb")
FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/settings.ui'

When the daemon is launched:

/usr/bin/night_mode_daemon:6: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
  import distutils.util
night_mode_daemon /home/tom/.config/night-mode.conf gives {} {}
night_mode_daemon config before reload: {} {}
Traceback (most recent call last):
  File "/usr/bin/night_mode_daemon", line 133, in <module>
    reload_config()
  File "/usr/bin/night_mode_daemon", line 55, in reload_config
    night_mode_enabled = distutils.util.strtobool(config['General']['nightModeEnabled'])
  File "/usr/lib/python3/dist-packages/configobj.py", line 554, in __getitem__
    val = dict.__getitem__(self, key)
KeyError: 'General'

Compatibility with xsct

Should detect and use xsct (f.e. on debian bookworm, xsct has replaced sct) and also offer to use its brightness control feature.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.