attribute model is read-only in OpenStudio API [closed]

asked 2018-07-01 01:43:43 -0500

katsuya.obara's avatar

I am having error to run energy simulation using Honeybee interface with error message below.

Solution exception:The type initializer for 'OpenStudio.OpenStudioModelCorePINVOKE' threw an exception.

I found discussion solving this issue and tried to follow what they have tested to check the environment as below.
However, I get the error below and this is not suitable to check the environment.
Does anyone know why I get below error, while they didnt get this error in discussion?

Runtime error (MissingMemberException): 'namespace#' object attribute 'model' is read-only

import sys  
import clr

sys.path.append(r'C:\openstudio-2.4.0\CSharp\openstudio')  
clr.AddReferenceToFileAndPath(r'C:\openstudio-2.4.0\CSharp\openstudio\OpenStudio.dll')

import OpenStudio  
model=OpenStudio.model()  
print model
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by katsuya.obara
close date 2018-07-01 02:43:46.403211