I ran into an issue with using gevent and subprocess. Using TG 2.3 and 
gevent 1.0.1

code:

p = Popen("gpg --no-secmem-warning -q -r " + to + " -e -a", stdin=PIPE, 
> stdout=PIPE, stderr=PIPE, shell=True, env=env)
>     output = p.communicate(input=data)
>

Error:

>
>    - File "/usr/lib/python2.7/subprocess.py", line *1312*, in _communicate 
>    
>    stdout, stderr = self._communicate_with_poll(input)
>    
>     - File "/usr/lib/python2.7/subprocess.py", line *1342*, in 
>    _communicate_with_poll 
>    
>    poller = select.poll()
>    
>     
> AttributeError: 'module' object has no attribute 'poll'
>
> This may be related to this gevent issue: 
> https://github.com/surfly/gevent/issues/446 


Seems that poll is removed by gevent and needs monkey patched?  I also 
posted this on the github issue as a heads up.

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.

Reply via email to