I am trying to run a Fortran executable through a Python script but am getting an error. I can run the executable fine through the command line, but when I run this Python script inside Spyder it can't find a certain file. Below is the line of code I'm using and the output error:
process = subprocess.Popen(["./genex"])
error:
dyld: Library not loaded: @rpath/libgfortran.3.dylib
Referenced from: /Users/Austin/tycho-1-14/run/./genex
Reason: image not found
EDIT:
I did not find a solution to this particular problem, but I found that running the Python script from the command line instead of inside Spyder fixed the issue.
