#๐Ÿ”’ Customtkinter GUI runs other scripts through subprocess calls, but won't work when packaged as exe

11 messages ยท Page 1 of 1 (latest)

gleaming basinBOT
#

@gloomy prawn

Python help channel opened

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.

gloomy prawn
#

Hi there. I have an interface.py that allows the user to select an item, then run a specific script along with a some variables, passed through a subprocess call. However, when I try to package the scripts as an .exe, it either re-reruns the interface.py and generates another iteration of the GUI, or it doesn't find the script needed to run and gives me an error.

Here is the interface.py:

#

How do I fix this to properly run as an exe? I've heard using multiprocess instead of subprocess should work, or an entrypoint script - but I'm unsure how to implement either

pseudo loom
#

the issue is running a python script that is in the same folder as the executable?

#
./cool.exe
./gen_kenvue_daily_validations.py
```like this?
gloomy prawn
#

Hi Gui - I want to package all the files into a single file, to be deployable as a single .exe

#

The interface.py should load, allowing the user to select the script that runs - in addition to the extra information passed as part of the subprocess call

gleaming basinBOT
#
Python help channel closed

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.