App don't start

11 views
Skip to first unread message

Daniel Menkel

unread,
Jan 23, 2023, 5:15:19 AM1/23/23
to PyInstaller
Hi,
after some working Apps I tried a new one.
This Program has to open a *.txt file or create a new if not found. If I start Python the Program does his work. After using pyinstaller the don't start, so I try to start with Terminal using ./App-name I get this Error:
UnboundLocalError: local variable 'inhalt' referenced before assignment

The variable 'inhalt' reads the *.txt file.
When I add the file nothing happens. 
Even in the Terminal with ./App_name 
Nothing starts, No Error. Just a new line command line.

What could be wrong.

Steps in the App:
open *.txt if exist if not create
calculate
add new data
calculate
save
Reply all
Reply to author
Forward
0 new messages