2

Unable to run OpenStudio due to PYTHONHOME error on Mac

I've searched all over the internet for this and can't seem to fix this error. I am new to OpenStudio and trying to run a simple model. I am repeatedly getting the following errors from within the OpenStudio Application.

Initializing workflow.
Processing OpenStudio Measures.
Translating the OpenStudio Model to EnergyPlus.
Processing EnergyPlus Measures.
Starting Simulation.
EnergyPlus Starting
EnergyPlus, Version 9.3.0-baff08990c, YMD=2020.08.13 09:58
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Adjusting Air System Sizing
Adjusting Standard 62.1 Ventilation Sizing
Initializing Simulation
Program terminated: EnergyPlus Terminated--Error(s) Detected.
Failed.

I have tried changing my PYTHONHOME environment variable in my .zprofile to the directory of my python installation which didn't correct the error. Does it need to be set to the Python Standard Library included in the OpenStudio installation? I tried setting it like this:

export PYTHONHOME="/Applications/OpenStudio-3.0.1/EnergyPlus/"

which is where the Python Standard Library is located for OpenStudio, but that caused an import module error when trying to run Python in my terminal so I reverted back to the directory of my Python installation (/Users/myusername/opt/anaconda3). Any help would be much appreciated. Thanks!

carolyng's avatar
75
carolyng
asked 2020-08-13 09:08:46 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2020-08-15 11:43:58 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

4

Those messages may be unrelated to the actual problem with the simulation. With some of the python work that was implemented in EnergyPlus starting with 9.3, those messages are coming out on Mac but they are actually harmless because of how we are setting up Python internally.

Can you confirm the simulation error file is clean and does not show any other clues?

Edwin's avatar
1.4k
Edwin
answered 2020-08-14 09:27:28 -0500
edit flag offensive 0 remove flag delete link

Comments

You're right. There was something wrong with the simulation. Thanks for your help!

carolyng's avatar carolyng (2020-08-14 10:35:17 -0500) edit
add a comment see more comments