OpenStudio error: SWIG director method error

I’m getting this error when I click “Apply measure”. Error occurs while trying to run a measure.

“swig director method error. IOError: not opened for reading”

Any help with the cause of this error will be appreciated.
OpenStudio version: 3.8.0