Hi community,
I am trying to run Honeybee Radiance from Python 3.7. This is working fine for a ‘cumulative-radiation’ recipe, but I get an error for ‘annual-irradiance’.
Specifically the error:
2022-12-13 16:25:31 INFO: Error: no such option: --dist-info
2022-12-13 16:25:31 ERROR:
Failed task: RestructureDirectResults.
And
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: ‘C:\Users\JOBDEV~1\AppData\Local\Temp\tmpbnyi777i’
I was wondering if someone could explain if I’m doing something wrong or if this is a bug.
FYI, the temp file is created during execution, I do not have any other instances of Rhino/GH open, only running this script.
You can find my script here. I’m running on Windows and Python version 3.7.15. (Technically I am using AcceleRad, but I turned it off in this case).
def test_recipe_run():
wea = "C://Users//Job de Vogel//ladybug_tools//resources//weather//NLD_Amsterdam.062400_IWEC//NLD_Amsterdam.062400_IWEC.epw"
model = load_json("C://Users//Job de Vogel//Desktop//name_758239r7.hbjson")
# pass the model to the recipe
recipe = Recipe('annual-irradiance')
recipe.input_value_by_name('model', model)
recipe.input_value_by_name('wea', wea)
recipe.input_value_by_name('radiance-parameters', '-g 0')
recipe.run(settings='--workers 11')
test_recipe_run()
Furthermore, I get the following error log:
Summary
2022-12-13 16:25:31 INFO: Error: no such option: --dist-info
2022-12-13 16:25:31 ERROR:
Failed task: RestructureTotalResults.
Run the command with --debug key to debug the workflow.
2022-12-13 16:25:31 ERROR: [pid 35324] Worker Worker(salt=196297857, workers=11, host=Stroesoe, username=Job de Vogel, pid=24992) failed RestructureTotalResults(_input_params={“cpu_count”: 11, “grid_filter”: “*”, “min_sensor_count”: 200, “model”: “instance_23467823.hbjson”, “north”: 0.0, “output_type”: “solar”, “params_folder”: “__params”, “radiance_parameters”: “-g 0”, “simulation_folder”: “C:/Users/Job de Vogel/simulation/instance_23467823/annual_irradiance”, “timestep”: 1, “wea”: “AMSTERDAM_0_8759.wea”})
Traceback (most recent call last):
File “c:\users\job de vogel\ladybug_tools\python\lib\site-packages\luigi\worker.py”, line 191, in run
new_deps = self._run_get_new_deps()
File “c:\users\job de vogel\ladybug_tools\python\lib\site-packages\luigi\worker.py”, line 133, in run_get_new_deps
task_gen = self.task.run()
File "c:\users\job de vogel\ladybug_tools\python\lib\site-packages\queenbee_local_init.py", line 261, in run
raise ValueError(err_msg)
ValueError:
Failed task: RestructureTotalResults.
Run the command with --debug key to debug the workflow.
Exception ignored in: <finalize object at 0x199c1533a00; dead>
Traceback (most recent call last):
File “c:\users\job de vogel\ladybug_tools\python\lib\weakref.py”, line 572, in call
return info.func(*info.args, **(info.kwargs or {}))
File “c:\users\job de vogel\ladybug_tools\python\lib\tempfile.py”, line 797, in _cleanup
_shutil.rmtree(name)
File “c:\users\job de vogel\ladybug_tools\python\lib\shutil.py”, line 516, in rmtree
return _rmtree_unsafe(path, onerror)
File “c:\users\job de vogel\ladybug_tools\python\lib\shutil.py”, line 404, in _rmtree_unsafe
onerror(os.rmdir, path, sys.exc_info())
File “c:\users\job de vogel\ladybug_tools\python\lib\shutil.py”, line 402, in _rmtree_unsafe
os.rmdir(path)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: ‘C:\Users\JOBDEV~1\AppData\Local\Temp\tmp9kkqujd0’
2022-12-13 16:25:31 INFO: Informed scheduler that task RestructureTotalResults___cpu_count___11_8af559bd25 has status FAILED
2022-12-13 16:25:31 DEBUG: Asking scheduler for work…
2022-12-13 16:25:31 DEBUG: Done
2022-12-13 16:25:31 DEBUG: There are no more tasks to run at this time
2022-12-13 16:25:31 DEBUG: RestructureDirectResults___cpu_count___11_8af559bd25 is currently run by worker Worker(salt=196297857, workers=11, host=Stroesoe, username=Job de Vogel, pid=24992)
2022-12-13 16:25:31 INFO: Usage: honeybee-radiance grid merge-folder [OPTIONS] INPUT_FOLDER
2022-12-13 16:25:31 INFO: OUTPUT_FOLDER EXTENSION
2022-12-13 16:25:31 INFO: Try ‘honeybee-radiance grid merge-folder --help’ for help.
2022-12-13 16:25:31 INFO:
2022-12-13 16:25:31 INFO: Error: no such option: --dist-info
2022-12-13 16:25:31 ERROR:
Failed task: RestructureDirectResults.
Run the command with --debug key to debug the workflow.
2022-12-13 16:25:31 ERROR: [pid 3852] Worker Worker(salt=196297857, workers=11, host=Stroesoe, username=Job de Vogel, pid=24992) failed RestructureDirectResults(_input_params={“cpu_count”: 11, “grid_filter”: “*”, “min_sensor_count”: 200, “model”: “instance_23467823.hbjson”, “north”: 0.0, “output_type”: “solar”, “params_folder”: “__params”, “radiance_parameters”: “-g 0”, “simulation_folder”: “C:/Users/Job de Vogel/simulation/instance_23467823/annual_irradiance”, “timestep”: 1, “wea”: “AMSTERDAM_0_8759.wea”})
Traceback (most recent call last):
File “c:\users\job de vogel\ladybug_tools\python\lib\site-packages\luigi\worker.py”, line 191, in run
new_deps = self._run_get_new_deps()
File “c:\users\job de vogel\ladybug_tools\python\lib\site-packages\luigi\worker.py”, line 133, in run_get_new_deps
task_gen = self.task.run()
File "c:\users\job de vogel\ladybug_tools\python\lib\site-packages\queenbee_local_init.py", line 261, in run
raise ValueError(err_msg)
ValueError:
Failed task: RestructureDirectResults.
Run the command with --debug key to debug the workflow.
Exception ignored in: <finalize object at 0x23479383a00; dead>
Traceback (most recent call last):
File “c:\users\job de vogel\ladybug_tools\python\lib\weakref.py”, line 572, in call
return info.func(*info.args, **(info.kwargs or {}))
File “c:\users\job de vogel\ladybug_tools\python\lib\tempfile.py”, line 797, in _cleanup
_shutil.rmtree(name)
File “c:\users\job de vogel\ladybug_tools\python\lib\shutil.py”, line 516, in rmtree
return _rmtree_unsafe(path, onerror)
File “c:\users\job de vogel\ladybug_tools\python\lib\shutil.py”, line 404, in _rmtree_unsafe
onerror(os.rmdir, path, sys.exc_info())
File “c:\users\job de vogel\ladybug_tools\python\lib\shutil.py”, line 402, in _rmtree_unsafe
os.rmdir(path)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: ‘C:\Users\JOBDEV~1\AppData\Local\Temp\tmpbnyi777i’
2022-12-13 16:25:31 INFO: Informed scheduler that task RestructureDirectResults___cpu_count___11_8af559bd25 has status FAILED
2022-12-13 16:25:31 DEBUG: Asking scheduler for work…
2022-12-13 16:25:31 DEBUG: Done
2022-12-13 16:25:31 DEBUG: There are no more tasks to run at this time
2022-12-13 16:25:31 DEBUG: There are 6 pending tasks possibly being run by other workers
2022-12-13 16:25:31 DEBUG: There are 6 pending tasks unique to this worker
2022-12-13 16:25:31 DEBUG: There are 6 pending tasks last scheduled by this worker
2022-12-13 16:25:31 INFO: Worker Worker(salt=196297857, workers=11, host=Stroesoe, username=Job de Vogel, pid=24992) was stopped. Shutting down Keep-Alive thread
2022-12-13 16:25:31 INFO:
===== Luigi Execution Summary =====
Scheduled 37 tasks of which:
- 31 ran successfully:
- 1 AnnualIrradianceRaytracing(…)
- 3 AnnualIrradianceRaytracingLoop(…)
- 1 CopyGridInfo(…)
- 1 CopyRedistInfo(…)
- 1 CopySunUpHours(…)
…
- 2 failed:
- 1 RestructureDirectResults(…)
- 1 RestructureTotalResults(…)
- 4 were left pending, among these:
- 4 had failed dependencies:
- 1 LetAnnualIrradianceFly(…)
- 1 _Main_2fafd374Orchestrator(…)
- 4 had failed dependencies:
This progress looks because there were failed tasks
===== Luigi Execution Summary =====
More info:
C:/Users/Job de Vogel/simulation/instance_23467823/annual_irradiance/logs/logs.log