Local Machine Run Error

Hi ALL,

I’m trying to make a annual daylight simulation with pollination both on Cloud and local machine.
Plumpton Aquatic Centre_Daylighting Level 02.hbjson (4.4 MB)

My file works well with Cloud simulation, however it just not able to run on my local machine, and 3hr used up only after a few runs. The following error appeared. Could you please help:

1. Traceback (most recent call last):
  File "C:\Program Files\ladybug_tools\python\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Program Files\ladybug_tools\python\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\Program Files\ladybug_tools\python\Scripts\queenbee.exe\__main__.py", line 4, in <module>
  File "C:\Program Files\ladybug_tools\python\lib\site-packages\queenbee\cli\__init__.py", line 13, in <module>
    from .context import Context
  File "C:\Program Files\ladybug_tools\python\lib\site-packages\queenbee\cli\context.py", line 5, in <module>
    from pydantic import Field
  File "pydantic\__init__.py", line 2, in init pydantic.__init__
ImportError: DLL load failed while importing dataclasses: Access is denied.

DA Local Machine Run Fail.gh (66.9 KB)

Hi @ivylili,

From what I can see one of the dlls on your machine are either blocked or deleted. Do you have an Antivirus on your machine. And if yes, can you check the history/logs to see if any of the files under "C:\Program Files\ladybug-tools` has been affected?

We use Airlock Enforcement Agent, every now and then it blocked ladybug so I have to ask IT to enforce it.

However for this one, our IT has already approve all related path. See my history screenshot below

Hi @ivylili, these are exactly the dependencies that should be unblocked. Did they unblock them for you? Everything under the C:\Program Files\ladybug-tools should be unblocked including the pydantic dependencies.

@ivylili, were you able to solve this issue?

Thanks Mostapha,

This is solved.

1 Like