Ask Your Question

Eventlet crashes because of subprocess

asked 2011-02-28 22:25:20 -0500

The current version of Eventlet has a bug in it related to its interaction with the subprocess module.

It will generate a stacktrace like:

(nova): TRACE: stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=env) (nova): TRACE: File "/usr/lib64/python2.6/site-packages/eventlet/green/", line 31, in __init__ (nova): TRACE: wrapped_pipe = greenio.GreenPipe(pipe, pipe.mode, bufsize) (nova): TRACE: File "/usr/lib64/python2.6/site-packages/eventlet/", line 376, in __init__ (nova): TRACE: raise TypeError('f(ile) should be int, str, unicode or file, not %r' % f) (nova): TRACE: TypeError: f(ile) should be int, str, unicode or file, not <open greenpipe="" '<fd:4="">', mode 'wb' at 0xf54ea8>

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted

answered 2011-02-28 22:32:26 -0500

The issue is discussed here: (

You have two routes:

  1. Use the ppa

  2. Apply the patch included in the link. You can do something like:

pushd /usr/lib64/python2.6/site-packages/eventlet curl ( | patch popd


(Asking and answering my own question to document this issue for posterity. And karma. Lots of karam.).

edit flag offensive delete link more

answered 2011-02-28 22:47:49 -0500

soren gravatar image

I've turned this into an FAQ. Thanks. FAQ #1485: “Eventlet crashes because of subprocess”.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2011-02-28 22:25:20 -0500

Seen: 60 times

Last updated: Feb 28 '11