LBT 1.3 SWIIG Error

So, I’m trying to use an older version of LBT to get an older version IDF file and it seems I’ve really messed something up. I’ve tried running in Rhino 7 and Rhino 8 and get the same error. This is on the shoebox energy model example that ships with the 1.3 installation.

To get here I uninstalled Pollination and then installed v1.3 from Food4Rhino. I tried the versioner, but it left me with a different set of errors, similar to what happened here: Honeybee_standards lacks a "modifiers" folder

Is it possible that I have to change/uninstall E+ 23.2?

Any ideas how to fix this? Or do I just say screw it and manually convert an IDF with a text editor…

Thanks!

SWIG director method error. NoMethodError: undefined method `validate' for #<Hash:0x0000020507ba6428>

Traceback (most recent call last):
:/ruby/2.7.0/gems/json-schema-2.7.0/lib/json-schema/validator.rb:113:in `validate'
:/ruby/2.7.0/gems/json-schema-2.7.0/lib/json-schema/validator.rb:262:in `validate!'
:/ruby/2.7.0/gems/json-schema-2.7.0/lib/json-schema/validator.rb:275:in `fully_validate'
C:/Users/Brent Watanabe/ladybug_tools/resources/measures/honeybee_openstudio_gem/lib/honeybee/simulation/parameter_model.rb:77:in `validation_errors'
C:/Users/Brent Watanabe/ladybug_tools/resources/measures/honeybee_openstudio_gem/lib/honeybee/simulation/parameter_model.rb:67:in `valid?'
C:/Users/Brent Watanabe/ladybug_tools/resources/measures/honeybee_openstudio_gem/lib/measures/from_honeybee_simulation_parameter/measure.rb:83:in `run'
Runtime error (PythonException): SWIG director method error. NoMethodError: undefined method `validate' for #<Hash:0x0000020507ba6428>

Traceback:
  line 235, in script

Versions and install locations:

Stupid me. I had the wrong version of OpenStudio installed.

Is it possible to have multiple versions of OpenStudio and E+ installed and then point LBT to the correct location when downgrading?

Yes, it is possible, though we really don’t want you to downgrade if we can avoid it because versions as old as 1.3 had some bugs that have since been identified and fixed.

If you absolutely need to go back to an old version, just make sure that you install OpenStudio within the ladybug_tools installation folder. Based on your config there, the installation folder for your system is:

C:\Users\Brent Watanabe\ladybug_tools

So you should install OpenStudio in:

C:\Users\Brent Watanabe\ladybug_tools\openstudio

… if you want Ladybug Tools to use it instead of any other OpenStudio installations on your machine.

1 Like

Thanks for the tip @chris

For now I’ve reverted back to the newest version and am going to see if I can just modify my IDF’s manually :man_facepalming:t4: