Marxan Connect is currently 'frozen' when it runs Marxan on macOS and doesn't provide any text output until it's done because I haven't found a way to call the Marxan executable in a new terminal as I do in Windows.
This does run the Marxan executable with the correct input.dat file but only provides output AFTER it's done all the replicates. It does update normally when running from python with no output redirection (i.e. self.log = LogForm(parent=self)) but then GUI users get no output at all.
I have spent a few days troubleshooting this and the current solution is the best I can come up with, but I'm fully willing to explore this again if someone has bright ideas!
Description
Marxan Connect is currently 'frozen' when it runs Marxan on macOS and doesn't provide any text output until it's done because I haven't found a way to call the Marxan executable in a new terminal as I do in Windows.
On Windows:
but
subprocess.CREATE_NEW_CONSOLE
is not compatible with macOS, so I've had to find an alternative.Currently, on macOS:
This does run the Marxan executable with the correct
input.dat
file but only provides output AFTER it's done all the replicates. It does update normally when running from python with no output redirection (i.e.self.log = LogForm(parent=self)
) but then GUI users get no output at all.I have spent a few days troubleshooting this and the current solution is the best I can come up with, but I'm fully willing to explore this again if someone has bright ideas!