Failed to compute arguments for measure
" Failed to compute arguments for measure". I've tried to add new directory to the measures, didn't work. I've also tried using the new version of the measure. Any idea on how to solve it?



Seems to be triggered here (Line 246), so assuming this is occurring when using the OpenStudio Application. Which version? Which measure: one you're developing, or from BCL? If so, which release version? What is the complete message, i.e. what followed the initial "Failed to compute arguments for measure"? Similar to this?
I'm using openstudio 3.8.0 and open studio appliation 1.7.0. The measure is from BCL. It is a similar error as you have pointed, but slightly differrent. "D: la\OpenStudioApplication\OpenStudioApplication|src|shared_gui_components\MeasureManager.cpp@485 : Error computing arguments: MeasureManager Server encountered an error. "D:\OSMOpenstudio\src\cli\MeasureManager.cpp@357: Failed to instantiate a RubyMeasurelnfoBinding: NameError: uninitialized constant OpenStudio::Measure location= [" eval:416:in 'const_missing'", "eval: 1:in <main» '']="" traceback:="" eval:416:in="" 'const_missing'="" eval:="" 1:in"<="" p="">
Trying to narrow down the issue: is it the measure itself? or an incompatibility with latest OpenStudio release? Can you share which measure from BCL? And is this limited to this specific measure, i.e. no issue running other measures?
Quick question: why are you running OpenStudio (CLI/SDK) v3.8.0 and OpenStudioApplication 1.7.0? See compatibility matrix. The OpenStudioApplication MeasureManager is catching a returned error from the OpenStudio CLI here (Line 354). It's not recognizing the OpenStudio::Measure module - not good.
It is the problem with all the meaures I'm using from BCL. I've tried it with the "openstudio results" measure, with "add rooftop pv" measure. Same error. I didn't update it to 3.8.0 as the software is on my work laptop and the IT policy takes longer to upgrade. I've however requested for an update now. Will let yiu know if the update leads to resolving this
OK, good. A friendly reminder that the OpenStudio Application is self-contained - it comes with its own OpenStudio CLI/SDK package, so no need to download the CLI/SDK separately.
I have updated the software. The error still persists with all measures I'm using from BCL. Not sure how to sort this out.
@Anudeep, I'm unable to reproduce the issue with measure AddRooftopPV, using OpenStudio Application 1.8.0 / SDK 3.8.0. I unfortunately don't have any other suggestions for you, other than sticking to version 1.8.0 / 3.8.0. Of course you can always share a link to your .osm file (e.g. Google Drive).
Here is the link to the osm file. https://drive.google.com/drive/folder...
@Anudeep, I successfully ran your model with both measures, using the OpenStudioApplication (App) 1.8.0 on an another workstation (i.e. completely fresh install). Both measures were downloaded from BCL using the App. I suspect you may still be mixing/matching (incompatible) App vs measure versions (see here). Check both measure.xml files (under your OSM folder/measures) with a text editor: they should have a version_modified date of November 2024.
Thanks a mil Denis! It is working now. I didn't check the compatinility matrix earlier and used a measure which is 3.9.0 compatible while using OS 3.8.0. Thanks for your help there.