Hi!
I get a KeyError while trying to build OP on macos (11.7.6)
OP version 3.15.8
Here’s the error log:
tools/build.sh
>>> Using python [ 3.9 ]
--- Cleaning build directory ...
>>> Building OpenPype [ 3.15.8 ]
>>> Cleaning cache files ...
>>> Cleaning pyc at [ /Users/videopro/git/OpenPype ] ... DONE
>>> Reading Poetry ... OK
>>> Making sure submodules are up-to-date ...
>>> Building ...
------------------------------------------
running bdist_mac
running build
running build_py
creating build/lib
copying start.py -> build/lib
running build_exe
Traceback (most recent call last):
File "/Users/videopro/git/OpenPype/setup.py", line 176, in <module>
setup(
File "/Users/videopro/.virtualenvs/py3/lib/python3.9/site-packages/cx_Freeze/__init__.py", line 68, in setup
setuptools.setup(**attrs)
File "/Users/videopro/.virtualenvs/py3/lib/python3.9/site-packages/setuptools/__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/Users/videopro/.virtualenvs/py3/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/Users/videopro/.virtualenvs/py3/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/Users/videopro/.virtualenvs/py3/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/Users/videopro/.virtualenvs/py3/lib/python3.9/site-packages/setuptools/dist.py", line 1208, in run_command
super().run_command(command)
File "/Users/videopro/.virtualenvs/py3/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/Users/videopro/.virtualenvs/py3/lib/python3.9/site-packages/cx_Freeze/command/bdist_mac.py", line 395, in run
self.run_command("build")
File "/Users/videopro/.virtualenvs/py3/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/Users/videopro/.virtualenvs/py3/lib/python3.9/site-packages/setuptools/dist.py", line 1208, in run_command
super().run_command(command)
File "/Users/videopro/.virtualenvs/py3/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/Users/videopro/.virtualenvs/py3/lib/python3.9/site-packages/cx_Freeze/command/build.py", line 176, in run
self.run_command(cmd_name)
File "/Users/videopro/.virtualenvs/py3/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/Users/videopro/.virtualenvs/py3/lib/python3.9/site-packages/setuptools/dist.py", line 1208, in run_command
super().run_command(command)
File "/Users/videopro/.virtualenvs/py3/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/Users/videopro/.virtualenvs/py3/lib/python3.9/site-packages/cx_Freeze/command/build_exe.py", line 259, in run
freezer.Freeze()
File "/Users/videopro/.virtualenvs/py3/lib/python3.9/site-packages/cx_Freeze/freezer.py", line 629, in Freeze
finder: ModuleFinder = self._get_module_finder()
File "/Users/videopro/.virtualenvs/py3/lib/python3.9/site-packages/cx_Freeze/freezer.py", line 352, in _get_module_finder
finder.include_package(name)
File "/Users/videopro/.virtualenvs/py3/lib/python3.9/site-packages/cx_Freeze/finder.py", line 791, in include_package
self._import_all_sub_modules(module, deferred_imports)
File "/Users/videopro/.virtualenvs/py3/lib/python3.9/site-packages/cx_Freeze/finder.py", line 237, in _import_all_sub_modules
sub_module = self._internal_import_module(
File "/Users/videopro/.virtualenvs/py3/lib/python3.9/site-packages/cx_Freeze/finder.py", line 377, in _internal_import_module
module = self._load_module(
File "/Users/videopro/.virtualenvs/py3/lib/python3.9/site-packages/cx_Freeze/finder.py", line 444, in _load_module
self._load_module_code(module, loader, deferred_imports)
File "/Users/videopro/.virtualenvs/py3/lib/python3.9/site-packages/cx_Freeze/finder.py", line 490, in _load_module_code
self._scan_code(module.code, module, deferred_imports)
File "/Users/videopro/.virtualenvs/py3/lib/python3.9/site-packages/cx_Freeze/finder.py", line 673, in _scan_code
imported_module = self._import_module(
File "/Users/videopro/.virtualenvs/py3/lib/python3.9/site-packages/cx_Freeze/finder.py", line 285, in _import_module
module = self._internal_import_module(name, deferred_imports)
File "/Users/videopro/.virtualenvs/py3/lib/python3.9/site-packages/cx_Freeze/finder.py", line 377, in _internal_import_module
module = self._load_module(
File "/Users/videopro/.virtualenvs/py3/lib/python3.9/site-packages/cx_Freeze/finder.py", line 444, in _load_module
self._load_module_code(module, loader, deferred_imports)
File "/Users/videopro/.virtualenvs/py3/lib/python3.9/site-packages/cx_Freeze/finder.py", line 483, in _load_module_code
self._run_hook("load", module.name, module)
File "/Users/videopro/.virtualenvs/py3/lib/python3.9/site-packages/cx_Freeze/finder.py", line 612, in _run_hook
method(self, *args)
File "/Users/videopro/.virtualenvs/py3/lib/python3.9/site-packages/cx_Freeze/hooks/_qthooks.py", line 333, in load_qt_qtwebenginewidgets
finder.include_module(f"{name}.QtWebEngineCore")
File "/Users/videopro/.virtualenvs/py3/lib/python3.9/site-packages/cx_Freeze/finder.py", line 781, in include_module
module = self._import_module(name, deferred_imports)
File "/Users/videopro/.virtualenvs/py3/lib/python3.9/site-packages/cx_Freeze/finder.py", line 285, in _import_module
module = self._internal_import_module(name, deferred_imports)
File "/Users/videopro/.virtualenvs/py3/lib/python3.9/site-packages/cx_Freeze/finder.py", line 377, in _internal_import_module
module = self._load_module(
File "/Users/videopro/.virtualenvs/py3/lib/python3.9/site-packages/cx_Freeze/finder.py", line 444, in _load_module
self._load_module_code(module, loader, deferred_imports)
File "/Users/videopro/.virtualenvs/py3/lib/python3.9/site-packages/cx_Freeze/finder.py", line 483, in _load_module_code
self._run_hook("load", module.name, module)
File "/Users/videopro/.virtualenvs/py3/lib/python3.9/site-packages/cx_Freeze/finder.py", line 612, in _run_hook
method(self, *args)
File "/Users/videopro/.virtualenvs/py3/lib/python3.9/site-packages/cx_Freeze/hooks/_qthooks.py", line 326, in load_qt_qtwebenginecore
copy_qt_files(finder, name, "TranslationsPath")
File "/Users/videopro/.virtualenvs/py3/lib/python3.9/site-packages/cx_Freeze/hooks/_qthooks.py", line 123, in copy_qt_files
source_path, target_path = libraryinfo_paths[variable] # type: Path, Path
KeyError: 'TranslationsPath'
Would you please elaborate on this?