Honeybee Radiance error in annual-irradiance

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(…)

This progress looks :frowning: because there were failed tasks

===== Luigi Execution Summary =====

More info:
C:/Users/Job de Vogel/simulation/instance_23467823/annual_irradiance/logs/logs.log

Hi @JobdeVogel,

Perhaps your version of honeybee-radiance is an older one? I can see that the --dist-info option was added to the CLI command in February. Try to run honeybee-radiance grid merge-folder --help in your cmd. Does it show the --dist-info option?

Hi @mikkel,

Thank you for your quick response! I just tried what you suggested, as can be seen in the image. I think the --dist-info option is available.

Any other suggestions? Thanks for the time!

Try to add a debug folder, e.g.,

recipe.run(settings='--workers 11', debug_folder='debug')

When you run the recipe go to the new debug folder and sort by date. It should look like the image below. Select the newest/top folder; the newest folder is usually the one where the error is happening. There is a batch file in each of these folders. Open the batch file and make sure that you are in the folder that is executing the CLI command honeybee-radiance grid merge-folder. Run the batch file and for good measure, if it still complains about the --dist-info option, try to add --help to end of the batch file.
image

Hi @mikkel,

I followed your suggestions. Hereby an image of my debug folder. I can see that the top 5 folders do not contain an output folder, as you already indicated.

Then I used the following commands. Once without and once with --help. After running, an output folder is added including a SensorGrid_a9790bae.ill file.

It does not complain about the --dist-info. Do you have suggestions how to continue?

PS. I checked all version related to the problem. Hereby an overview:

  • Python: 3.7.15
  • Radiance: RADIANCE 5.4a 2021-03-28 LBNL (5.4.947ea88a29)
  • AcceleRad: 0.7 beta (not using in script)
  • LBT-recipes package: 0.23.0

Some additional info:

I reinstalled Radiance without AcceleRad. The same error happened, so it is definitely not caused by AcceleRad. Furthermore I simplified the Python script a bit so that is easier to replicate without my json input. Additionally you can find my .epw file in the attachment.

from honeybee.model import Model
from honeybee.room import Room
from honeybee.config import folders as hb_folders
from lbt_recipes.recipe import Recipe

def annual():
    wea = "C://Users//Job de Vogel//ladybug_tools//resources//weather//NLD_Amsterdam.062400_IWEC//NLD_Amsterdam.062400_IWEC.epw"   
    
    # Create a model for simulation
    room = Room.from_box('simulated_room', 5, 10, 3)
    south_face = room[3]
    south_face.apertures_by_ratio(0.4, 0.01)
    model = Model('simulated_test_model', [room])
    model.properties.radiance.sensor_grids = \
        [room.properties.radiance.generate_sensor_grid(1, offset=0.8)]

    # pass the model to the recipe
    recipe = Recipe('annual-irradiance')
    recipe.input_value_by_name('model', model)
    recipe.input_value_by_name('wea', wea)

    project_folder = recipe.run(settings='--workers 11', debug_folder='C://Users//Job de Vogel//Desktop//debug')

    # radiation = recipe.output_value_by_name('cumulative-radiation', project_folder)
    # return radiation

annual()

NLD_Amsterdam.062400_IWEC.zip (242.8 KB)

Hi all,

Another update from my side: I tried running the script above in an earlier version of lbt-recipes, specifically v0.19.13 (before an update for the annual-irradiance, as @mikkel indicated) and it doesn’t complain about the --dist-info anymore. (using Radiance 5.4a (2021-03-28) and Python 3.7.9)

I assume something has been updated in lbt-recipes v0.19.14 that is causing this error.

I am not sure however, if I can expect this version of lbt to give accurate results from ‘annual-irradiance’?

Hi @JobdeVogel,

Since this works, but it complains about it when running the recipe, I think you somehow got two versions of honeybee-radiance, and the one used when running the recipe is an older version. But maybe @chris can provide better help on this issue.

What does it say if you run pip show honeybee-radiance in the terminal?

Hey @mikkel,

Thanks for the response, I got the following response in cmd. I have to run it with python -m pip since I’m using Anaconda. Additionally I also added an overview of conda list packages in my env.

(honeybee-env) C:\Users\Job de Vogel\OneDrive\Documenten\TU Delft\Master Thesis\Code\Honeybee tests>python -m pip show honeybee-radiance
Name: honeybee-radiance
Version: 1.64.113
Summary: Daylight and light simulation extension for honeybee.
Home-page: https://github.com/ladybug-tools/honeybee-radiance
Author: Ladybug Tools
Author-email: info@ladybug.tools
License: AGPL-3.0
Location: c:\users\job de vogel\.conda\envs\honeybee-env\lib\site-packages
Requires: honeybee-core, honeybee-radiance-command, honeybee-radiance-folder, honeybee-standards
Required-by: honeybee-radiance-postprocess
Summary
(honeybee-env) C:\Users\Job de Vogel\OneDrive\Documenten\TU Delft\Master Thesis\Code\Honeybee tests>conda list
# packages in environment at C:\Users\Job de Vogel\.conda\envs\honeybee-env:
#
# Name                    Version                   Build  Channel
attrs                     22.1.0                   pypi_0    pypi
ca-certificates           2022.10.11           haa95532_0  
certifi                   2022.9.24        py37haa95532_0  
click                     7.1.2                    pypi_0    pypi
click-plugins             1.1.1                    pypi_0    pypi
docutils                  0.19                     pypi_0    pypi
dragonfly-core            1.34.53                  pypi_0    pypi
dragonfly-doe2            0.11.3                   pypi_0    pypi
dragonfly-energy          1.22.40                  pypi_0    pypi
dragonfly-schema          1.6.82                   pypi_0    pypi
dragonfly-uwg             0.5.283                  pypi_0    pypi
honeybee-core             1.54.14                  pypi_0    pypi
honeybee-display          0.2.7                    pypi_0    pypi
honeybee-energy           1.95.27                  pypi_0    pypi
honeybee-energy-standards 2.2.6                    pypi_0    pypi
honeybee-radiance         1.64.113                 pypi_0    pypi
honeybee-radiance-command 1.22.2                   pypi_0    pypi
honeybee-radiance-folder  2.11.10                  pypi_0    pypi
honeybee-radiance-postprocess 0.4.115                  pypi_0    pypi
honeybee-schema           1.51.7                   pypi_0    pypi
honeybee-standards        2.0.6                    pypi_0    pypi
importlib-metadata        5.1.0                    pypi_0    pypi
importlib-resources       5.10.1                   pypi_0    pypi
jsonschema                4.3.3                    pypi_0    pypi
ladybug-comfort           0.16.11                  pypi_0    pypi
ladybug-core              0.41.2                   pypi_0    pypi
ladybug-display           0.7.0                    pypi_0    pypi
ladybug-geometry          1.24.12                  pypi_0    pypi
ladybug-geometry-polyskel 1.4.0                    pypi_0    pypi
lbt-dragonfly             0.9.367                  pypi_0    pypi
lbt-honeybee              0.7.52                   pypi_0    pypi
lbt-ladybug               0.26.33                  pypi_0    pypi
lbt-recipes               0.23.0                   pypi_0    pypi
lockfile                  0.12.2                   pypi_0    pypi
luigi                     3.0.3                    pypi_0    pypi
numpy                     1.21.6                   pypi_0    pypi
openssl                   1.1.1s               h2bbff1b_0
pip                       22.3.1                   pypi_0    pypi
pollination-handlers      0.8.20                   pypi_0    pypi
pydantic                  1.10.2                   pypi_0    pypi
pydantic-openapi-helper   0.2.10                   pypi_0    pypi
pyrsistent                0.19.2                   pypi_0    pypi
python                    3.7.15               h6244533_1
python-daemon             2.3.2                    pypi_0    pypi
python-dateutil           2.8.2                    pypi_0    pypi
pyyaml                    6.0                      pypi_0    pypi
queenbee                  1.26.6                   pypi_0    pypi
queenbee-local            0.3.21                   pypi_0    pypi
setuptools                65.5.0           py37haa95532_0
six                       1.16.0                   pypi_0    pypi
sqlite                    3.40.0               h2bbff1b_0
tenacity                  6.3.1                    pypi_0    pypi
tornado                   6.2                      pypi_0    pypi
typing-extensions         4.4.0                    pypi_0    pypi
uwg                       5.8.10                   pypi_0    pypi
vc                        14.2                 h21ff451_1
vs2015_runtime            14.27.29016          h5e58377_2
wheel                     0.37.1             pyhd3eb1b0_0
wincertstore              0.2              py37haa95532_2
zipp                      3.11.0                   pypi_0    pypi

Hi all,

I have further tested what could be the issue of my Radiance Error. I wanted to make sure it was not caused by an installation problem, so I reinstalled Python 3.7.9, lbt-recipes and Radiance 5.4 on a Virtual Machine on Windows 11.

For some reason, my script seemed to work fine. However, surprisingly, the output logs I got were very different from my original installation on my laptop. In the following details, you can find an short example of what I mean. Although I am using exactly the same script and inputs, my VM version only gives INFO log outputs, no DEBUG. Furthermore, it gives almost no info about the different workers. Could someone give a suggestion what the difference could be?

Windows 11, Virtual Machine (does work, gives results):

Summary

2022-12-24 15:44:25 INFO: Started running CreateRadFolder…
2022-12-24 15:44:25 INFO: Started running CreateDirectSky…
2022-12-24 15:44:25 INFO: Started running CreateTotalSky…
2022-12-24 15:44:26 INFO: C:\Users\Stroesoe\Desktop\debug\tmpvvwo8rkrc:\users\stroesoe\python37\lib\site-packages\honeybee_radiance_folder\folder.py:632: UserWarning: fwebjkfwejf sensor grid has no view matrix receiver. It will not be included in three or five phase studies.
2022-12-24 15:44:26 INFO: ‘included in three or five phase studies.’ % grid[‘name’]
2022-12-24 15:44:26 INFO: Started running GenerateSunpath…
2022-12-24 15:44:26 INFO: …finished running CreateRadFolder in 0:00:01
2022-12-24 15:44:27 INFO: Started running CreateSkyDome…
2022-12-24 15:44:27 INFO: Started running CopyGridInfo…
2022-12-24 15:44:27 INFO: copying input path…
2022-12-24 15:44:27 INFO: …finished running CopyGridInfo in 0:00:00
2022-12-24 15:44:28 INFO: [{“path”: “sky.mtx”, “full_path”: “C:\Users\Stroesoe\Desktop\debug\tmpktaey03l\sky.mtx”}]
2022-12-24 15:44:28 INFO: …finished running CreateDirectSky in 0:00:02
2022-12-24 15:44:28 INFO: Started running SplitGridFolder…
2022-12-24 15:44:28 INFO: [{“path”: “sunpath.mtx”, “full_path”: “C:/Users/Stroesoe/Desktop/debug/tmppy61qses/sunpath.mtx”}, {“path”: “sunpath.mod”, “full_path”: “C:/Users/Stroesoe/Desktop/debug/tmppy61qses/sunpath.mod”}]
2022-12-24 15:44:28 INFO: …finished running GenerateSunpath in 0:00:01
2022-12-24 15:44:28 INFO: …finished running CreateSkyDome in 0:00:01
2022-12-24 15:44:29 INFO: Started running CreateOctree…
2022-12-24 15:44:29 INFO: [{“path”: “sky.mtx”, “full_path”: “C:\Users\Stroesoe\Desktop\debug\tmp6b14d0u6\sky.mtx”}]
2022-12-24 15:44:29 INFO: …finished running CreateTotalSky in 0:00:03
2022-12-24 15:44:29 INFO: Started running CreateOctreeWithSuns…
2022-12-24 15:44:30 INFO: Distributed 50 sensors among 1 grids with 50 sensors each.
2022-12-24 15:44:30 INFO: …finished running SplitGridFolder in 0:00:01
2022-12-24 15:44:30 INFO: Started running ParseSunUpHours…
2022-12-24 15:44:30 INFO: …finished running CreateOctree in 0:00:01
2022-12-24 15:44:31 INFO: Started running CopyRedistInfo…
2022-12-24 15:44:31 INFO: copying input path…
2022-12-24 15:44:31 INFO: …finished running CopyRedistInfo in 0:00:00
2022-12-24 15:44:31 INFO: …finished running CreateOctreeWithSuns in 0:00:02
2022-12-24 15:44:31 INFO: …finished running ParseSunUpHours in 0:00:01
2022-12-24 15:44:32 INFO: Started running CopySunUpHours…
2022-12-24 15:44:32 INFO: copying input path…
2022-12-24 15:44:32 INFO: …finished running CopySunUpHours in 0:00:00
2022-12-24 15:44:33 INFO: Started running DirectSky…
2022-12-24 15:44:33 INFO: Started running TotalSky…
2022-12-24 15:44:34 INFO: Started running DirectSun…
2022-12-24 15:44:36 INFO: …finished running DirectSky in 0:00:02
2022-12-24 15:44:36 INFO: …finished running DirectSun in 0:00:02
2022-12-24 15:44:37 INFO: …finished running TotalSky in 0:00:03
2022-12-24 15:44:37 INFO: Started running OutputMatrixMath…
2022-12-24 15:44:39 INFO: …finished running OutputMatrixMath in 0:00:01
2022-12-24 15:44:40 INFO: Started running RestructureDirectResults…
2022-12-24 15:44:41 INFO: Started running RestructureTotalResults…
2022-12-24 15:44:42 INFO: …finished running RestructureDirectResults in 0:00:01
2022-12-24 15:44:42 INFO: …finished running RestructureTotalResults in 0:00:01
2022-12-24 15:44:43 INFO: Started running CalculateMetrics…
2022-12-24 15:44:44 INFO: …finished running CalculateMetrics in 0:00:01
2022-12-24 15:44:45 INFO: Started running CopyTimestepFile…
2022-12-24 15:44:45 INFO: copying input path…
2022-12-24 15:44:45 INFO: …finished running CopyTimestepFile in 0:00:00

===== Luigi Execution Summary =====

Scheduled 25 tasks of which:

  • 25 ran successfully:
    • 1 AnnualIrradianceRaytracing(…)
    • 1 AnnualIrradianceRaytracingLoop(…)
    • 1 CalculateMetrics(…)
    • 1 CopyGridInfo(…)
    • 1 CopyRedistInfo(…)

This progress looks :slight_smile: because there were no failed tasks or missing dependencies

Windows 11, on base OS Windows 11 (does not work):

Summary

2022-12-24 15:41:51 DEBUG: There are no more tasks to run at this time
2022-12-24 15:41:51 DEBUG: RestructureDirectResults___cpu_count___6__e7f1916eaa is currently run by worker Worker(salt=027018513, workers=6, host=Stroesoe, username=Job de Vogel, pid=8636)
2022-12-24 15:41:51 DEBUG: RestructureTotalResults___cpu_count___6__e7f1916eaa is currently run by worker Worker(salt=027018513, workers=6, host=Stroesoe, username=Job de Vogel, pid=8636)
2022-12-24 15:41:51 INFO: RestructureTotalResults: copying input artifact input_folder from C:/Users/Job de Vogel/simulation/wenofnwejlcnwejkl/annual_irradiance/initial_results/final/total …
2022-12-24 15:41:51 INFO: RestructureTotalResults: finished copying artifacts…
2022-12-24 15:41:51 INFO: Started running RestructureTotalResults…
2022-12-24 15:41:52 INFO: Usage: honeybee-radiance grid merge-folder [OPTIONS] INPUT_FOLDER
2022-12-24 15:41:52 INFO: OUTPUT_FOLDER EXTENSION
2022-12-24 15:41:52 INFO: Try ‘honeybee-radiance grid merge-folder --help’ for help.
2022-12-24 15:41:52 INFO:
2022-12-24 15:41:52 INFO: Error: no such option: --dist-info
2022-12-24 15:41:52 DEBUG: Asking scheduler for work…
2022-12-24 15:41:52 DEBUG: Done
2022-12-24 15:41:52 DEBUG: There are no more tasks to run at this time
2022-12-24 15:41:52 DEBUG: RestructureDirectResults___cpu_count___6__e7f1916eaa is currently run by worker Worker(salt=027018513, workers=6, host=Stroesoe, username=Job de Vogel, pid=8636)
2022-12-24 15:41:52 DEBUG: RestructureTotalResults___cpu_count___6__e7f1916eaa is currently run by worker Worker(salt=027018513, workers=6, host=Stroesoe, username=Job de Vogel, pid=8636)
2022-12-24 15:41:52 ERROR:

Failed task: RestructureDirectResults.
Run the command with --debug key to debug the workflow.

2022-12-24 15:41:52 ERROR: [pid 8052] Worker Worker(salt=027018513, workers=6, host=Stroesoe, username=Job de Vogel, pid=8636) failed RestructureDirectResults(_input_params={“cpu_count”: 6, “grid_filter”: “*”, “min_sensor_count”: 200, “model”: “wdhcvkwdbjclwen.hbjson”, “north”: 0.0, “output_type”: “solar”, “params_folder”: “__params”, “radiance_parameters”: “-ab 2 -ad 5000 -lw 0.0002”, “simulation_folder”: “C:/Users/Job de Vogel/simulation/wenofnwejlcnwejkl/annual_irradiance”, “timestep”: 1, “wea”: “AMSTERDAM_0_8759.wea”, “debug”: “C:/Users/Job de Vogel/Desktop/debug”})
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.

2022-12-24 15:41:52 INFO: Informed scheduler that task RestructureDirectResults___cpu_count___6__e7f1916eaa has status FAILED
2022-12-24 15:41:52 DEBUG: Asking scheduler for work…
2022-12-24 15:41:52 DEBUG: Done
2022-12-24 15:41:52 DEBUG: There are no more tasks to run at this time
2022-12-24 15:41:52 DEBUG: RestructureTotalResults___cpu_count___6__e7f1916eaa is currently run by worker Worker(salt=027018513, workers=6, host=Stroesoe, username=Job de Vogel, pid=8636)
2022-12-24 15:41:52 INFO: Usage: honeybee-radiance grid merge-folder [OPTIONS] INPUT_FOLDER
2022-12-24 15:41:52 INFO: OUTPUT_FOLDER EXTENSION
2022-12-24 15:41:52 INFO: Try ‘honeybee-radiance grid merge-folder --help’ for help.
2022-12-24 15:41:52 INFO:
2022-12-24 15:41:52 INFO: Error: no such option: --dist-info
2022-12-24 15:41:52 ERROR:

Failed task: RestructureTotalResults.
Run the command with --debug key to debug the workflow.

2022-12-24 15:41:52 ERROR: [pid 25764] Worker Worker(salt=027018513, workers=6, host=Stroesoe, username=Job de Vogel, pid=8636) failed RestructureTotalResults(_input_params={“cpu_count”: 6, “grid_filter”: “*”, “min_sensor_count”: 200, “model”: “wdhcvkwdbjclwen.hbjson”, “north”: 0.0, “output_type”: “solar”, “params_folder”: “__params”, “radiance_parameters”: “-ab 2 -ad 5000 -lw 0.0002”, “simulation_folder”: “C:/Users/Job de Vogel/simulation/wenofnwejlcnwejkl/annual_irradiance”, “timestep”: 1, “wea”: “AMSTERDAM_0_8759.wea”, “debug”: “C:/Users/Job de Vogel/Desktop/debug”})
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.

@mikkel Finally found the solution! The difference between my pc installation and VM was the fact that the ladybug_tools in my C:/Users folder was full of files. Probably created by my Grasshopper installation of Ladybug Tools. After deleting the files inside the ladybug_tools folder, it worked perfectly!

However, it also meant that I was not able to use HB in Grasshopper anymore, so I updated my Honeybee version inside Grasshopper and it worked fine! I think it is not ideal that they are using the same ladybug_tools folder though, perhaps that could be fixed in a future release of lbt.

Conclusion: the lbt installation inside Grasshopper influences how the lbt-recipes package works externally in Python, no matter where and how you install it. You should make sure both installations use the same version of Ladybug Tools. Apparently the fact that I was using 1.4.0 in GH was the problem.

Hopefully this solution will save someone a few days…

4 Likes