I have a python 3 script that I am invoking from another Python 2.7.x script, using subprocess.popen.
myproc = subprocess.Popen(
"/path/to/my/python/3/script",
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
cwd=mypwd,
shell=True)
When I debug this script using Eclipse and print out stderr I see the following issue:
Fatal Python error: Py_Initialize: Unable to get the locale encoding
The issue is NOT seen when I execute the same code in a script outside Eclipse.
Any help to solve this will be greatly appreciated!