You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Windows 11. Exported a short project from DaVinci Resolve in FCP7 XML, opened it with no problem in kdenlive. But when trying to "Export OTIO", there were problems with "docversion", then with "time", then... I changed the script following ChatGPT advice (eg replacing line 248 with if docversion and float(docversion) < float("1.1"):, or changing the time function) but still got
Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "C:\Users\genia\AppData\Local\Programs\Python\Python312\Scripts\otioconvert.exe_main.py", line 7, in
File "C:\Users\genia\AppData\Local\Programs\Python\Python312\Lib\site-packages\opentimelineio\console\otioconvert.py", line 238, in main
result_tl = otio.adapters.read_from_file(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\genia\AppData\Local\Programs\Python\Python312\Lib\site-packages\opentimelineio\adapters_init.py", line 143, in read_from_file
return adapter.read_from_file(
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\genia\AppData\Local\Programs\Python\Python312\Lib\site-packages\opentimelineio\adapters\adapter.py", line 110, in read_from_file
result = self._execute_function(
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\genia\AppData\Local\Programs\Python\Python312\Lib\site-packages\opentimelineio\plugins\python_plugin.py", line 144, in _execute_function
return (getattr(self.module(), func_name)(**kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:/Users/genia/AppData/Local/Programs/Python/Python312/Lib/site-packages/otio_kdenlive_adapter\adapters\kdenlive.py", line 310, in read_from_string
item = item_from_xml(xml_item, rate, byid, bin_producer_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:/Users/genia/AppData/Local/Programs/Python/Python312/Lib/site-packages/otio_kdenlive_adapter\adapters\kdenlive.py", line 142, in item_from_xml
gap = otio.schema.Gap(
^^^^^^^^^^^^^^^^
TypeError: init(): incompatible constructor arguments. The following argument types are supported:
1. opentimelineio._otio.Gap(name: str = '', source_range: opentimelineio._opentime.TimeRange = otio.opentime.TimeRange(start_time=otio.opentime.RationalTime(value=0, rate=1), duration=otio.opentime.RationalTime(value=0, rate=1)), effects: Optional[List[opentimelineio._otio.Effect]] = None, markers: Optional[List[opentimelineio._otio.Marker]] = None, metadata: object = None)
2. opentimelineio._otio.Gap(name: str = '', duration: opentimelineio._opentime.RationalTime = otio.opentime.RationalTime(value=0, rate=1), effects: Optional[List[opentimelineio._otio.Effect]] = None, markers: Optional[List[opentimelineio._otio.Marker]] = None, metadata: object = None)
Invoked with: kwargs: duration=None
The text was updated successfully, but these errors were encountered:
Hi, the new version of kdenlive (25.04.0) supports OTIO natively, could you try using that instead? You should be able to export an .otio file from Resolve, and then open it in kdenlive directly with the "File/OpenTimelineIO Import" menu.
Windows 11. Exported a short project from DaVinci Resolve in FCP7 XML, opened it with no problem in kdenlive. But when trying to "Export OTIO", there were problems with "docversion", then with "time", then... I changed the script following ChatGPT advice (eg replacing line 248 with if docversion and float(docversion) < float("1.1"):, or changing the time function) but still got
Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "C:\Users\genia\AppData\Local\Programs\Python\Python312\Scripts\otioconvert.exe_main.py", line 7, in
File "C:\Users\genia\AppData\Local\Programs\Python\Python312\Lib\site-packages\opentimelineio\console\otioconvert.py", line 238, in main
result_tl = otio.adapters.read_from_file(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\genia\AppData\Local\Programs\Python\Python312\Lib\site-packages\opentimelineio\adapters_init.py", line 143, in read_from_file
return adapter.read_from_file(
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\genia\AppData\Local\Programs\Python\Python312\Lib\site-packages\opentimelineio\adapters\adapter.py", line 110, in read_from_file
result = self._execute_function(
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\genia\AppData\Local\Programs\Python\Python312\Lib\site-packages\opentimelineio\plugins\python_plugin.py", line 144, in _execute_function
return (getattr(self.module(), func_name)(**kwargs))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:/Users/genia/AppData/Local/Programs/Python/Python312/Lib/site-packages/otio_kdenlive_adapter\adapters\kdenlive.py", line 310, in read_from_string
item = item_from_xml(xml_item, rate, byid, bin_producer_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:/Users/genia/AppData/Local/Programs/Python/Python312/Lib/site-packages/otio_kdenlive_adapter\adapters\kdenlive.py", line 142, in item_from_xml
gap = otio.schema.Gap(
^^^^^^^^^^^^^^^^
TypeError: init(): incompatible constructor arguments. The following argument types are supported:
1. opentimelineio._otio.Gap(name: str = '', source_range: opentimelineio._opentime.TimeRange = otio.opentime.TimeRange(start_time=otio.opentime.RationalTime(value=0, rate=1), duration=otio.opentime.RationalTime(value=0, rate=1)), effects: Optional[List[opentimelineio._otio.Effect]] = None, markers: Optional[List[opentimelineio._otio.Marker]] = None, metadata: object = None)
2. opentimelineio._otio.Gap(name: str = '', duration: opentimelineio._opentime.RationalTime = otio.opentime.RationalTime(value=0, rate=1), effects: Optional[List[opentimelineio._otio.Effect]] = None, markers: Optional[List[opentimelineio._otio.Marker]] = None, metadata: object = None)
Invoked with: kwargs: duration=None
The text was updated successfully, but these errors were encountered: