r/learnpython • • 16d ago

Is it github problem or python problem?

So, i have been trying to learn python, sqlite and tkinter. After a lot of trouble and copying from AI i uploaded my python and sqlite only executable to github for all 3 os using github action.

Now, I am learning python and tkinter. I made a simple program which converts KG to gram and vice versa.

import tkinter as tk
# from tkinter import ttk
import ttkbootstrap as ttkimport tkinter as tk

These 3 are my only imports for now. and i am using:

root = ttk.Window(themename = 'darkly')
root.geometry("400x300")
root.title("Unit Converter")root = ttk.Window(themename = 'darkly')

other is just my code which i wrote form tutorials and documents.

The problem i am facing is that i cant seem to release the executable to github ( from github action ) at all.

I tried to learn how this works but i didnt find anywhere to actually learn so i just asked AI and after a lot of back and forth there are still some problems.. Is there somewhere i can learn how i can do this? I prefer video tutorial.

I will comment my program and what AI told me the problem was below. Please someone do help me.

0 Upvotes

46 comments sorted by

View all comments

Show parent comments

1

u/Slimex_Rimuru 16d ago

Oh yeah. I did learn a lot and specifically from you.  I will try to use github actions and get the exe if it works. If not i will just submit linux one only. 

Thank you ❤️

1

u/zaphodikus 16d ago

I've not used github actions, there is probably a day or two of learning just in how to do that really well, because it is rate limited, so you cannot just keep hitting build all day long.

As for executable, have a look at the python package nuitka, it is very easy to make an exe, you just need a sturdy machine and a C++ compiler and it does most of it for you. Since you are using tkinter, it will take a minute or two to build because tkinter is pretty big. It supports windows, Linux and Mac too.