gevent


Is there any way to run gevent-socketio 0.3.5-rc2 with gunicorn 18.0 without downgrading


I'm running:
gevent==0.13.8
gevent-socketio==0.3.5-rc2
gunicorn==18.0
And have run into the following error:
2013-11-05 06:40:00 [5671] [ERROR] Exception in worker process:
Traceback (most recent call last):
File "/home/vagrant/server/lib/python2.7/site-packages/gunicorn/arbiter.py", line 495, in spawn_worker
worker.init_process()
File "/home/vagrant/server/lib/python2.7/site-packages/gunicorn/workers/ggevent.py", line 165, in init_process
super(GeventWorker, self).init_process()
File "/home/vagrant/server/lib/python2.7/site-packages/gunicorn/workers/base.py", line 112, in init_process
self.run()
File "/home/vagrant/server/lib/python2.7/site-packages/socketio/sgunicorn.py", line 14, in run
self.socket.setblocking(1)
AttributeError: 'GeventSocketIOWorker' object has no attribute 'socket'
A previous stack overflow question has the solution "downgrade to version 16.0"
GeventSocketIOWorker has no attribute 'socket'
However I'm reluctant to do this because additions in v18.0 are really useful to me.
I'm asking here because I'm not sure if there's an easy solution that I'm missing. If not I imagine I'll need to raise a ticket for gunicorn?
It was a version thing.
gevent-socketio version 0.3.5-rc2 was uploaded to Pypi in July 2012. The fix for this issue came out in Jan 2013.
I solved it by using the master branch from the gevent-socketio repository on GitHub. To do this, change the line for gevent-socketio in requirements.txt to
-e git+git#github.com:abourget/gevent-socketio.git#egg=gevent_socketio

Related Links

building gevent in raspberry pi qemu
Some confusion about gevent (cffi) setup
Do rdflib and gevent work nicely together?
Replace gevent.spawn_link_exception
thread exception occurred in gevent
Is join required on gevent gthreads?
ZeroRPC heartbeats and timeouts
NewRelic doesn't graph any data in a Python + Gevent based system
Is there any way to run gevent-socketio 0.3.5-rc2 with gunicorn 18.0 without downgrading
How can I test to see whether gevent monkey patching is active?
How does gevent interact with threading.local data?
werkzeug server failed to handle request
Running time puzzle about gevent
Why does this http streaming not work as expected?

Categories

HOME
google-cloud-pubsub
algolia
ftp
domain-driven-design
openacc
spotfire
data-modeling
cryengine
crash
confluence-rest-api
foreach
schema
jpql
elastalert
unreal-engine4
eclipse-orion
box2d
background-image
amazon-data-pipeline
ringcentral
powerpivot
loader
glibc
ampscript
descriptor
serenity-js
rndis
angular2-pipe
google-drive-android-api
rvm
functional-dependencies
jira-zephyr
inspec
akavache
orgchart
azure-table-storage
dynamics-ax-2012-r3
log4net-configuration
powerbi-embedded
wunderground
asp.net-webhooks
android-databinding
const
scalamock
nsdateformatter
keychain
redbean
cakephp-3.2
text-formatting
sharpssh
dmalloc
chain
printer-control-language
tsc
acceleo
suitesparse
apache-commons-cli
spring-social-twitter
android-music-player
firebase-polymer
git-push
x12
cherry-pick
boost-propertytree
camellia
sqlxml
video-embedding
trendline
jcomponent
self-join
eggplant
euro
esri-arc-engine
jsonmodel
breeze-sharp
javacompiler
switchpreference
mvcgrid
behance-api
webshim
satisfiability
rssi
object-oriented-database
kendo-window
oc4j
mosix
symbian3
rbm
configurationsection
linear-interpolation
inflate
mail-gem
report-viewer2010
filedialog
systrace
joomla1.7
utm
apache-commons-email
execjs
xpolog
zipstream
viewdata
qprocess
cons
moores-law

Resources

Encrypt Message