Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

GenerateIddFactory problem when building python bindings for OpenStudio

I've been attempting to build the python bindings for OpenStudio, and am running into an error when building related to the error described here: https://github.com/NREL/OpenStudio/issues/2796

Except in my case, the use of: make GenerateIddFactory make GenerateIddFactoryRun Doesn't seem to fix anything.

Details:

I'm using a 64 bit Ubuntu 14.04, running on a docker container. I've followed the instructions here: https://github.com/NREL/OpenStudio/wiki/Building-Additional-Language-Bindings, and have no problems until I attempt to run 'make' in the /build directory, which is where I'm running into this error.

Here's an image of my configuration settings in ccmake: image description

I have git cloned and attempted this with both the latest OpenStudio version, as well as v2.6.0, and v2.5.0 but no success with either. The end goal is to try and generate Python bindings for python 3, but for simplicity's sake I've been using python 2.7 as per the official instructions.

Questions:

  1. Is my configuration in ccmake set correctly? Do I only need to set BUILD_PYTHON_BINDINGS to ON, or do I need other options on? In the offical instructions, it says to enable "BUILD_SWIG" to make sure we get the most appropriate version of SWIG for the bindings, but that option doesn't seem to appear anywhere. Is that a relic from an older OpenStudio version, or am I doing something wrong?

  2. In order to narrow down the source of error due to version incompatibility, is there a version of OpenStudio that is known to generate the Python bindings correctly? I found this older repo from Julien: https://github.com/jmarrec/OpenStudio-2.0-Python3 indicating 2.0.0 is one, (with python 3!), but am wondering if there's anything more recent. (I'm in the process of cloning 2.0.0 now and testing it out).

Thanks,

Saeran

GenerateIddFactory problem when building python bindings for OpenStudio

I've been attempting to build the python bindings for OpenStudio, and am running into an error when building related to the error described here: https://github.com/NREL/OpenStudio/issues/2796

Except in my case, the use of: make GenerateIddFactory make GenerateIddFactoryRun Doesn't seem to fix anything.

Details:

I'm using a 64 bit Ubuntu 14.04, running on a docker container. I've followed the instructions here: https://github.com/NREL/OpenStudio/wiki/Building-Additional-Language-Bindings, and have no problems until I attempt to run 'make' in the /build directory, which is where I'm running into this error.

Here's an image of my configuration settings in ccmake: image description

I have git cloned and attempted this with both the latest OpenStudio version, as well as v2.6.0, and v2.5.0 but no success with either. The end goal is to try and generate Python bindings for python 3, but for simplicity's sake I've been using python 2.7 as per the official instructions.

My docker image is here, in case anyone wants to pull and check it out: https://hub.docker.com/r/saeranv/ops. All the dependencies are conveniently downloaded, include the 2.6.0 version of OpenStudio. The way I'm working right now is to ssh into the container, and make the build directory, and then run ccmake ../openstudiocore from there.

Questions:

  1. Is my configuration in ccmake set correctly? Do I only need to set BUILD_PYTHON_BINDINGS to ON, or do I need other options on? In the offical instructions, it says to enable "BUILD_SWIG" to make sure we get the most appropriate version of SWIG for the bindings, but that option doesn't seem to appear anywhere. Is that a relic from an older OpenStudio version, or am I doing something wrong?

  2. In order to narrow down the source of error due to version incompatibility, is there a version of OpenStudio that is known to generate the Python bindings correctly? I found this older repo from Julien: https://github.com/jmarrec/OpenStudio-2.0-Python3 indicating 2.0.0 is one, (with python 3!), but am wondering if there's anything more recent. (I'm in the process of cloning 2.0.0 now and testing it out).

Thanks,

Saeran Saeran