Hi all,
I’m encountering an issue while trying to run the Create DOE Prototype Building measure in OpenStudio 3.8.0. The error specifically arises when the measure attempts to read the weather file. Here is the error message from the log:
"Error: SWIG director method error. IOError: not opened for reading
Traceback (most recent call last):
:/ruby/3.2.0/gems/openstudio-standards-0.6.1/lib/openstudio-standards/weather/information.rb:198:in each'
:/ruby/3.2.0/gems/openstudio-standards-0.6.1/lib/openstudio-standards/weather/information.rb:198:in
get_standards_weather_file_path'
:/ruby/3.2.0/gems/openstudio-standards-0.6.1/lib/openstudio-standards/weather/information.rb:238:in climate_zone_representative_weather_file_path'
:/ruby/3.2.0/gems/openstudio-standards-0.6.1/lib/openstudio-standards/weather/modify.rb:376:in
model_set_building_location'
:/ruby/3.2.0/gems/openstudio-standards-0.6.1/lib/openstudio-standards/prototypes/common/objects/Prototype.Model.rb:37:in model_create_prototype_model'
C:/Users/tarun/OpenStudio/Measures/create_DOE_prototype_building/measure.rb:200:in
run'
[openstudio.workflow.OSWorkflow] Found error in state 'OpenStudioMeasures' with message: 'Runner error: Measure 'C:/Users/tarun/OpenStudio/Measures/create_DOE_prototype_building/measure.rb' reported an error with [SWIG director method error. IOError: not opened for reading]"
What I've tried so far:
Verified that the EPW file exists in the directory. Set the absolute path for the EPW file in the code to avoid relative path issues. Despite this, I continue to get the "not opened for reading" error. I believe the problem could be related to how OpenStudio is handling the weather file, but I can't pinpoint the exact issue.
Has anyone faced a similar problem or have insights on how to resolve this error?
Thanks in advance for any help!