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?
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:
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?
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:
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.
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:
Create a new temp folder someplace (Desktop, etc…)
Open this folder in PowerShell of sim (as admin)
Create a virtual environment using: python -m venv venv