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

Revision history [back]

click to hide/show revision 1
initial version

openstudio savemodel python package

Hi, I'm learning to use openstudio package of python but found some problems to use the function "saveModel". When I use it, for example:

import openstudio osm = openstudio.model.Model() openstudio.model.saveModel(osm,"model.osm", "")

it throws the following error:

I've tried other ways like use the complete directory path, but keeps the error. And found this notebook(https://github.com/GFlechas/Gabes_OpenStudio_shared_resources/blob/main/load_model_add_ruleset/load_model_add_ruleset_notebook.ipynb) and occurs the same error.

Any idea what's the problem?

openstudio savemodel python package

Hi, I'm learning to use openstudio package of python but found some problems to use the function "saveModel". When I use it, for example:

import openstudio openstudio

osm = openstudio.model.Model() openstudio.model.Model()

openstudio.model.saveModel(osm,"model.osm", "")

it throws the following error:

"[saveModelTempDir] <1> Could not copy osm from '/path/to/file/model.osm' to 'model.osm' errorboost::filesystem::copy_file: File exists [system:17]: "/path/to/file/model.osm", "model.osm"

I've tried other ways like use the complete directory path, but keeps the error. And found this notebook(https://github.com/GFlechas/Gabes_OpenStudio_shared_resources/blob/main/load_model_add_ruleset/load_model_add_ruleset_notebook.ipynb) and occurs the same error.

Any idea what's the problem?

openstudio savemodel python package

Hi, I'm learning to use openstudio package of python but found some problems to use the function "saveModel". When I use it, for example:

import openstudio

openstudio osm = openstudio.model.Model()

openstudio.model.Model() openstudio.model.saveModel(osm,"model.osm", "")

"")

it throws the following error:

"[saveModelTempDir]

[saveModelTempDir] <1> Could not copy osm from '/path/to/file/model.osm' to 'model.osm' errorboost::filesystem::copy_file: File exists [system:17]: "/path/to/file/model.osm", "model.osm"

"model.osm"

I've tried other ways like use the complete directory path, but keeps the error. And found this notebook(https://github.com/GFlechas/Gabes_OpenStudio_shared_resources/blob/main/load_model_add_ruleset/load_model_add_ruleset_notebook.ipynb) and occurs the same error.

Any idea what's the problem?

openstudio savemodel python package

Hi, I'm learning to use openstudio package of python but found some problems to use the function "saveModel". When I use it, for example:

import openstudio
osm = openstudio.model.Model()
openstudio.model.saveModel(osm,"model.osm", "")

it throws the following error:

[saveModelTempDir] <1> Could not copy osm from '/path/to/file/model.osm' to 'model.osm' errorboost::filesystem::copy_file: File exists [system:17]: "/path/to/file/model.osm", "model.osm"

I've tried other ways like use the complete directory path, but keeps the error. And found this notebook(https://github.com/GFlechas/Gabes_OpenStudio_shared_resources/blob/main/load_model_add_ruleset/load_model_add_ruleset_notebook.ipynb) and occurs the same error.

Any idea what's the problem?