Lukáš Chovanec
Lukas Chovanec
About Me
EXPERTISE
Developer
INDUSTRY
Gamedev
Connect
LOCATION
Germany
WEBSITE
Houdini Skills
Availability
Not Specified
Recent Forum Posts
Houdini 20.0 - Python _pdg module import error Nov. 19, 2023, 12:50 p.m.
Hello folks!
I was trying to import _pdg module ( which gets imported directly into pdg module itself). Problem is, once I try import this module into my python interpreter, it returns this error :
I figure I am missing some .dll which are necessary for this module but couldn't track which ones. Does anyone have some experience with this? I already spent too much time digging on this one without much success. All necessary .dll are defined in houdini folders since _pdg import works inside houdini python shell.
I was trying to import _pdg module ( which gets imported directly into pdg module itself). Problem is, once I try import this module into my python interpreter, it returns this error :
DLL load failed while importing _pdg: The specified module could not be found.
I figure I am missing some .dll which are necessary for this module but couldn't track which ones. Does anyone have some experience with this? I already spent too much time digging on this one without much success. All necessary .dll are defined in houdini folders since _pdg import works inside houdini python shell.
Getting Autocompletion for PDG python module in vscode Oct. 27, 2023, 6:57 p.m.
Hey everyone!
I was wondering what is correct workflow for setting up syntax Autocompletion (vscode intellisense). Plugging the hou module into intellisense works very well. Problem starts once I work with pdg module or more specifically _pdg module (*which gets imported into pdg module and contain most of classes). IDE of course can't read .pyd file and since there are not .pyi with overall skeleton, Intellisense is useless.
I found a temporary workaround. Basically generate “stubs” directly from the file with cmd utility, but it does't work on all .pyd files (I suspect it misses a bunch of other libs) and is not complete.
At the same time, I can't shake the feeling.. This is a completely wrong way to approach it and there is a correct workflow on how to make Intellisense work properly. Ideally one which is venv friendly.
I was wondering what is correct workflow for setting up syntax Autocompletion (vscode intellisense). Plugging the hou module into intellisense works very well. Problem starts once I work with pdg module or more specifically _pdg module (*which gets imported into pdg module and contain most of classes). IDE of course can't read .pyd file and since there are not .pyi with overall skeleton, Intellisense is useless.
I found a temporary workaround. Basically generate “stubs” directly from the file with cmd utility, but it does't work on all .pyd files (I suspect it misses a bunch of other libs) and is not complete.
At the same time, I can't shake the feeling.. This is a completely wrong way to approach it and there is a correct workflow on how to make Intellisense work properly. Ideally one which is venv friendly.