Re: [python-win32] problems with subprocess module and env parameter

2010-04-15 Thread Tim Roberts
Bill Janssen wrote: > Preston Landers wrote: > > > Ah, great! Thanks, Preston. That was it. Once I'd crunched all the > values to non-Unicode, it worked. Hmmm, I'd think maybe the > CreateProcess code would do that kind of normalization, or at last raise > a more comprehensible error. >

Re: [python-win32] problems with subprocess module and env parameter

2010-04-15 Thread Bill Janssen
Preston Landers wrote: > Your PATH is a Unicode string. I'm not sure offhand if that's acceptable or > not, but all the rest of the strings appear to be regular (non-unicode) > strings. > > You could also try: > > import types > for k, v in env.iteritems(): > if type(v) is not types.String

Re: [python-win32] problems with subprocess module and env parameter

2010-04-15 Thread Preston Landers
Your PATH is a Unicode string. I'm not sure offhand if that's acceptable or not, but all the rest of the strings appear to be regular (non-unicode) strings. You could also try: import types for k, v in env.iteritems(): if type(v) is not types.StringType: print k, v hope this helps, -Presto

[python-win32] problems with subprocess module and env parameter

2010-04-15 Thread Bill Janssen
When I call subprocess.Popen(), I'm getting an error from what I believe is win32process.CreateProcess: Traceback (most recent call last): File "TestAdds.py", line 950, in testNoPasswordNoGuardian (UPLIB_MAKE_REPOSITORY, self.port, self.directory)) File "TestAdds.py", line 96, in runSubPro