Python SDK Bindings for OpenStudio
I'm trying to use the Python bindings for the OpenStudio SDK. I've gone through the instructions on the OpenStudio Wiki for developers and have used CMake and Visual Studio Express to compile the source code from the Github repository. I compiled the ALL_BUILD in the OpenStudioCore solution as Release x64. I've added "<\path_to_openstudio>\Openstudio-1.5.3\build\OSCore-prefix\src\OSCore-build\Products\python\Release" to my PythonPath.
When I test a module import in Python:
import openstudioairflow
I get the following error message:
Traceback (most recent call last):
File "stdin", line 1, in <module>File "<\path_to_openstudio>\Openstudio-1.5.3\build\OSCore-prefix\src\OSCore-build\Products\python\Release\openstudioairflow.py", line 28, in module _openstudioairflow = swig_import_helper() File
File "<\path_to_openstudio>\Openstudio-1.5.3\build\OSCore-prefix\src\OSCore-build\Products\python\Release\openstudioairflow.py", line 24, in swig_import_helper _mod = imp.load_module('_openstudioairflow', fp, pathname, description)
ImportError: DLL load failed: The specified module could not be found.
It appears to be an error in the SWIG link to the DLLs. The Release folder contains .py, .pyd, and .exp files. I do not see any .DLL files, but there were no compiler errors.
Is there an additional step that I am missing in compiling or configuring the bindings?
@Mark Adams might be able to help