ctypes.CDLL / ctypes.cdll.LoadLibrary

I need to load a .dll file via ctypes in my python extension →
[Error] [carb.scripting-python.plugin] OSError: [WinError 126] The specified module could not be found
2023-04-26 13:42:51 [Error] [carb.scripting-python.plugin] …\appdata\local\ov\pkg\code-2022.3.3\kit\python\lib\ctypes_init_.py(367): init

I checked, and it seems that ctypes is ok but this code does not work, I checked my code in another python environment and it was fine just not working in my omniverse extention.

Hi @lkhaleghi. Can you provide any example of which DLL you’re trying to load or how you’re trying to load it? I’m not sure from the error where it’s failing. Could be that there is another DLL that the one you’re loading depends on and that one is not being found. The possible issue is explained here: python - WindowsError: [Error 126] The specified module could not be found - Stack Overflow

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