Python scripting stops working after some time

Hi,
After applying the python scripting to a prim, it works in the beginning, but after some time it stops working and I get the error like below. I have to quit the app and relaunch again for it to work, and then the same problem happens again. Can you help to check? I’m using Create 2022.3.3

2023-04-09 12:39:53  [Error] [carb.events.python] OSError: [Errno 22] Invalid argument
2023-04-09 12:39:53  [Error] [carb.events.python] 
2023-04-09 12:39:53  [Error] [carb.events.python] At:
2023-04-09 12:39:53  [Error] [carb.events.python]   d:/ov/library/create-2022.3.3/kit/kernel/py\omni\kit\app\_impl\__init__.py(137): write
2023-04-09 12:39:53  [Error] [carb.events.python]   D:\ov\tutorials\code\Hover\Hover.py(17): on_play
2023-04-09 12:39:53  [Error] [carb.events.python]   d:\ov\library\create-2022.3.3\extscache\omni.kit.scripting-104.2.2+104.2.wx64.r.cp37\omni\kit\scripting\scripts\script_manager.py(111): <lambda>
2023-04-09 12:39:53  [Error] [carb.events.python]   d:\ov\library\create-2022.3.3\extscache\omni.kit.scripting-104.2.2+104.2.wx64.r.cp37\omni\kit\scripting\scripts\script_manager.py(354): _foreach_script_instance
2023-04-09 12:39:53  [Error] [carb.events.python]   d:\ov\library\create-2022.3.3\extscache\omni.kit.scripting-104.2.2+104.2.wx64.r.cp37\omni\kit\scripting\scripts\script_manager.py(111): _on_timeline_event
2023-04-09 12:39:53  [Error] [carb.events.python]   d:\ov\library\create-2022.3.3\kit\exts\omni.kit.widget.toolbar\omni\kit\widget\toolbar\commands.py(19): do
2023-04-09 12:39:53  [Error] [carb.events.python]   d:\ov\library\create-2022.3.3\kit\extscore\omni.kit.commands\omni\kit\undo\undo.py(80): execute
2023-04-09 12:39:53  [Error] [carb.events.python]   d:\ov\library\create-2022.3.3\kit\extscore\omni.kit.commands\omni\kit\commands\command.py(459): execute
2023-04-09 12:39:53  [Error] [carb.events.python]   d:\ov\library\create-2022.3.3\kit\exts\omni.kit.widget.toolbar\omni\kit\widget\toolbar\builtin_tools\models\timeline_model.py(37): set_value

Hi @qazs. This is a known issue when you use print directly. You can find the workaround and internal issue number here: Calling on_update gives OSError:Errno22 Invalid argument - #4 by mati-nvidia
Keep an eye on the Kit Release Notes for the issue number to know when it’s been fixed.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.