OS: Windows 11 24H2
Python: Python 3.12.10 (using "pyenv-win"), venv through "pyenv-win-venv"
Hello,
Trying to create a portable version through your instructions but when I try to launch the application I receive these errors:
- Missing "config.json":
Traceback (most recent call last):
File "main.py", line 6, in <module>
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 457, in exec_module
File "frames\AnydeskFrame.py", line 16, in <module>
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 457, in exec_module
File "utils\file_operations.py", line 11, in <module>
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 457, in exec_module
File "utils\locale_utils.py", line 6, in <module>
File "utils\config_utils.py", line 23, in get_config_parameter_value
FileNotFoundError: [Errno 2] No such file or directory: 'config.json'
So even if the "config.json" is located in "_internal" I have to move it to the same folder as the exe.
I did that and received the next error.
- "FileNotFoundError: [Errno 2] No translation file found for domain: 'Main'"
Traceback (most recent call last):
File "main.py", line 6, in <module>
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 457, in exec_module
File "frames\AnydeskFrame.py", line 16, in <module>
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 457, in exec_module
File "utils\file_operations.py", line 11, in <module>
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 457, in exec_module
File "utils\locale_utils.py", line 9, in <module>
File "gettext.py", line 528, in translation
FileNotFoundError: [Errno 2] No translation file found for domain: 'Main'
My settings for "Auto-Py-To-EXE" is as follows:

and the textual equivalent:
pyinstaller --noconfirm --onedir --windowed
--icon "C:\Users\Username\git\AnyGrabber\assets\AnyGrabberIcon.ico"
--name "AnyGrabber"
--add-data "C:\Users\Username\git\AnyGrabber\assets;assets/" -
-add-data "C:\Users\Username\git\AnyGrabber\locale;locale/"
--add-data "C:\Users\Username\.pyenv-win-venv\envs\AnyGrabber\Lib\site-packages\customtkinter;customtkinter/"
--add-data "C:\Users\Username\.pyenv-win-venv\envs\AnyGrabber\Lib\site-packages\dateutil;dateutil/"
--add-data "C:\Users\Username\.pyenv-win-venv\envs\AnyGrabber\Lib\site-packages\PIL;PIL/"
--add-data "C:\Users\Username\.pyenv-win-venv\envs\AnyGrabber\Lib\site-packages\CTkMessagebox;CTkMessagebox/"
--add-data "C:\Users\Username\.pyenv-win-venv\envs\AnyGrabber\Lib\site-packages\bidict;bidict/"
--add-data "C:\Users\Username\git\AnyGrabber\config.json;."
"C:\Users\Username\git\AnyGrabber\main.py"
Would appreciate your help!
Thank you for the effort of creating this tool, looking forward to using it.
Best Regards
OS: Windows 11 24H2
Python: Python 3.12.10 (using "pyenv-win"), venv through "pyenv-win-venv"
Hello,
Trying to create a portable version through your instructions but when I try to launch the application I receive these errors:
So even if the "config.json" is located in "_internal" I have to move it to the same folder as the exe.
I did that and received the next error.
My settings for "Auto-Py-To-EXE" is as follows:

and the textual equivalent:
Would appreciate your help!
Thank you for the effort of creating this tool, looking forward to using it.
Best Regards