GithubHelp home page GithubHelp logo

c2n14 / automathemely Goto Github PK

View Code? Open in Web Editor NEW
205.0 9.0 32.0 162 KB

Simple, set-and-forget python application for changing between desktop themes according to light and dark hours

License: GNU General Public License v3.0

Python 90.44% Shell 8.58% C 0.99%
python3 customization theming gtk plasma-desktop xfce cinnamon-desktop gnome

automathemely's People

Contributors

c2n14 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

automathemely's Issues

Could not install with Python 3.8 in Linux Mint 20.3

Process failed: python3.8 failed (exit code 1). Full command was:["python3.8", "-m", "pip", "download", "--no-clean", "--no-deps", "--no-binary", ":all:", "-d", "/tmp/package-python-build-06340c8911613336d00bcc674a4e58e745844c21a86b4ab0356d6d66eb69", "-i", "https://pypi.python.org/simple", "--build", "/tmp/package-python-build-06340c8911613336d00bcc674a4e58e745844c21a86b4ab0356d6d66eb69/../setup.py", "../setup.py"] {:level=>:error}
Process failed: python3.8 failed (exit code 1). Full command was:["python3.8", "-m", "pip", "download", "--no-clean", "--no-deps", "--no-binary", ":all:", "-d", "/tmp/package-python-build-c05a2d6ff180ab6a3eeb880c41de5d165a245ecd8e6134cdb5e387f4844b", "-i", "https://pypi.python.org/simple", "--build", "/tmp/package-python-build-c05a2d6ff180ab6a3eeb880c41de5d165a245ecd8e6134cdb5e387f4844b/../setup.py", "../setup.py"] {:level=>:error}

My WorkStation
Linux Mint 20.3 x86_64
Python 3.8
fpm 1.14.2

I changed the install_scripts/.package.sh file

declare -a outputs=("deb")
declare -a pypacks=("astral" "requests" "tz" "tzlocal" "schedule")
declare -a otherdeps=("python3-pip")
declare -a python_versions=("3.8")

declare -a original_files=(*)

declare -a outputs=("deb" "rpm" "sh")
declare -a pypacks=("astral" "requests" "tz" "tzlocal" "schedule")
declare -a otherdeps=("python3-pip")
declare -a python_versions=("3.5" "3.6")

Can't uninstall AutomaThemely

I tried to uninstall this program, but it threw up errors. I think it is trying to uninstall some of the python dependencies, at least that is my best guess, but other programs are dependent on it, so it can't and fails. I even tried a force uninstall, and that did not work.

Please advise on how to remove this. It is not in your instructions.

snap community theme

Hi, I am running the snap community theme on ubuntu 18.04. Unfortunately the theme is not available in the drop down list of AutomaThemely. Do you see any chance of adding it?

Program won't open

I downloaded python3.5-automathemely_1.3_all.deb and installed it using Eddy. The app icon shows up but clicking it has no effect.

Suggestion: Automatically switch theme of Mozilla Firefox

Firefox stores profile data in /home//.mozilla/firefox/profiles.ini
Or Whatever directory is listed here: about:profiles

Data of profiles.ini looks like this

[General]
StartWithLastProfile=1

[Profile0]
Name=dev-edition-default
IsRelative=1
Path=0xo36fmu.dev-edition-default

[Profile1]
Name=default
IsRelative=1
Path=xngzkevy.default
Default=1

I don't yet know if this has anything to do with light and dark themes but I am looking into this.

Thanks.

Can't update sunrise and senset times in KDE Plasma 5.15.5

AutomaThemely isn't updating the sunset nd sunrise times when using the UI in KDE 5.15.5 (KDE Neon) as shown in the image

Steps to reproduce it:

  1. install AutomaThemely using the file provided here
  2. Set the Look and Fell for Plasma and GTK in both light and dark tabs
  3. Set it to get Automatic location
  4. Press "Save" (the application closes)
  5. Update the Time Offset (in minutes) field (in this case +60 for sunrise and -for sunset)
  6. Press "Save" again (the application closes)

Expected behavior: AutomaThemely changes the theme of Look and Feel and GTK properly as configured
Found behavior: It still uses the old sunset and sunrise times

Below I've attached a screenshot with my case, the sunrise and sunset is still as it was in summer saving time even though I've configured it to update and use one hour earlier for sunset and one hour later for sunrise:
bug_automathemelly

updsuntimes.py gets the wrong execution folder

hi,
i just noticed my automathemely still wasnt running automatically as expected, and i found this:

[Unit]
Description=Update automathemely sun times daily
After=network-online.target
Wants=network-online.target

[Service]
Type=oneshot
ExecStart=/bin/bash /automathemely/bin/systemd-trigger.sh "/.config/automathemely/sun_times" "/usr/bin/env python3 /automathemely/autoth_tools/updsuntimes.py"

this is my automathemely.service file, which is not configured properly (i run the post-install script as expected)

it is looking of files in the root directory, while my folder should be /home/{USER}/Automathemely/automathemely

because i compiled from source. My skills are limited, so i dont know how to fix this problem in the source file, so i've just entered the right path. hope this can help

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

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

Cannot start and some ideas regarding "More"

plain automathemely doesn' t start and shows

$ automathemely 
Traceback (most recent call last):
  File "/usr/local/bin/automathemely", line 11, in <module>
    load_entry_point('AutomaThemely==1.2', 'console_scripts', 'automathemely')()
  File "/usr/local/lib/python3.6/dist-packages/automathemely/bin/run.py", line 74, in main
    notify_print_exit('No valid times file found, creating one...', enabled=n_enabled, exit_after=False)
  File "/usr/local/lib/python3.6/dist-packages/automathemely/bin/run.py", line 23, in notify_print_exit
    notify(message)
  File "/usr/local/lib/python3.6/dist-packages/automathemely/__init__.py", line 37, in notify
    raise e
  File "/usr/local/lib/python3.6/dist-packages/automathemely/__init__.py", line 34, in notify
    n.show()
GLib.Error: g-dbus-error-quark: GDBus.Error:org.freedesktop.DBus.Error.NoReply: Message recipient disconnected from message bus without replying (4)

while automathemely --manage starts.

I' m on kubuntu 18.04. Does it have to run under gnome? I think you could make it a bit more general purpose, maybe without the gnome dependencies. For example, for some IDEs changing theme could be just changing some file at the time. For the "More" tab you could offer 1. a files switching config UI, and 2. a command execution UI for user defined commands to run at the switching time. I think this would suffice for most users. While the builtin atom and vscode tabs doesn' t seem very useful since they both have theme switching extensions that work very well.

[Feature Request] Switcher applet

It would be great to have a little gnome shell extension to manually toggle between modes. This could work as an extension for Night Light.

Options for the dropdown:
With AutomaThemely running, "Automatic" would be enabled, and then manual Light and Dark options. When manual option is chosen, the theme is switched and AutomaThemely stops running.

I've made an example of this. Any input you have would be awesome.

nightui

ps: You are gods for making this. I have forked this repo and shared my py3.7 build.

systemd daemon required to schedule theme changes

Hi, after checking the code i saw that the postinstall script creates a timer that just updates the sunset and sunrise time, but won't be able to switch between them automatically. I got around this issue by manually creating a simple systemd timer which looks like this:

[Unit]
Description=Switch theme

[Timer]
OnCalendar=*-*-* 20:00:00
OnCalendar=*-*-* 08:00:00
Persistent=true

[Install]
WantedBy=timers.target

obviously it doesn't update the time based on the location, but as long as my almost absent knowledge goes this gets the job done. It runs asyncronous as well which is ideal for my laptop. The easiest metod to update those times would be to replace the lines and call systemctl daemon-reload every time but that is just stupid, so i'll keep it like this. I hope it will help to make some sort of real changes in the project

"Timezone [...] not recognized" error

I cannot get manual time zones to work. When I manually specify a time zone, I get the following error notification when I try to update sun times from the Automathemely icon right-click menu:

ERROR: Timezone [...] not recognized

Where [...] is the name of the time zone I have entered. I'm located in Australia, and I have tried "Australian Eastern Standard Time,' 'AEST', 'UTC+10', and 'Australia' as time zone names, and all of them produce the same error. If I leave 'Time zone name' empty, I get an error saying 'Auto location is not enabled and some manual values are missing.'

Is this a bug, or am I doing something wrong? Auto location seems to work just fine (the only problem here is that it uses the time zone of the VPN server IP I connect to, not my local time zone).

Running Linux Mint 19.1 Cinnamon. Here are my user_settings.json settings: https://pastebin.com/PfnPbKAJ

Thanks for maintaining app, I think it's great!

Can't install on Fedora with Cinnamon DE

Here's my setup:
Cinnamon 5.0.5
Python 3.9.6
System Fedora 34

python3.6-automathemely-1.3-1.noarch.rpm has issues as it complains that python3-pytz is no installed. But I have...

python3-pytz.noarch                               2021.1-2.fc34                          @anaconda                                         
python3-pytzdata.noarch                           2020.1-2.fc34                          @fedora  

and other required python packages are also installed:

pip3 install astral requests pytz tzlocal schedule
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: astral in /usr/lib/python3.9/site-packages (2.2)
Requirement already satisfied: requests in /usr/lib/python3.9/site-packages (2.25.1)
Requirement already satisfied: pytz in /usr/lib/python3.9/site-packages (2021.1)
Requirement already satisfied: tzlocal in /usr/lib/python3.9/site-packages (2.0.0)
Requirement already satisfied: schedule in /usr/lib/python3.9/site-packages (0.6.0)
Requirement already satisfied: chardet<5,>=3.0.2 in /usr/lib/python3.9/site-packages (from requests) (4.0.0)
Requirement already satisfied: idna<3,>=2.5 in /usr/lib/python3.9/site-packages (from requests) (2.10)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in /usr/lib/python3.9/site-packages (from requests) (1.25.10)

So what else does the package need? Am I missing something?

Also tried python3.6-no_deps-automathemely-1.3-1.noarch.rpm ofc it installs but doesn't start and work... So, I'm kinda stuck.

automathemely --list
bash: /usr/local/bin/automathemely: /usr/bin/python3.6: bad interpreter: No such file or directory

"misc.notifications" key not found

[archbyte@lenovo ~]$ automathemely --setting misc.notifications=False
ERROR: Key "misc.notifications" not found

I get the above error when trying to set notifications on or off from the terminal. I could change the setting from the GUI but I needed the terminal command for my arch install script.

Am I using the wrong command?

Doesn't execute the scripts

Running Manjaro XFCE 18.0, it works perfectly but I decided to add the commands
xfconf-query -c xfwm4 -p /general/theme -s "your-theme"
so it changes the xfwm4 theme (if possible add this option for xfce)
and
xfconf-query -c xfce4-desktop -p /backdrop/screen0/monitorHDMI-0/workspace0/last-image -s "your-wallpaper"
so it changes the wallpaper
but it doesn't change, the commands work perfectly but it doesn't execute even if I run automathemely --restart
Any solution?
Thanks.


EDIT: You need to create a script file in order to work. (Sorry, thought commands were also able to do the job).

One or more of the script files was/were not found

I created two simple scripts and added them as a script file link in UI like this:

Sunrise: "file:///home/*****/.local/share/applications/shadowfox-off.sh"

  • script content:
    #!/bin/sh
    shadowfox-updater -uninstall

Sunset: "file:///home/****/.local/share/applications/shadowfox-on.sh"

  • script content:
    #!/bin/sh
    shadowfox-updater -set-dark-theme

When I execute automathemely, scripts dont execute and I get warrning:

Here is output from terminal:
[@Linux ~]$ automathemely
INFO: Switching to light themes...
kf5.kpackage: No metadata file in the package, expected it at: "/home/
/.local/share/plasma/look-and-feel/contents/"
ERROR: Script file 1 not found
WARNING: One or more of the script files was/were not found
[****@Linux ~]$

\

Automathemely fails to run automatically

Running automathemely (installed from AUR) on Antergos (on kernel: 5.0.2-arch1-1-ARCH) with Gnome (3.30.02). The program does everything it is supposed to do, except change the themes automatically. I have to invoke it manually by restarting the scheduler. If I do so, it correctly identifies day/night and changes the theme. I'm fairly new to Arch and Gnome (and really linux in general), so please feel free to tell me what I need to provide you with for tracking down the problem.

Can't uninstall

Ubuntu 20.04

Rebooted like in another issue. Didn't help. Because I cant uninstall, I cant install the new python 3.8 .deb file either someone posted. Catch 22 :/

udo apt-get remove automathemely
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  gnome-software-common libappstream-glib8 libfprint-2-tod1 python3-astral python3-schedule python3-tzlocal
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  automathemely
0 upgraded, 0 newly installed, 1 to remove and 13 not upgraded.
After this operation, 400 kB disk space will be freed.
Do you want to continue? [Y/n] 
(Reading database ... 225182 files and directories currently installed.)
Removing automathemely (1.3.0.dev1) ...
Root privileges not detected, trying to remove local installation...
Failed to connect to bus: No such file or directory
Failed to connect to bus: No such file or directory
Failed to connect to bus: No such file or directory
dpkg: error processing package automathemely (--remove):
 installed automathemely package pre-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
WARNING: Package(s) not found: automathemely
Root privileges not detected, falling back to local only installation...
NOTE: AutomaThemely is disabled from autostarting by default on local installation
cp: cannot stat '/automathemely/installation_files/autostart.desktop': No such file or directory
sed: can't read /root/.config/autostart/automathemely.desktop: No such file or directory
cp: cannot stat '/automathemely/installation_files/sun-times.timer': No such file or directory
cp: cannot stat '/automathemely/installation_files/sun-times.service': No such file or directory
sed: can't read /root/.config/systemd/user/automathemely.service: No such file or directory
Failed to connect to bus: No such file or directory
Failed to connect to bus: No such file or directory
Failed to connect to bus: No such file or directory
Errors were encountered while processing:
 automathemely
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

Sunset / Sunrise theme changes only applied at boot

I have the automathemely 1.3.0-dev1 version, modified to include python 3.8 support on Kubuntu 20.04

AuthomaThemely runs really great, applying sunset /sunrise theme changes.

But, those theme changes are only applied at boot time. If sunset or sunrise happens during a live session, the theme change is not applied until the next reboot.

Is it supposed to be like that? If so, can we request the feature to apply theme changes at the time of sunset / sunrise during a live session, and not have to wait until next reboot?

Can't swtich theme on visual studio code

I am using 'code' package on arch linux and this app doesn't seem to query the themes. Whenever I click the switcher, it gets disabled. I am guessing this may be the problem:

vscode_extensions_paths = ['/snap/vscode/current/usr/share/code/resources/app/extensions',
                                   '/usr/share/code/resources/app/extensions',
str(Path.home().joinpath('.vscode', 'extensions'))]

As in arch linux's 'code' package the extensions are located in /usr/lib/extensions. Similarly if you use the official Microsoft's linux binaries from 'visual-studio-code-bin' package, the extensions will be located in /opt/visual-studio-code/resources/app/extensions/'.

I tried to download and modify your code to see if this works, but I can't quite figure out how how to run this app on development mode.

Can't run

There's a bug in the code. The updsuntimes.py script tries to import Location.py, but the module is saved as "location.py" which gives an importation error. Simply due to Uppercase and Lowercase management(L and l). You can change every instance of Location to location, or you can just rename location.py to Location.py(Don't know if the latter works though.

Edit: So after fixing that in mine, turns out when you run automathemely from terminal, you get a "Module not callable error" from line 66 of updsuntimes.py (location=Location()). I fixed this by changing it to (location=Location.Location()). Hope this helps

Failure to Uninstall (after error in setting Cinnamon Desktop theme)

OS: Linux Mint 18.3 Cinnamon 3.6.7 (64-bit)
Linux Kernel: 4.15.0-45-generic

(Reading database ... 593498 files and directories currently installed.) Removing automathemely (1.3) ... sudo: unknown user: --global sudo: unable to initialize policy plugin Removed symlink /etc/systemd/user/timers.target.wants/automathemely.timer. sudo: unknown user: --global sudo: unable to initialize policy plugin dpkg: error processing package automathemely (--purge): subprocess installed pre-removal script returned error exit status 1 sudo: invalid option -- 'm' usage: sudo -h | -K | -k | -V usage: sudo -v [-AknS] [-g group] [-h host] [-p prompt] [-u user] usage: sudo -l [-AknS] [-g group] [-h host] [-p prompt] [-U user] [-u user] [command] usage: sudo [-AbEHknPS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-u user] [VAR=value] [-i|-s] [<command>] usage: sudo -e [-AknS] [-r role] [-t type] [-C num] [-g group] [-h host] [-p prompt] [-u user] file ... sudo: unknown user: --global sudo: unable to initialize policy plugin Created symlink /etc/systemd/user/timers.target.wants/automathemely.timer, pointing to /usr/lib/systemd/user/automathemely.timer. sudo: unknown user: --global sudo: unable to initialize policy plugin crontab: user -l' unknown
crontab: user -' unknown Errors were encountered while processing: automathemely E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install. Trying to recover:

Any Solutions to making Automathemely work? (I'd like to be able to keep it and using it.)

AutomaThemely fails to start when ran from its desktop file

Running AutomaThemely from its desktop file (so from its menu entry), the application fails to start. Looking at the automathemely.desktop file, the main entry is Exec=automathemely and this doesn't seem to run the GUI (it should have automathemely --manage for the main entry exec to actually open the GUI).

Cinnamon: problematic install and theme incomplete

Thank you for this program, very neat. I think such a tool has the potential to become a default in some distribution - like Redshift for example.

I use Linux Mint Cinnamon 19.1.

I installed the .deb based on python 3.6, with dependencies.

Install problems

After install no icon was present. It launched with "automathemely --manage", I could modify settings, but it wouldn't work. "automathemely --restart" shows a popup "INFO: restarted the scheduler", but themes wouldn't start.
After relogin, the icon was there, but theme still wouldn't change.

I deleted the configuration files, launched in console "automathemely" and then it worked.

Theme partially supported

  • the drop down menu for "desktop" in the GUI is greyed out. I can enter the desktop theme's name in user_settings.json, and then it works
  • cinnamon theme app is divided into five categories. I have not found a "look and feel" global option to change the theme like in KDE. This results in Automathemely not changing window decorations for example.

Does not support MATE desktop

The program does not work with Ubuntu MATE 19.10, and since there is no mention of MATE throughout the program or documentation, I presume it does not work. Unfortunately I do not have the skill needed to develop this myself, but I thought it worth mentioning.

Automathemely always switching to Dark Themes

No matter what configuration I set. AutomaThemely always choose the darkTheme.

My Configuration:
Captura de pantalla de 2019-04-20 21-41-11

Always get 'Switching to dark theme'
Captura de pantalla de 2019-04-20 21-43-13

I'm running Ubuntu 18.10
I have installed python3.6-automathemely_1.3_all.deb

Even when I refresh the configuration and set 'Update the sun times' and 'Reset the schedule' Automathemely seems to work well although it always select the dark theme.

Suggestion: LibreOffice Icon style

Some of the icon styles for LibreOffice offer a dark and a light mode and look weird if not used with a correspondingly light or dark theme (examples: "Sifr" and "Sifr (dark)").

The following line:
<item oor:path="/org.openoffice.Office.Common/Misc"><prop oor:name="SymbolStyle" oor:op="fuse"><value>sifr_dark</value></prop></item>

in the following file:
~/.config/libreoffice/4/user/registrymodifications.xcu

changes the theme on my machine.

Annoying note: Any changes to the file that are made while LibreOffice is open will be overwritten.

VS Code integration.

Whenever I try to toggle the VS Code button it disables, I don't know what to do.
Currently using Ubuntu 18.04 with Unity.

ModuleNotFoundError: No module named 'pytz'

[localhost@localhost-PC ~]$ automathemely --manage
Traceback (most recent call last):
  File "/usr/bin/automathemely", line 33, in <module>
    sys.exit(load_entry_point('AutomaThemely==1.3', 'console_scripts', 'automathemely')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/bin/automathemely", line 25, in importlib_load_entry_point
    return next(matches).load()
           ^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 202, in load
    module = import_module(match.group('module'))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 940, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3.11/site-packages/automathemely/bin/run.py", line 11, in <module>
    import pytz
ModuleNotFoundError: No module named 'pytz'
                 x;XxXB%89b8:b8%b88:              -----------------
              .8Xxd                8X:.           OS: Garuda Linux x86_64
            .8Xx;                    8x:.         Host: B550M DS3H -CF
          .tt8x          .d            x88;       Kernel: 6.7.0-rc3-1-mainline
       .@8x8;          .db:              xx@;     Uptime: 1 day, 2 hours, 3 mins
     ,tSXX°          .bbbbbbbbbbbbbbbbbbbB8x@;    Packages: 1523 (pacman)[stable]
   .SXxx            bBBBBBBBBBBBBBBBBBBBbSBX8;    Shell: fish 3.6.1
 ,888S                                     pd!    Resolution: 2560x1080
8X88/                                       q     DE: KDE Plasma 5.27.9
8X88/                                             WM: KWin (X11)
GBB.                                              WM Theme: Sweet-Dark
 x%88        d888@8@X@X@X88X@@XX@@X@8@X.          Theme: Breeze (Light) [QT], Vapor [GTK2], Sweet-Dark [GTK3/}
   dxXd    dB8b8b8B8B08bB88b998888b88x.           Icons: Breeze [QT], BeautyLine [GTK3/4]
    dxx8o                      .@@;.              Terminal: konsole 23.08.2
      dx88                   .t@x.                Terminal Font: FiraCode Nerd Font Mono 12
        d:SS@8ba89aa67a853Sxxad.                  CPU: AMD Ryzen 9 3900X (24) @ 4.71 GHz
          .d988999889889899dd.                    GPU: AMD Radeon RX 6700 XT
                                                  Memory: 15.20 GiB / 31.25 GiB
 ╭─root@localhost in ~ as 🧙 
 ╰─λ python
Python 3.11.5 (main, Sep  2 2023, 14:16:33) [GCC 13.2.1 20230801] on linux
Type "help", "copyright", "credits" or "license" for more information.

AutomaThemely on Ubuntu 19.04 (Python3.7)

I recently installed Automa Themely on my Ubuntu 19.04 release. However, every time I attempt to launch, it does not launch. When launching from the terminal it gives the message:
bash: /usr/local/bin/automathemely: /usr/bin/python3.6: bad interpreter: No such file or directory.

I am guessing this is because Ubuntu 19.04 comes with Python 3.7 installed as opposed to python 3.6. Is there any way to be able to use Python 3.7 instead, or do I need to install 3.6. Or is there something else I am completely missing?

ImportError: cannot import name 'Location' from 'astral'

Running automathemely fails for me:

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

Looking at astral's code, it seems that this should probably be from astral.location import Location? This was changed upstream mid-2019.

Can't uninstall AutomaThemely

Having an issue uninstalling this with Muon Package Manager. I'm using the Python 3.5 version of AT, which I mistakenly installed- I have Python 3.6.

When I try to uninstall, it gives me the following error:

An error occurred while applying changes:
automathemely
installed automathemely package pre-removal script subprocess returned error exit status 1

Any clarification on what I may be doing wrong would be highly appreciated!

AutomaThemely does not open on Manjaro 20.2

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

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.