diff --git a/modules/bindings/pymod/msms.py b/modules/bindings/pymod/msms.py index 21ccf5125046bbbbdfebb4b18ec1ff64c17b47a4..b7d338e507d6b93f120d5fa022c8361cb117d131 100644 --- a/modules/bindings/pymod/msms.py +++ b/modules/bindings/pymod/msms.py @@ -43,7 +43,8 @@ def GetVersion(msms_exe=None, msms_env=None): """ msms_executable = _GetExecutable(msms_exe, msms_env) command = "%s" % (msms_executable) - proc = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE) + proc = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, + universal_newlines=True) stdout_value, stderr_value = proc.communicate() version = "" @@ -149,7 +150,8 @@ def _RunMSMS(command): :returns: stdout of MSMS :raises: :class:`CalledProcessError` for non-zero return value """ - proc = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE) + proc = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, + universal_newlines=True) stdout_value, stderr_value = proc.communicate() #check for successful completion of msms