Packaging my text-user-interface and its requirements.txt libraries into a "1-click" executable #4512
Unanswered
ishaan-ghosh
asked this question in
Q&A
Replies: 1 comment
-
Today was my first time trying
What exactly is that code and the traceback? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Guys! I have built a pretty simple text-user-interface with textual for a third-party command line interface library I am utilizing. My current objective is to package the TUI as a binary/executable, I want the executable to be "1-click", meaning I don't need the end-user to install any libraries (the CLI or textual), or even python itself honestly (even though that should be very uncommon).
The basic project hierarchy is like so:
The CLI I am building the TUI for is a part of the PyPi repository, and is including in my TUI requirements.txt, so it should be easy to add to the packaged executable.
How would I go about doing something like this? I have already attempted using PyInstaller using the following command:
However, it doesn't seem to package the CLI with the TUI. When I attempt to run the TUI it hits my internal error check for whether the TUI can be called, and errors out. Does anybody have prior experience packaging a small textual project with additional python library requirements like this? If so, I would greatly appreciate some advice on whether a different packaging library worked better for you, or if I may be doing something wrong with PyInstaller.
Any advice is much appreciated!
Beta Was this translation helpful? Give feedback.
All reactions