Honeybee-PH components labelled old

Hey Ed,

I ran into a roadblock today while trying to update your component. It keeps displaying as ‘Old,’ and when I hover over the component error, I get the following message:

1. Solution exception:
Failed to import honeybee_ph_rhino:
Failed to import PHX:
No module named PHX

I’ve ensured that Ladybug is fully up to date and ran the installation as an administrator to avoid permission issues. To troubleshoot, I’ve:

  • Completely uninstalled Ladybug components from all directories I could locate
  • Uninstalled and reinstalled Rhino to rule out any conflicts
  • Rolled back to an older version, but the same error persists

At this point, I’m not sure what else to check. Do you have any insight into what might be causing this?

Thanks in advance!

Hi @Luke ,

Sorry for the trouble there. The error there appears to be related to some sort of library installation trouble? When Honeybee-PH installs, it should (if it is working properly) add new code-libraries into your:

C:\Program Files\ladybug_tools\python\Lib\site-packages\...


So for instance, once installed, there should now be a library named ‘PHX’, and one named ‘honeybee-ph’, and so on…

so, first, can you check this location and let me know what you see there?


second, can you let me know what you see when you run the Honeybee-PH installer? Does it give warnings or errors when you run it? It should, if working right, give detailed reporting of what it does and where it installs things?


@edpmay

Hey @edpmay,

Thank you for your reply. You are correct, there is no library named PHX in that directory.

I have played around with a few things and it seems to be an issue with my computer as I opened a virtual machine and it installed correctly. I believe the error is indicating that python does not have permission to modify xlwings.xlam even though Rhino is running in admin mode. I tried to reinstall xlwings but that didn’t resolve it either. Any insight on this would be amazing, I’ll post the full installation message bellow and highlight anything that seems concerning in bold:

  1. Rhino running in ‘Admin’ mode: True

  2. Rhino version: 8.16

  3. Ladybug-Tools-Grasshopper version: 1.8.88

  4. Ladybug Tools Python .exe: C:\Users\luke-\ladybug_tools\python\python.exe

  5. Ladybug Tools Python packages: C:\Users\luke-\ladybug_tools\python\Lib\site-packages

  6. Updating Pip…


  7. Installing Python package: “honeybee-ph” (v1.30.3) to: C:\Users\luke-\ladybug_tools\python\Lib\site-packages

  8. _package_name= honeybee-ph

  9. _package_version= 1.30.3

  10. _lbt_python_exe_path= C:\Users\luke-\ladybug_tools\python\python.exe

  11. _lbt_python_package_path= C:\Users\luke-\ladybug_tools\python\Lib\site-packages
    12. _package_install_folder_name= honeybee_ph
    13. _env[‘PYTHONHOME’]=

  12. package_dist_folder_name= honeybee_ph-1.30.3.dist-info

  13. package_dist_folder_path= C:\Users\luke-\ladybug_tools\python\Lib\site-packages\honeybee_ph-1.30.3.dist-info

  14. Installing “honeybee-ph==1.30.3” version via pip

  15. Package ‘honeybee-ph’ (v-1.30.3) successfully installed to: C:\Users\luke-\ladybug_tools\python\Lib\site-packages


  16. Installing Python package: “phx” (v1.50.3) to: C:\Users\luke-\ladybug_tools\python\Lib\site-packages

  17. _package_name= phx

  18. _package_version= 1.50.3

  19. _lbt_python_exe_path= C:\Users\luke-\ladybug_tools\python\python.exe

  20. _lbt_python_package_path= C:\Users\luke-\ladybug_tools\python\Lib\site-packages
    24. _package_install_folder_name= phx
    25. _env[‘PYTHONHOME’]=

  21. package_dist_folder_name= phx-1.50.3.dist-info

  22. package_dist_folder_path= C:\Users\luke-\ladybug_tools\python\Lib\site-packages\phx-1.50.3.dist-info

  23. Installing “phx==1.50.3” version via pip
    29. Could not find C:\Users\luke-\ladybug_tools\python\Lib\site-packages\phx-1.50.3.dist-info
    30. Package ‘phx’ (v-1.50.3) failed to install to: C:\Users\luke-\ladybug_tools\python\Lib\site-packages
    31. Package “phx==1.50.3” may not have been updated correctly
    or its usage in the plugin may have changed. See pip stderr below:
    ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: ‘C:\Users\luke-\ladybug_tools\python\Lib\site-packages\xlwings\addin\xlwings.xlam’
    Consider using the --user option or check the permissions.


  24. Downloading:: https://github.com/PH-Tools/honeybee_grasshopper_ph/archive/refs/heads/main.zip
    to:: C:\Users\luke-\ladybug_tools\python\Lib\site-packages\honeybee_grasshopper_ph.zip

  25. Unzipping:: C:\Users\luke-\ladybug_tools\python\Lib\site-packages\honeybee_grasshopper_ph.zip
    to:: C:\Users\luke-\ladybug_tools\python\Lib\site-packages\honeybee_grasshopper_ph-main/

  26. Copying “honeybee_grasshopper_ph” to:: C:\Users\luke-\ladybug_tools\python\Lib\site-packages

  27. Copying “honeybee_ph_rhino” to:: C:\Users\luke-\ladybug_tools\python\Lib\site-packages

  28. Copying “workflow” to:: C:\Users\luke-\ladybug_tools\python\Lib\site-packages

  29. Removing directory: C:\Users\luke-\ladybug_tools\python\Lib\site-packages\honeybee_grasshopper_ph-main

  30. Removing downloaded file: C:\Users\luke-\ladybug_tools\python\Lib\site-packages\honeybee_grasshopper_ph.zip


  31. Copying downloaded Grasshopper Components from::
    C:\Users\luke-\ladybug_tools\python\Lib\site-packages\honeybee_grasshopper_ph\user_objects to::
    C:\Users\luke-\AppData\Roaming\Grasshopper\UserObjects\honeybee_grasshopper_ph

  32. Cleaning up and removing download directory: C:\Users\luke-\ladybug_tools\python\Lib\site-packages\honeybee_grasshopper_ph


  33. Downloading:: https://github.com/PH-Tools/honeybee_grasshopper_ph_plus/archive/refs/heads/main.zip
    to:: C:\Users\luke-\ladybug_tools\python\Lib\site-packages\honeybee_grasshopper_ph_plus.zip

  34. Unzipping:: C:\Users\luke-\ladybug_tools\python\Lib\site-packages\honeybee_grasshopper_ph_plus.zip
    to:: C:\Users\luke-\ladybug_tools\python\Lib\site-packages\honeybee_grasshopper_ph_plus-main/

  35. Copying “honeybee_grasshopper_ph_plus” to:: C:\Users\luke-\ladybug_tools\python\Lib\site-packages

  36. Copying “honeybee_ph_plus_rhino” to:: C:\Users\luke-\ladybug_tools\python\Lib\site-packages

  37. Removing directory: C:\Users\luke-\ladybug_tools\python\Lib\site-packages\honeybee_grasshopper_ph_plus-main

  38. Removing downloaded file: C:\Users\luke-\ladybug_tools\python\Lib\site-packages\honeybee_grasshopper_ph_plus.zip


  39. Copying downloaded Grasshopper Components from::
    C:\Users\luke-\ladybug_tools\python\Lib\site-packages\honeybee_grasshopper_ph_plus\user_objects to::
    C:\Users\luke-\AppData\Roaming\Grasshopper\UserObjects\honeybee_grasshopper_ph_plus

  40. Cleaning up and removing download directory: C:\Users\luke-\ladybug_tools\python\Lib\site-packages\honeybee_grasshopper_ph_plus


  41. Downloading:: https://github.com/PH-Tools/PH_GH_Component_IO/archive/refs/heads/main.zip
    to:: C:\Users\luke-\ladybug_tools\python\Lib\site-packages\PH_GH_Component_IO.zip

  42. Unzipping:: C:\Users\luke-\ladybug_tools\python\Lib\site-packages\PH_GH_Component_IO.zip
    to:: C:\Users\luke-\ladybug_tools\python\Lib\site-packages\PH_GH_Component_IO-main/

  43. Copying “ph_gh_component_io” to:: C:\Users\luke-\ladybug_tools\python\Lib\site-packages

  44. Removing directory: C:\Users\luke-\ladybug_tools\python\Lib\site-packages\PH_GH_Component_IO-main

  45. Removing downloaded file: C:\Users\luke-\ladybug_tools\python\Lib\site-packages\PH_GH_Component_IO.zip


  46. Honeybee-PH and PHX have been successfully installed!
    Please RESTART RHINO to being using the new components + libraries.

Thanks again.

Hi @luke,

yes, It appears this is the issue:

31. Package “phx==1.50.3” may not have been updated correctly
or its usage in the plugin may have changed.
See pip stderr below:

ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: ‘C:\Users\luke-\ladybug_tools\python\Lib\site-packages\xlwings\addin\xlwings.xlam’
Consider using the --user option or check the permissions.

So for some reason the XLWings install is failing to install, which is then causing the problem in Rhino/Grasshopper.

What sort of system are you running here? What OS version, what Rhino version? I know there were some other problems with XLwings in Rhino recently, but I thought those were isolated to the Python3 interpreter? Honeybee uses the older Python2 IronPython interpreter, so I didn’t think that would be affected?


Are you able to install XLwings if you start a new Virtual Environment (outside Rhino/Honeybee) and just run pip install xlwings ?

To try this:

  1. Create a new temp folder someplace (Desktop, etc…)
  2. Open this folder in PowerShell of sim (as admin)
  3. Create a virtual environment using: python -m venv venv
  4. Activate it using: venv\Sctipts\activate
  5. pip install Xlwings using: pip install xlwings

See if it installed without any errors?

@edpmay

1 Like

Yeah that worked! After installing Xlwings it installed perfectly. Thanks so much mate

1 Like