Grasshopper

algorithmic modeling for Rhino

Hi

I have just noticed (amongst my many other newbie missed messages) that the Honeybee 

component itself has an error report: It cannot find Radiance.

I have the latest Radiance from NREL installed within OpenStudio (C:\Program Files\OpenStudio 1.10.0\share\openstudio\Radiance\bin ) AND separately in the now normal C:\Program Files\Radiance\bin directory.

I have looked at the Honeybee code - which is clearly looking for the spaces in C:\Program Files\ but beyond that I cannot fathom what it is doing that it misses both these instances of Radiance. (I thought it might be obvious in the code)

Any thoughts?

Code snippet from lines 356-369 in Honeybee

fpath, fname = os.path.split(program)
if fpath:
if is_exe(program):
return program
else:
for path in os.environ["PATH"].split(os.pathsep):
path = path.strip('"')
exe_file = os.path.join(path, program)
if is_exe(exe_file):
# This is a change to catch cases that user has radiance inastalled
# at C:\Program Files\Radiance
if path.strip().find(" ") == -1:
return path, exe_file
return None, None

 M

Views: 1556

Replies are closed for this discussion.

Replies to This Discussion

Hi Michael, Honeybee currently can't handle filepath with white spaces. You need to install radiance at C:\radiance (exe file will be installed under C:\Radiance\bin).

Hi

My mistake. I will install Radiance in a third location on my system (it needs to be compatible with all the different ways in which I use it)

Sorry to bother you again on this question. I had (mis)understood that the installation no longer required this file location for Radiance.

M

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service