I have wroted a python app using tkinter and now I'm trying to make it executable for my Ubuntu. I've tried to instal Pyinstaller with pip install pip install pyinstaller
and then run pyinstaller --onefile main.py
. After the proces have ended I've decided to test my file and run ./dist/main
but got this error:
Traceback (most recent call last):
File "main.py", line 23, in <module>
File "connection_tab.py", line 20, in __init__
File "connection_tab.py", line 72, in get_params
FileNotFoundError: [Errno 2] No such file or directory: 'info.json'
[12398] Failed to execute script 'main' due to unhandled exception!
'info.json' is a file I use to store the data, and it seems pyinstaller have missed it.
What shoud I do to make it visible for app?