Python : subprocess.py”, line 1238, in _execute_child Error

Error :

File "/home/anukul/ji/ji_test_subprocess.py", line 410, in ji_start_child
 p = subprocess.Popen(args,stdout=subprocess.PIPE,stderr=subprocess.PIPE)
 File "/usr/lib64/python2.6/subprocess.py", line 642, in __init__
 errread, errwrite)
 File "/usr/lib64/python2.6/subprocess.py", line 1238, in _execute_child
 raise child_exception
OSError: [Errno 2] No such file or directory


Error: File "/usr/lib64/python2.6/subprocess.py", line 1238, in _execute_child
OS system call failed.

 

Solution:

This issues occurs if the child process  (passed as arg : subprocess.Popen(args doesn’t exist or not accessible.

1) Check if command passed is correct (e.g. if you are passing “lcov” and this package itself not installed)
2) Check permissions of executable

 

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s