#🔒 Please help, problem with running .exe file
68 messages · Page 1 of 1 (latest)
@acoustic maple
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Discord bot says me the message is too long, so ask me in dm for my code, if you're gonna help
Alright, hold on
this one?
Yh
I dont know how to help with you code but wanted to let you know how to upload your code
Do you know someone who could help? I mean I'm in a bit hurry, it's very important
I think all we can do is wait for someone to help us
Open the exe via the console manually - because the "quickly flashing console" is showing the error, but because the program is finished, the console closes. If you open the console yourself, it won't close when the program finishes, so you'll be able to see the error
How to do it?
Also, why is the requirement to give it to students as an exe?
Well, I mean it's supposed to be "a programm with some easy interface", not just in console. That's why I thought it'll work good in .exe
Is there other ways to do it?
Honest question: How are you coding in python and not know how to open a console manually and run something in there?
Coding in python, you had to open cmd or powershell and run scripts, didn't you? It's the same, but just tell console to run filename.exe instead of py filename.py
Because I missed my course and trying to do individually.
Also, I code in Python, using VisualCode
And yes, I used PowerShell as a console, if that's what you've meant
Then you should learn python basics first, where basic operations in terminal are needed.
Even in visual studio code, there's a terminal at the bottom
Yes, I know bro, but that's the point, I have very limited time
For now my first position is to get this work done
Then open the terminal and run the exe, and give us the error
Sure, hold on
Or since you missed your class, ask your teacher for extension on the task... Unless it was already long time to get it working and you're doing it last minute
ls
Please
Seems like the exe is either different name or not here at all
ls is powershell binding for listing files in current directory
But I showed you, it's on the screenshot, "Test_OS_22"
Ah, I read only the red part. The bottom in grey actually tells you how to run it
I see, lemme try
Some big process launched, and that's what it says in the end
Also, I tried to launch .exe code again, now this time it scrolled some codes and also closed itself
No pause
So what else is it supposed to do?
It looks like the JSON file is there. The code just loads it then ends
I don't really understand, but I thought we're launching .exe file manualy
It still doesn't
Also interesting moment, some tries ago, when I made test version with 2 questions, the program worked
Since I changed it to 22 questions, it's just doesn't work
So anyone knows what to do?
What happens if you delete the JSON file and run the exe again?
Will let you know
It scrolls some programs in console again, closes it, and creates new JSON file
So the program works?
Ummm
No?
By the code, my program should work as .exe file with interface, when there tests and you click on answers
But it doesn't even launch anymore
The code you posted does not use tkinter at all though
I took it from chat gpt
And again, it worked just today, I've had launched the program which has basic interface and allows me to take tests
So what actually happened is a big mystery to me
Did you paste all of the code into the link above? Like I said there is no code that uses tkinter so no GUI will open
Yes, that's the full code. But wait, I think I'm gonna change something
I'll let you know
The code from here just loads the questions and doesn't start any gui, just as Wolfy said - so the exe works exactly like the code said.
My guess is that when adding more questions, you deleted the code below that.
Seems like that, I'm trying to recheck, thank you
Alright everyone, so everything works now
I have the exact program I tried to make
Thanks for everyone who helped
Seems like I lost huge fucking part of a code
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.