Hello! I’m trying to build a python program that uses OpenTPS but I’m running into this issue:
File “main.py”, line 8, in
File “”, line 1176, in _find_and_load
File “”, line 1147, in _find_and_load_unlocked
File “”, line 690, in load_unlocked
File “PyInstaller\loader\pyimod02_importers.py”, line 457, in exec_module
File "opentps\core_init.py", line 4, in
File “opentps\core_loggingConfig.py”, line 15, in init
File “opentps\core\utils\programSettings.py”, line 70, in workspace
File “configparser.py”, line 979, in getitem
KeyError: ‘dir’
Has anyone encountered this before? ChatGPT says its missing config file but I haven’t been able to figure out how to fix it yet
Unfortunately, we haven’t attempted to build a program using OpenTPS.
However, based on your description, the issue may be related to the OpenTPS workspace or to the configuration file used to generate it (see this file).
You could try deleting the workspace before launching your program to see if it is regenerated correctly.
If that doesn’t resolve the problem, please share more details about your program and how you’re compiling it. We’ll do our best to assist you.
And of course, don’t hesitate to let us know if you manage to find a solution.