Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Someone please upgrade this tool for Ubuntu 20.04 / Python 3.8 #42

Open
shivampotdar opened this issue Apr 25, 2020 · 10 comments
Open

Someone please upgrade this tool for Ubuntu 20.04 / Python 3.8 #42

shivampotdar opened this issue Apr 25, 2020 · 10 comments

Comments

@shivampotdar
Copy link

20.04 LTS is upstream and many people are upgrading to it. This tool by default supports only upto Python version 3.6. I tried playing with the .package.sh file but could not get it working :(

@jjemil749
Copy link

jjemil749 commented May 14, 2020

That's right.
Please upgrade tool for 20.04 Ubuntu distros.

On Kubuntu 20.04,

$ sudo dpkg -i python3.6-automathemely_1.3_all.deb

gives:
Setting up automathemely (1.3) ...
WARNING: Package(s) not found: automathemely

When trying to launch automathemely:

$ automathemely
/usr/bin/python3.6: bad interpreter: No such file or directory

$ python3 --version
Python 3.8.2

@jjemil749
Copy link

jjemil749 commented May 23, 2020

I believe I'm good now.

I re-read the instructions on the homepage. It's tested in Ubuntu 16.04 and 18.04.

For other distros (I'm on Kubuntu 20.04), there's a try packaging it yourself link:
https://github.com/C2N14/AutomaThemely/wiki/Packaging-it-yourself

After cloning the source code with git clone, then in install-scripts/.package.sh
I changed python_versions=("3.5" "3.6") to python_versions=("3.8")

Then ran the code with sudo ./.package.sh (gave some missing files errors)

I installed the resulting package with:
$ sudo dpkg -i python3.8-automathemely_1.3.0.dev1_all.deb (gave some missing files errors)

I ran the post installation package in install_scripts
$ sudo ./postinst.sh (gave some missing files errors)

Through a computer wide search for the missing files, I discovered that the missing files from the errors are in the compiled source folder in:

build/lib/automathemely/lib/installation_files

So, I copied the folder installation_files to /usr/local/lib/python3.8/dist-packages/automathemely (where it's supposed to be according to the errors)

I ran the post installation script again, this time no missing files errors came up, just a "could not connect to D-Bus" error

I fixed the autostart problem:
automathemely.desktop got installed to /usr/local/share/applications (seems wrong, it's the only .desktop there)
I copied automathemely.desktop to /usr/share/applications (where it seems it should have been)

I then copied automathemely.desktop to the user autostart folder by using the command from user @florianmw in issue# 12

sed 's/\(Exec=automathemely\)\ \-\-manage/\1/' \ /usr/share/applications/automathemely.desktop >| \ $HOME/.config/autostart/automathemely.desktop

I seems to run fine. AutomaThemely autostarts and a notification pop-up informs that it applied the dark or light theme. At night, it applied the dark theme. During the day, it applied the light theme. Seems to be working fine.

I'm on automatic location, but there doesn't seem to be a way to verify what location is detected.

In case the project developer doesn't get around to updating the package, he gave us the ability to do it ourselves to a certain extent. I'm no programmer or developer. I'm just observant, can read carefully, and know my way around google searches.

@harpreetsb
Copy link

harpreetsb commented Jun 24, 2020

Does not seem to work on UBUNTU CINNAMON
ran this
sudo dpkg -i ~/Downloads/python3.8-automathemely_1.3.0.dev1_all.deb

got this
(Reading database ... 312835 files and directories currently installed.) Preparing to unpack .../python3.8-automathemely_1.3.0.dev1_all.deb ... Warning: The unit file, source configuration file or drop-ins of automathemely.timer changed on disk. Run 'systemctl --user daemon-reload' to reload units. Removed /etc/systemd/user/timers.target.wants/automathemely.timer. Unpacking automathemely (1.3.0.dev1) over (1.3) ... Setting up automathemely (1.3.0.dev1) ... Root privileges not detected, falling back to local only installation... NOTE: AutomaThemely is disabled from autostarting by default on local installation cp: cannot stat '/usr/local/lib/python3.8/dist-packages/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 '/usr/local/lib/python3.8/dist-packages/automathemely/installation_files/sun-times.timer': No such file or directory cp: cannot stat '/usr/local/lib/python3.8/dist-packages/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

@YaoLaiGang
Copy link

I believe I'm good now.

I re-read the instructions on the homepage. It's tested in Ubuntu 16.04 and 18.04.

For other distros (I'm on Kubuntu 20.04), there's a try packaging it yourself link:
https://github.com/C2N14/AutomaThemely/wiki/Packaging-it-yourself

After cloning the source code with git clone, then in install-scripts/.package.sh
I changed python_versions=("3.5" "3.6") to python_versions=("3.8")

Then ran the code with sudo ./.package.sh (gave some missing files errors)

I installed the resulting package with:
$ sudo dpkg -i python3.8-automathemely_1.3.0.dev1_all.deb (gave some missing files errors)

I ran the post installation package in install_scripts
$ sudo ./postinst.sh (gave some missing files errors)

Through a computer wide search for the missing files, I discovered that the missing files from the errors are in the compiled source folder in:

build/lib/automathemely/lib/installation_files

So, I copied the folder installation_files to /usr/local/lib/python3.8/dist-packages/automathemely (where it's supposed to be according to the errors)

I ran the post installation script again, this time no missing files errors came up, just a "could not connect to D-Bus" error

I fixed the autostart problem:
automathemely.desktop got installed to /usr/local/share/applications (seems wrong, it's the only .desktop there)
I copied automathemely.desktop to /usr/share/applications (where it seems it should have been)

I then copied automathemely.desktop to the user autostart folder by using the command from user @florianmw in issue# 12

sed 's/\(Exec=automathemely\)\ \-\-manage/\1/' \ /usr/share/applications/automathemely.desktop >| \ $HOME/.config/autostart/automathemely.desktop

I seems to run fine. AutomaThemely autostarts and a notification pop-up informs that it applied the dark or light theme. At night, it applied the dark theme. During the day, it applied the light theme. Seems to be working fine.

I'm on automatic location, but there doesn't seem to be a way to verify what location is detected.

In case the project developer doesn't get around to updating the package, he gave us the ability to do it ourselves to a certain extent. I'm no programmer or developer. I'm just observant, can read carefully, and know my way around google searches.

may you share package for python3.8 ? thanks a lot !

@theGBguy
Copy link

theGBguy commented Aug 20, 2020

Here is the package for python 3.8 but I need to perform other steps such as copying the file in the correct places because post installation script wouldn't do automatically.
python3.8.zip

@picolens
Copy link

Anyone get this working on 3.8 / Ubuntu 20.04 in an easy breezy way? I really love it, but this seems complicated to for a noob like myself to get it working again.

@picolens
Copy link

Here is the package for python 3.8 but I need to perform other steps such as copying the file in the correct places because post installation script wouldn't do automatically.
python3.8.zip

Thanks for this. Downloaded and extracted. Then I got a bit weirded out when looking at the .sh file. Any idea why there all those control chars in an .sh? It might be normal, but looks very odd to me as I've never seen that before!

image

@theGBguy
Copy link

Sorry! I am also a noob linux user but I have some programming experiences though. I just followed the Packaging it yourself guide and made this. Tried to install, there were a lot of errors. Saw the post_installation script file, moved few things to correct directory. Still, I can open the GUI but it's not functional :(

@yllekz
Copy link

yllekz commented Jan 3, 2022

Can someone put in a pull request with all these fixes? This package doesn't work on the current edition of Linux Mint.

@dclimber
Copy link

dclimber commented Feb 9, 2022

@yllekz I've updated the app for Linux Mint 20.2. Seems to work.
Here's the link to my repo — https://github.com/dclimber/AutomaThemely.
Installation instructions are in README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants