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

Measure Test File Not Working with OS 2.1.0

I had measure test files working with 1.14, but then upgraded to 2.1.0 and can't seem to get them to work. I was using the Ruby instance packaged with OS before, but was unable to find the Ruby install with OS 2.1.0. I have installed Ruby 2.2.6 (32-bit) and set up the environment according to the Measure Writing Guide (required the full path to the openstudio.rb file in the measure test file). When I try to run the test file, it gives me the following error:

C:/openstudio-2.1.0/Ruby/openstudio.rb:55:in `require_relative': 193: %1 is not a valid Win32 application. - C:/openstudio-2.1.0/Ruby/openstudio.so (LoadError)

I suspect it could be an issue with the Ruby version or my Path not correctly pointing to OS, but I'm not sure. Any suggestions?

Measure Test File Not Working with OS 2.1.0

I had measure test files working with 1.14, but then upgraded to 2.1.0 and can't seem to get them to work. I was using the Ruby instance packaged with OS before, but was unable to find the Ruby install with OS 2.1.0. I have installed Ruby 2.2.6 (32-bit) and set up the environment according to the Measure Writing Guide (required the full path to the openstudio.rb file in the measure test file). When I try to run the test file, it gives me the following error:

C:/openstudio-2.1.0/Ruby/openstudio.rb:55:in `require_relative': 193: %1 is not a valid Win32 application. - C:/openstudio-2.1.0/Ruby/openstudio.so (LoadError)

I suspect it could be an issue with the Ruby version or my Path not correctly pointing to OS, but I'm not sure. Any suggestions?

Update: I installed the 64-bit version of Ruby 2.2.6, which seems to have solved the problem above; however, now the measure does not seem to run from the test file and doesn't provide any error. I get the following output:

Run options: --seed 13881

Running:

Finished in 0.000000s, NaN runs/s, NaN assertions/s.

0 runs, 0 assertions, 0 failures, 0 errors, 0 skips

Measure Test File Not Working with OS 2.1.0

I had measure test files working with 1.14, but then upgraded to 2.1.0 and can't seem to get them to work. I was using the Ruby instance packaged with OS before, but was unable to find the Ruby install with OS 2.1.0. I have installed Ruby 2.2.6 (32-bit) and set up the environment according to the Measure Writing Guide (required the full path to the openstudio.rb file in the measure test file). When I try to run the test file, it gives me the following error:

C:/openstudio-2.1.0/Ruby/openstudio.rb:55:in `require_relative': 193: %1 is not a valid Win32 application. - C:/openstudio-2.1.0/Ruby/openstudio.so (LoadError)

I suspect it could be an issue with the Ruby version or my Path not correctly pointing to OS, but I'm not sure. Any suggestions?

Update: I installed the 64-bit version of Ruby 2.2.6, which seems to have solved the problem above; however, now the measure does not seem to run from the test file and doesn't provide any error. I get the following output:

Run options: --seed 13881

Running:

Finished in 0.000000s, NaN runs/s, NaN assertions/s.

0 runs, 0 assertions, 0 failures, 0 errors, 0 skips