C2N14 / AutomaThemely

Simple, set-and-forget python application for changing between desktop themes according to light and dark hours
GNU General Public License v3.0
205 stars 31 forks source link

Downloaded latest verion no-deps for Linux Mint 19 (based on Ubuntu 18) and can't run #52

Open ppazos opened 2 years ago

ppazos commented 2 years ago

Used this distro https://github.com/C2N14/AutomaThemely/releases/download/v1.3/python3.6-no_deps-automathemely_1.3_all.deb

It seems like a code bug or a dependency problem, so not sure if no-deps is really no-deps :)

$ automathemely --manage
Traceback (most recent call last):
  File "/usr/local/bin/automathemely", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3088, in <module>
    @_call_aside
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3072, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3101, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 574, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 892, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 778, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'tzlocal' distribution was not found and is required by AutomaThemely
ppazos commented 2 years ago

It seems all deps doesn't have all deps.

After:

sudo apt install python3-pip
pip3 install tzlocal
pip3 install schedule
pip3 install astral

I got:

Traceback (most recent call last):
  File "/usr/local/bin/automathemely", line 11, in <module>
    load_entry_point('AutomaThemely==1.3', 'console_scripts', 'automathemely')()
  File "/usr/local/lib/python3.6/dist-packages/automathemely/bin/run.py", line 29, in main
    from automathemely.autoth_tools import argmanager, extratools, envspecific, updsuntimes
  File "/usr/local/lib/python3.6/dist-packages/automathemely/autoth_tools/updsuntimes.py", line 8, in <module>
    from astral import Location
ImportError: cannot import name 'Location'

I guess you need to be a python expert to run this app :)

odannis commented 2 years ago

https://github.com/C2N14/AutomaThemely/pull/51