question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

issue with gevent monkeypatching on python > 3.4

See original GitHub issue

from http://www.gevent.org/gevent.monkey.html

patch_select(aggressive=True) Replace select.select() with gevent.select.select() and select.poll() with gevent.select.poll (where available).

If aggressive is true (the default), also remove other blocking functions from select and (on Python 3.4 and above) selectors:

select.epoll() select.kqueue() select.kevent() select.devpoll() (Python 3.5+) selectors.EpollSelector selectors.KqueueSelector selectors.DevpollSelector (Python 3.5+)

On python 3.6, if i use gevent monkey-patching (“patch_all”), I start to get following errors on pusher.trigger('ssssss', 'client-message', event)

AttributeError: module ‘select’ has no attribute ‘epoll’

really need help on this

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
sandyscommented, May 2, 2017

hi callum, thanks for looking into this. Really appreciate this.

wanted to point out some relevant links that may be helpful to you -

https://github.com/shazow/urllib3/pull/1105 https://github.com/shazow/urllib3/pull/1128 https://github.com/kennethreitz/requests/issues/3831 https://github.com/shazow/urllib3/issues/1104 (though is python 2.7) https://github.com/miguelgrinberg/Flask-SocketIO/issues/413

regards Sandeep

On Tue, May 2, 2017 at 6:52 PM, Callum Oakley notifications@github.com wrote:

Hi Sandeep,

I see! Apologies, I’m not very familiar with gevent so wasn’t really sure what would be required to reproduce. I’ll try and take a closer look in to this later today. Thanks for the extra information.

Best, Callum

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pusher/pusher-http-python/issues/88#issuecomment-298633732, or mute the thread https://github.com/notifications/unsubscribe-auth/AAEsU6ilK2UwA0njANAVwblkeRWInvLYks5r1y4HgaJpZM4NApoz .

0reactions
WillSewellcommented, Jul 16, 2018

Closing because there has been no example provided that reproduces the issue. Please re-open if you can provide this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

gevent.monkey – Make the standard library cooperative
Beginning in gevent 1.3, events are emitted during the monkey patching process. These events are delivered first to gevent.events subscribers, and then to ......
Read more >
Gevent monkey patching - OverflowError - Stack Overflow
The problem was that I was running 32bit instead of 64bit Python3 on RPi.
Read more >
Seeing MonkeyPatching error while running newrelic-admin ...
Hello, I have spoken to our Python agent team regarding your concerns. After looking into it, they believe that this is a non-issue....
Read more >
Side effects of monkey patching - Google Groups
I am new to gevent, and am trying to make asynchronous http requests using the async module of requests library. The async module...
Read more >
Gevent — PyMongo 3.4.0 documentation
PyMongo uses thread and socket functions from the Python standard library. Gevent's monkey-patching replaces those standard functions so that PyMongo does ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found