Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

Python errors with openstudio::path

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

Python errors with openstudio::path

I am trying to learn the python bindings for OenStudio, OpenStudio, 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 &)

Python errors with openstudio::path

I am trying to learn the python bindings for OpenStudio, 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 &)

Python errors with openstudio::path

I am trying to learn the python bindings for OpenStudio, 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 &)&)

Thanks