468,771 Members | 1,888 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,771 developers. It's quick & easy.

execve error with the subprocess module

I have some code which runs on a number of different machines, however
I see problems on one particular Solaris box. When I call
Popen.wait(), the following exception is raised:

.. . .
File "/basis/users/matt/Python-2.4.4/Lib/subprocess.py", line 558, in
__init__
errread, errwrite)
File "/basis/users/matt/Python-2.4.4/Lib/subprocess.py", line 992,
in _execute_child
raise child_exception
TypeError: execve() arg 3 contains a non-string value

I've been poking around a bit subprocess.py and I can't figure out why
data is non-empty string in this line:
data = os.read(errpipe_read, 1048576) # Exceptions limited to 1 MB)

From what I see, the command I'm running is perfectly valid and should
be running without any problems.

Any help is appreciated.
Oct 21 '08 #1
1 3890
En Tue, 21 Oct 2008 13:45:10 -0200, yo**********@gmail.com
<yo**********@gmail.comescribió:
I have some code which runs on a number of different machines, however
I see problems on one particular Solaris box. When I call
Popen.wait(), the following exception is raised:

. . .
File "/basis/users/matt/Python-2.4.4/Lib/subprocess.py", line 558, in
__init__
errread, errwrite)
File "/basis/users/matt/Python-2.4.4/Lib/subprocess.py", line 992,
in _execute_child
raise child_exception
TypeError: execve() arg 3 contains a non-string value

I've been poking around a bit subprocess.py and I can't figure out why
data is non-empty string in this line:
data = os.read(errpipe_read, 1048576) # Exceptions limited to 1 MB)
>From what I see, the command I'm running is perfectly valid and should
be running without any problems.
The line numbers in your traceback don't match the 2.4.4 source - probably
some debug statements you inserted, but make sure they don't interfere.

The TypeError is raised in the child process, before running your command,
and basically means that you passed bogus data as the env parameter to
subprocess.

--
Gabriel Genellina

Oct 22 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

17 posts views Thread by Michael McGarry | last post: by
4 posts views Thread by Nicolas Fleury | last post: by
2 posts views Thread by goodnamesalltaken | last post: by
5 posts views Thread by Grant Edwards | last post: by
3 posts views Thread by Lee | last post: by
12 posts views Thread by bhunter | last post: by
3 posts views Thread by W. Watson | last post: by
25 posts views Thread by Jeremy Banks | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.