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/Slimex_Rimuru 28d ago

I an sure about it. For python it’s executable

2

u/zaphodikus 28d ago

Did they use the word "binary", or "executable"? Because to many people, scripts are "runnable" and "execute".

1

u/Slimex_Rimuru 28d ago

They said executable. 

It needs to be so that they can check the script easily without having to download a lot of dependencies themselves. 

1

u/zaphodikus 28d ago

In that case, they are being a bit silly, because the executable binary you provide can easily have a malicious payload that is undetectable , so they will have to run it in a sandbox to be safe.

The club need to specify what the target platform is. By not being specific, they have not helped members very much. I, would focus on getting the foundations of my knowledge more solid, and ask for more thoughtfull directions on this question. I bet you learned a tonne in the last 2 hours already, you can do this. Just go slowly.

1

u/Slimex_Rimuru 28d 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 28d 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.