Hi everyone!
I’ve not used the tools for month or so, so I’m a wee bit rusty.
while attempting to import an *.idf file upgraded from 9.6->22.2:
Failed to load model: System.ArgumentException: Command:
C:\Program Files/ladybug_tools\python\python -m honeybee_energy translate model-from-idf --output-file "C:\Users\TREVOR\AppData\Local\Temp\dhp4bwbf.p3c.hbjson" "C:\Users\TREVOR\Documents\_THM files\USSFCZ1AWHTSoilfurnaceunheatedbsmtIECC_2021.idf"
--- Logging error ---
Traceback (most recent call last):
File "C:\Program Files\ladybug_tools\python\lib\site-packages\honeybee_energy\cli\translate.py", line 334, in model_from_idf
_run_translation_osw(osw, out_path)
File "C:\Program Files\ladybug_tools\python\lib\site-packages\honeybee_energy\cli\translate.py", line 687, in _run_translation_osw
_parse_os_cli_failure(os.path.dirname(osw))
File "C:\Program Files\ladybug_tools\python\lib\site-packages\honeybee_energy\run.py", line 953, in _parse_os_cli_failure
'Failed to run OpenStudio CLI:\n{}'.format('\n'.join(log_osw.errors)))
Exception: Failed to run OpenStudio CLI:
Cannot load IDF file at ''
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files\ladybug_tools\python\lib\logging\handlers.py", line 70, in emit
self.doRollover()
File "C:\Program Files\ladybug_tools\python\lib\logging\handlers.py", line 394, in doRollover
self.rotate(self.baseFilename, dfn)
File "C:\Program Files\ladybug_tools\python\lib\logging\handlers.py", line 111, in rotate
os.rename(source, dest)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\TREVOR\\.honeybee\\honeybee-energy.log' -> 'C:\\Users\\TREVOR\\.honeybee\\honeybee-energy.log.2022-11-09'
Call stack:
File "C:\Program Files\ladybug_tools\python\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Program Files\ladybug_tools\python\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Program Files\ladybug_tools\python\lib\site-packages\honeybee_energy\__main__.py", line 4, in <module>
energy()
File "C:\Program Files\ladybug_tools\python\lib\site-packages\click\core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "C:\Program Files\ladybug_tools\python\lib\site-packages\click\core.py", line 782, in main
rv = self.invoke(ctx)
File "C:\Program Files\ladybug_tools\python\lib\site-packages\click\core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Program Files\ladybug_tools\python\lib\site-packages\click\core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Program Files\ladybug_tools\python\lib\site-packages\click\core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Program Files\ladybug_tools\python\lib\site-packages\click\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "C:\Program Files\ladybug_tools\python\lib\site-packages\honeybee_energy\cli\translate.py", line 336, in model_from_idf
_logger.exception('Model translation failed.\n{}'.format(e))
Message: "Model translation failed.\nFailed to run OpenStudio CLI:\nCannot load IDF file at ''"
Arguments: ()
honeybee_energy.cli.translate - ERROR - Model translation failed.
Failed to run OpenStudio CLI:
Cannot load IDF file at ''
Traceback (most recent call last):
File "C:\Program Files\ladybug_tools\python\lib\site-packages\honeybee_energy\cli\translate.py", line 334, in model_from_idf
_run_translation_osw(osw, out_path)
File "C:\Program Files\ladybug_tools\python\lib\site-packages\honeybee_energy\cli\translate.py", line 687, in _run_translation_osw
_parse_os_cli_failure(os.path.dirname(osw))
File "C:\Program Files\ladybug_tools\python\lib\site-packages\honeybee_energy\run.py", line 953, in _parse_os_cli_failure
'Failed to run OpenStudio CLI:\n{}'.format('\n'.join(log_osw.errors)))
Exception: Failed to run OpenStudio CLI:
Cannot load IDF file at ''
at Core.Utility.ExePythonCommand(String argument, String& results)
at Core.Utility.IDFToHBJson(String idfPath, String saveAsPath)
at Pollination.RH.Import.PollinationImport.RunIdfImporter(String filename, RhinoDoc doc, FileReadOptions options)
Freshly updated (and rebooted this time @m lol) PO installation.
Thanks!
idf in question:
idf_file.zip (33.9 KB)
Tested one of the ep222 example models, imported without issue, soo atleast there’s some answers!