Closed elainethale closed 9 years ago
@mbadams5 have you seen this?
Also @elainethale did you get this error importing bindings based on a build of the v1.8.0 tag?
@macumber Yes i've seen this. I don't know why it is happening.
This is how I fixed it on my machine.
def compareInputAndOutput(object, attributeName, inputResult, outputResult, tol, logLevel=openstudioutilitiescore.Debug):
return _openstudiomodelcore.compareInputAndOutput(object, attributeName, inputResult, outputResult, tol, logLevel)
compareInputAndOutput = _openstudiomodelcore.compareInputAndOutput
The key part is adding openstudioutilitiescore
before Debug. My rough guess is that it is hitting some protected key word and it needs the fully qualified path to be correct. How to make sure this happens through the swig bindings, no clue yet.
Yes, v1.8.0, and it did not happen previously for me. (I was probably on v1.7.0 or even v1.6.0.)
@mbadams5 or @elainethale if you want to fix this for 1.9.0 please feel free. I think Elaine's patch is reasonable.
I get an import error:
Looking around at .i files, etc., I don't see any recent (last 6 month) changes that should have caused this, nonetheless, there it is. There is a workaround that I will use for now: adding
to
src/model/ModelCore.i
.