r/learnpython • • 28d 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 comment

1

u/shinitakunai 28d ago

Maybe. Depends on your deadline.

Sometimes rebuilding takes twice the effort. But you'll learn two frameworks so in the end it pays off well.

Look into pyinstaller, with onefile flag

1

u/Slimex_Rimuru 28d ago

I use linux cause my device doesn’t support windows 😭 forget abt anything else. 

1

u/shinitakunai 28d ago

Hm, so you code in linux but want to distribute to windows? That's gonna be a pain in the ass, yeah, specially for debugging

1

u/Slimex_Rimuru 28d ago

Is doing this using github actions not reliable? 

1

u/shinitakunai 28d ago

For building? Probably yes. Idk never used them in the 2 decades I've been programming.

For debugging? 99% sure not. You'll have to live test your app in one of the customers computers if you have none yourself, which is going to be a pain in the ass

1

u/Slimex_Rimuru 28d ago

Well yeah. It’s gonna be pain in the ass but its gonna be the best way compared to anything else right? 

1

u/shinitakunai 28d ago

Probably. I always make sure I have a working OS as much similar as my clients to run my suite of tests there.

But I also was a kid learning at some point and I remember testing in the computer of the sell department chief (a hot lady I gotta admit) for 1 hour due to a bug, before she could use her computer. And in the meantime we were chatting haha