Closed aishuiyer1 closed 3 years ago
@nheeren @kamilitsa would be great if you could share your solutions, if they are different!
I had a similar folder issue and I think it has nothing to do with your laptop being Mac (I'm on Windows). I believe it's caused by the fact that in order for the code to work, the "basepath" needs to be the main folder, not the "BuildME" subfolder. However, when the "main.py" is placed in the "BuildME" subfolder, I think (?) this becomes the "basepath" by default.
In your case Aishwarya, the issue was this line in "main.py":
from BuildME import settings, idf, material, energy, simulate, __version__
but I've run into a similar issue in "settings.py", where we have for example:
ep_path = os.path.abspath("./bin/EnergyPlus-9-2-0/")
This line requires us to go to the "bin" subfolder, but to get there, we need to start from the main folder, not the "BuildME" subfolder!
I fixed this by adding one line at the beginning of the "settings.py". It basically goes one level up from the default directory.
os.chdir(os.path.dirname(os.getcwd()))
I hope it makes sense :blush: I might have made some confusion with the wording etc., my understanding of it all is quite basic :worried:
Thanks for opening this issue!
I am not sure how main.py
ended up in the BuildME
subfolder, but it is supposed to be one folder up. Just as you already figured out. I will push it next time I work on the code. Feel free to do so in case you need a git exercise ;)
I fixed this by adding one line at the beginning of the "settings.py". It basically goes one level up from the default directory. os.chdir(os.path.dirname(os.getcwd()))
Although this is a viable solution, I would like something more permanent.
The issue with libgfortran.5.dylib
puzzles me a bit to be honest. Maybe the energyplus project decided to use a newer fortran library and included it along also in the older version.
I was trying to run BuildMe on my Mac, and I ran into a couple of issues. Firstly, the main.py file was unable to run due to the inability to find a particular folder. A screenshot of the error is attached below:
I fixed this by moving the main.py file out of the "BuildME" folder, and it ran past this particular issue then.
After this, I ran into an issue with EnergyPlus9.2.0, where the code could not find "libgfortran.3.dylib" called in the settings.py file. I looked into it, and found that my version of EnergyPlus9.2.0 has "libgfortran.5.dylib" and not version 3. I changed the version called in the settings.py file, and this was fixed.