PMV map 1.3.1 errors (DirectoryNotFoundException): Could not find a part of the path

Haven’t ran these in a bit: using most up to date install: Also using OS 3.3.0; most up to date version of other dependencies as well

Runtime error (DirectoryNotFoundException): Could not find a part of the path 'C:\comfosims\pmv_comfort_map\__logs__\logs.log'.

  line 353, in luigi_execution_summary, "C:\Users\TREVOR\ladybug_tools\python\Lib\site-packages\lbt_recipes\"
  line 372, in failure_message, "C:\Users\TREVOR\ladybug_tools\python\Lib\site-packages\lbt_recipes\"
  line 168, in script

Some more details:

Traceback (most recent call last):
  File "c:\users\trevor\ladybug_tools\python\lib\", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\users\trevor\ladybug_tools\python\lib\", line 85, in _run_code
    exec(code, run_globals)
  File "C:\Users\TREVOR\ladybug_tools\python\Scripts\queenbee.exe\", line 4, in <module>
  File "c:\users\trevor\ladybug_tools\python\lib\site-packages\queenbee\cli\", line 14, in <module>
    from .plugin import main as plugin
  File "c:\users\trevor\ladybug_tools\python\lib\site-packages\queenbee\cli\plugin\", line 1, in <module>
    from .new import new
  File "c:\users\trevor\ladybug_tools\python\lib\site-packages\queenbee\cli\plugin\", line 4, in <module>
    from ...plugin import Plugin
  File "c:\users\trevor\ladybug_tools\python\lib\site-packages\queenbee\plugin\", line 1, in <module>
    from .plugin import Plugin
  File "c:\users\trevor\ladybug_tools\python\lib\site-packages\queenbee\plugin\", line 10, in <module>
    from .function import Function
  File "c:\users\trevor\ladybug_tools\python\lib\site-packages\queenbee\plugin\", line 6, in <module>
    from import FunctionInputs
  File "c:\users\trevor\ladybug_tools\python\lib\site-packages\queenbee\io\inputs\", line 9, in <module>
    from jsonschema import validate as json_schema_validator
  File "c:\users\trevor\ladybug_tools\python\lib\site-packages\jsonschema\", line 34, in <module>
    __version__ = metadata.version("jsonschema")
  File "c:\users\trevor\ladybug_tools\python\lib\importlib\", line 531, in version
    return distribution(distribution_name).version
  File "c:\users\trevor\ladybug_tools\python\lib\importlib\", line 504, in distribution
    return Distribution.from_name(distribution_name)
  File "c:\users\trevor\ladybug_tools\python\lib\importlib\", line 177, in from_name
    raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: jsonschema

Runtime error (DirectoryNotFoundException): Could not find a part of the path '\\comfort_map\__logs__\logs.log'.

  line 345, in luigi_execution_summary, "C:\Users\TREVOR\ladybug_tools\python\Lib\site-packages\lbt_recipes\"
  line 364, in failure_message, "C:\Users\TREVOR\ladybug_tools\python\Lib\site-packages\lbt_recipes\"
  line 171, in script

Hey @TrevorFedyna ,

From the line that things are failing on, it seems like you have an older version of lbt-recipes installed. Can you try re-running the LB Versioner and restarting Rhino?

If the issue persists, do you have a file that can recreate the issue?

Hi @chris I’ve ran the visioner a couple times: both explicitly stating 1.3.0, and one with no version stated: and then installed OS 3.3.0 from the compatibility matrix.
Running your most up to date Gh sample for comfort mapping: on my machine the issue persists regardless of the version I’ve updated / backdated to (there’s got to be a better word than ‘backdated’ lol):
Then updating/backdating components on the sample script if needed:
I’m fairly certain at this point I’ve just got something wonkey happening on my machine

This sounds right as I can’t recreate the error on my end and I would assume this error message means that all of the HB-Radiance recipes are broken on your machine. The best course of action at this point is probably to completely uninstall and then reinstall Ladybug Tools. That should probably clear up whatever is going wrong with your core libraries here.

1 Like

Sounds good,
There couldn’t possibly be a disparity between PO tools and OG LBT (1.x not legacy) tooling libraries could there?
That’s the only thing I could think of that may possibly be causation: a versioning disparity on my machine that is my fault?
Other than that: will uninstall-reinstall when I get home from the dayjob

Hm, it’s possible that this could be it. If uninstalling doesn’t fix it, then I suggest looking at what you get when you run the following inside a GHPython component:

import sys
for item in sys.path:
1 Like

Documenting incase someone else has the same issues:

Used food4Rhino LBT 1.3.0 uninstaller/reinstaller:
HB objects would throw a ‘no construction/ no standards library found’ red box level exception:

Used LBT versioner:
No redbox errors:
Recipes run 4.0

0 interference with PO Rh/Gh side components noted

In case someone stumbles upon this issue, I have faced it recently, it’s an ugly one. It took me a while to figure out what was going on. I thought the error was in radiance as everything else in HB works apart from the Radiance-based recipes.

This is a problem somewhere between the recipe versions and the library versions, and I wasn’t able to fix it via versioner. The way to go was to:

  • uninstall entirely ladybug by deleting the folder users\ladybug_tools\
  • reinstall using the .gh installer provided by ladybug.

Good luck!