I am trying to run the TauClearSky Component but I get this error:
- Solution exception:Local variable ‘iron_python’ referenced before assignment.
Attached the file. All the components are updated.
Could you help me?
tauclearsky.gh (456.9 KB)
Working fine at my end.
Please update the HB+LB components. They are not the last ones.
@AbrahamYezioro thanks for checking.
I have updated everything but still not working. I noticed that both the WEA components don’t work (see attached figure).
Is there a solution to my problem?
Check what are you missing in the installation. See the output of the HB-HB component.
You are probably missing Radiance or Daysim.
It is missing only openstudio. All the others components are installed. I don’t know what is going wrong.
Thanks for your time
I would try to install again LB[+]
It’s most likely because of the version of IronPython. Can you try lines below in a GHPython component and let me know the results.
iron_python = True if platform.python_implementation() == 'IronPython' else False
This is the output.
Runtime error (ValueErrorException): failed to parse CPython sys.version: ‘2.7.3 ()’
line 1382, in _sys_version, “C:\Program Files\Rhinoceros 5 (64-bit)\Plug-ins\IronPython\Lib\platform.py”
line 1418, in python_implementation, “C:\Program Files\Rhinoceros 5 (64-bit)\Plug-ins\IronPython\Lib\platform.py”
line 2, in script
And are you using CPython? This is pretty strange since the error happens in IronPython. Can you also try these lines?
I want to see if path to CPython libraries is added to sys before path to IronPython.
Here the second output.
C:\Program Files\Rhinoceros 5 (64-bit)\Plug-ins\IronPython\Lib
@AndreaZani905, This should solve the problem:
Please updated Ladybug[+] library.
Here is why the issue was happening: