Load DLL raises an error - 'WinError 126' in PyCharm version 2019.1.2.
已回答
Hello
In 2018 version, this line works:
dll_hnd = cdll.LoadLibrary('dll_name.dll')
After updating to 2019.1.2 this line raises an error: '[WinError 126] The specified module could not be found'
Running the program from command line - 'python app_name' works.
How can i fix it?
Thanks
请先登录再写评论。
Hi, this is a known issue with the working directory handling https://youtrack.jetbrains.com/issue/PY-34978 The only workaround at the moment is to use an absolute path to the dll.
Hello
Adding absolute path did not help...
Do you have estimation for this bug to be fixed?
Thanks
> Do you have estimation for this bug to be fixed?
Unfortunately not yet, will ping the dev team about it. I am sorry for the inconvenience.