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

Ruby bindings in OpenStudio SDK error

Hi all,

I installed Ruby 2.7.3 onto my machine, which is the recommended version. I am using OS 2.9.0. I do not know if the embedded Ruby interpreter in OS 2.9.0 is a different version than 2.7.3 (maybe that is causing my problem).

I am trying to get OS gems/Ruby bindings (not sure the correct terminology here) into my command prompt/interactive ruby so I can more easily write measures.

However, I am getting this error when typing require "openstudio."

irb terminal error

Please advise if possible!

Ruby bindings in OpenStudio SDK error

Hi all,

I installed Ruby 2.7.3 onto my machine, which is the recommended version. I am using OS 2.9.0. I do not know if the embedded Ruby interpreter in OS 2.9.0 is a different version than 2.7.3 (maybe that is causing my problem).

I am trying to get OS gems/Ruby bindings (not sure the correct terminology here) into my command prompt/interactive ruby so I can more easily write measures.

However, I am getting this error when typing require "openstudio."

irb terminal error

Please advise if possible!edit: I was able to use uru to switch to the correct version of Ruby (2.2.4) for OS 2.9.0.

However, I am now facing a 32-bit vs 64-bit issue. irb terminal error 2

@shorowit can you advise?

Thanks!

Ruby bindings in OpenStudio SDK error

Hi all,

I installed Ruby 2.7.3 onto my machine, which is the recommended version. I am using OS 2.9.0. I do not know if the embedded Ruby interpreter in OS 2.9.0 is a different version than 2.7.3 (maybe that is causing my problem).

I am trying to get OS gems/Ruby bindings (not sure the correct terminology here) into my command prompt/interactive ruby so I can more easily write measures.

However, I am getting this error when typing require "openstudio."

irb terminal error

edit: I was able to use uru to switch to the correct version of Ruby (2.2.4) for OS 2.9.0.

However, I am now facing a I faced an additional error thrown because I was using 32-bit Ruby vs 64-bit issue. irb terminal error 2Ruby, but I was able to correct that by downloading Ruby 2.2.4x64 and adding switching to that environment using uru.

Now I am facing this error message.

irb terminal error 2

@shorowit can you advise?

Thanks!

Ruby bindings in OpenStudio SDK error

Hi all,

I installed Ruby 2.7.3 onto my machine, which is the recommended version. I am using OS 2.9.0. I do not know if the embedded Ruby interpreter in OS 2.9.0 is a different version than 2.7.3 (maybe that is causing my problem).

I am trying to get OS gems/Ruby bindings (not sure the correct terminology here) into my command prompt/interactive ruby so I can more easily write measures.

However, I am getting this error when typing require "openstudio."

irb terminal error

edit: I was able to use uru to switch to the correct version of Ruby (2.2.4) for OS 2.9.0.

I faced an additional error thrown because I was using 32-bit Ruby vs 64-bit Ruby, but I was able to correct that by downloading Ruby 2.2.4x64 and adding switching to that environment using uru.

Now I am facing this error message.

irb terminal error 2

@shorowit can you advise?

Thanks!

Ruby bindings in OpenStudio SDK error

Hi all,

I installed Ruby 2.7.3 onto my machine, which is the recommended version. I am using OS 2.9.0. I do not know if the embedded Ruby interpreter in OS 2.9.0 is a different version than 2.7.3 (maybe that is causing my problem).

I am trying to get OS gems/Ruby bindings (not sure the correct terminology here) into my command prompt/interactive ruby so I can more easily write measures.

However, I am getting this error when typing require "openstudio."

irb terminal error

edit: I was able to use uru to switch to the correct version of Ruby (2.2.4) for OS 2.9.0.

I faced an additional error thrown because I was using 32-bit Ruby vs 64-bit Ruby, but I was able to correct that by downloading Ruby 2.2.4x64 and adding switching to that environment using uru.

Now I am facing this error message.

irb terminal error 2

@shorowit can you advise?UPDATE: not sure what worked, maybe I forgot to switch to the x64 version of Ruby 2.2.4 (correct Ruby version for E+ v9.2), but I got the OS SDK bindings to work!

OS SDK bindings working

Thanks!

Ruby bindings in OpenStudio SDK error

Hi all,

I installed Ruby 2.7.3 onto my machine, which is the recommended version. I am using OS 2.9.0. I do not know if the embedded Ruby interpreter in OS 2.9.0 is a different version than 2.7.3 (maybe that is causing my problem).

I am trying to get OS gems/Ruby bindings (not sure the correct terminology here) into my command prompt/interactive ruby so I can more easily write measures.

However, I am getting this error when typing require "openstudio."

irb terminal error

edit: I was able to use uru to switch to the correct version of Ruby (2.2.4) for OS 2.9.0.

I faced an additional error thrown because I was using 32-bit Ruby vs 64-bit Ruby, but I was able to correct that by downloading Ruby 2.2.4x64 and adding switching to that environment using uru.

Now I am facing this error message.

irb terminal error 2

UPDATE: not sure what worked, maybe I forgot to switch to the x64 version of Ruby 2.2.4 (correct Ruby version for E+ v9.2), but I got the OS SDK bindings to work!

OS SDK bindings working

Thanks!