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

asked 2023-12-19 10:10:51 -0500

jrmuller's avatar

updated 2023-12-19 10:37:57 -0500

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 &)

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by Aaron Boranian
close date 2023-12-19 10:38:01.751626

Comments

Duplicate of this post.

Aaron Boranian's avatar Aaron Boranian  ( 2023-12-19 10:38:19 -0500 )edit