Subprocess Crashes Unexpectedly From Pydev, Works Fine From Double Click In Windows Explorer
Solution 1:
The solution (which I've come accross after writting a draft for the question) was found here:
http://sourceforge.net/p/pydev/discussion/293649/thread/94a76ecb/
Basically, PyDev adds some environment variables that don't play well with Abaqus, so to turn them off the following code can be used:
import os
try:
os.environ.pop('PYTHONIOENCODING')
except KeyError:
pass# now call abaqus...
Hopefully this is of use to someone, I've spent almost two days fixing this. It is a bit of a niche use of PyDev (I'm not a programmer, I'm a Civil Engineer) but I think it is much more powerful to have Eclipse take care of all the source files. Abaqus CAE files are all binary and proprietary so source control and custom edits are a pain otherwise.
I guess in any case the solution is to trace the problem by taking bits of it off and checking what works and what the differences are.
Post a Comment for "Subprocess Crashes Unexpectedly From Pydev, Works Fine From Double Click In Windows Explorer"