473,378 Members | 1,541 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

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 4178
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: Michael McGarry | last post by:
Hi, I am just starting to use Python. Does Python have all the regular expression features of Perl? Is Python missing any features available in Perl? Thanks, Michael
4
by: Nicolas Fleury | last post by:
Hi, I want to use the subprocess module (or any standard Python module) to run a process: - which stdout and stderr can each be redirected to any file-like object (no fileno function). - can be...
2
by: goodnamesalltaken | last post by:
Hello fellow python users, I've been working on a basic implementation of a privilege separated web server, and I've goto the point of running a basic cgi script. Basically when the execCGI...
5
by: Grant Edwards | last post by:
I'm trying to use the py-gnuplot module on windows, and have been unable to get it to work reliably under Win2K and WinXP. By default, it uses popen(gnuplotcmd,'w'), but in some situations that...
3
by: Lee | last post by:
Has anyone ran into this problem? I've done extensive googling and research and I cannot seem to find the answer. I downloaded the source for 2.5.1 from python.org compiled and installed it on a...
2
by: Michael George Lerner | last post by:
Hi, (Python 2.5, OS X 10.4.10) I have a program called pdb2pqr on my system. It is installed so that "pdb2pqr" is in my path and looks like: #\!/bin/zsh -f /sw/share/pdb2pqr/pdb2pqr.py "$@"...
12
by: bhunter | last post by:
Hi, I've used subprocess with 2.4 several times to execute a process, wait for it to finish, and then look at its output. Now I want to spawn the process separately, later check to see if it's...
3
by: W. Watson | last post by:
After simply trying to write a program with help(MakeQTE), a module, and having it fail with socket errors, I decided to restart IDLE, thinking I knew the cause. I'm now getting msgs like: "IDLE's...
25
by: Jeremy Banks | last post by:
Hi. I wondered if anyone knew the rationale behind the naming of the Popen class in the subprocess module. Popen sounds like the a suitable name for a function that created a subprocess, but the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.