Several users have been trying to install the new Ladybug Tools plugin using the Food4Rhino installer but they have never used GHPython in Grasshopper (or Python in Rhino) before and so they lack the settings file that the installer tries to edit. This results in the failure of the last step on Windows - running the
set_python_path.bat and users experiencing all Ladybug tools components returning the error:
Failed to import xxx: no module named xxxx
While our primary recommendation for this case is to just purchase an executable installer by emailing firstname.lastname@example.org, there is a manual workaround if you are willing to spend more time to implement it. It is as follows:
Make sure that the following directory exists on your machine after following all of the previous installation steps:
Open Rhino and type the
EditPythonScriptcommand into your command bar. This will bring up the following window:
Optionsfrom the menu bar at the top. This will bring up the following window:
Click the button highlighted in Green above, which is labeled “
Add to search path” and allows you to add a new path to Rhino Python.
This will bring up a menu where you can navigate to the
site-packagesfolder noted above like so:
Hit OK for all of the windows you opened and close Rhino.
The next time that you restart Rhino/Grasshopper the Ladybug Tools components should work without import errors.