The python bindings are throwing an error for openstudio::path [closed]

I am trying to learn the python bindings for OenStudio, but I am getting an error whenever I try to use an openstudio::path variable. The function openstudio.path is returning an object of type <class 'openstudio.openstudioutilitiescore.path'="">. When I pass that object to function that requires openstudio::path const &, it throws an error saying type error, e.g.,

TypeError: Wrong number or type of arguments for overloaded function 'Workspace_save'. Possible C/C++ prototypes are: openstudio::Workspace::save(openstudio::path const &,bool) openstudio::Workspace::save(openstudio::path const &)

jrmuller's avatar
41
jrmuller
asked 2023-12-19 10:10:51 -0500
Aaron Boranian's avatar
14.1k
Aaron Boranian
updated 2023-12-19 10:37:57 -0500
edit flag offensive 0 remove flag reopen merge delete

Closed for the following reason "duplicate question" by Aaron Boranian 2023-12-19 10:38:01 -0500

Comments

Duplicate of this post.

Aaron Boranian's avatar Aaron Boranian (2023-12-19 10:38:19 -0500) edit
add a comment see more comments