Question-and-Answer Resource for the Building Energy Modeling Community
Get s tarted with the Help page
Ask Your Question

Unable to run OpenStudio due to PYTHONHOME error on Mac

asked 2020-08-13 09:08:46 -0600

carolyng gravatar image

updated 2020-08-15 11:43:58 -0600

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.

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!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-08-14 09:27:28 -0600

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?

edit flag offensive delete link more


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

carolyng gravatar image carolyng  ( 2020-08-14 10:35:17 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer


Question Tools

1 follower


Asked: 2020-08-13 09:08:46 -0600

Seen: 402 times

Last updated: Aug 14 '20