On Sat, Jan 19, 2013 at 6:40 AM, dsfdf <
gokop...@gmail.com> wrote:
> My old vm uses 10.04 ubuntu so the default was 2.6.5, but we were using
> 0.13.7 which was relatively new. The latest is 0.13.8 if i am corrected.
>
> We have been using
>
> monkey.patch_all() the whole time. We now migrated to 2.7.3 on ubuntu 12.04
> But when we use that, we get the error in the title. Basically, select
> cannot be patched out.
gevent does not implement emulation of poll(), so monkey.patch_all()
removes it from select module.
You can disable this behavior by passing aggressive=False to
patch_all() or patch_select(). See monkey.py for details.
However, most libraries, subprocess.py included, check if poll is
present and switch to select() if it's not (search for has_poll in
subprocess.py).
The fact that it does not in your case most likely means that you
import subprocess after you monkey patch stdlib. Try to monkey patch
early and it should work.
Cheers,
Denis.