Hello all!
I’m working on hacking together a working Toonboom Harmony integration from the existing one made around 7 years ago ( GitHub - diegogarciahuerta/tk-harmony: 💥 Shotgun Toolkit Engine for Toon Boom Harmony: https://www.toonboom.com/products/harmony ).
I’ve got the panels and such working, saving workfiles working, but now I’m stuck with publishing. When trying to extract the version number, it seems that the tank template path parser is interpreting the path as a string (I’ve already encoded the path into UTF-8 before passing it through). Here’s the traceback I have:
Traceback (most recent call last):
File “N:\Tools\SANDBOX\shotgrid_tk_test\testenv_sgtk\install\app_store\tk-multi-publish2\v2.10.7\python\tk_multi_publish2\api\plugins\publish_plugin_instance.py”, line 150, in run_accept
return self._hook_instance.accept(self.settings, item)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “N:\Tools\SANDBOX\shotgrid_tk_test\testenv_sgtk\install\git\tk-harmony.git\v2.2.1\hooks\tk-multi-publish2\basic\start_version_control.py”, line 129, in accept
version_number = self._get_version_number(path, item)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “N:\Tools\SANDBOX\shotgrid_tk_test\testenv_sgtk\install\git\tk-harmony.git\v2.2.1\hooks\tk-multi-publish2\basic\start_version_control.py”, line 258, in _get_version_number
work_fields = work_template.get_fields(path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “N:\Tools/SANDBOX/shotgrid_tk_test/testenv_sgtk/install/core/python\tank\template.py”, line 505, in get_fields
fields = path_parser.parse_path(input_path, skip_keys)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “N:\Tools/SANDBOX/shotgrid_tk_test/testenv_sgtk/install/core/python\tank\template_path_parser.py”, line 132, in parse_path
token_pos = lower_path.find(token, token_pos)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument should be integer or bytes-like object, not ‘str’
Any kind of advice would be helpful!