'module' object has no attribute 'O_RDWR'

Judging from the error message, @MaxMarschall , I don’t think the issue was directly related to Radiance. It seems that, somehow, you managed to break somethin in the IronPython plugin that Rhino uses since the tempfile is a native Python module and not specific to ladybug tools. In other words, you could have gotten the same error by putting the following into a GHPython component:

import tempfile

In any case, I am glad that you fixed it. When you say that you “reinstalled”, did you just reinstall Ladybug Tools? Or did you reinstall Rhino?