Questions tagged [gevent]

Gevent is a coroutine-based Python networking library that uses greenlet to provide a high-level synchronous API on top of libevent (libev after 1.0) event loop.

Gevent is a coroutine-based Python networking library that uses greenlet to provide a high-level synchronous API on top of libevent (libev after 1.0) event loop.

1147 questions
0
votes
1 answer

Bottle equivalent of engine.restart()

I am trying to transfer from Cherrypy to Bottle & Gevent(server). After I run: application=bottle.default_app() #bottle WSGIServer(('', port), application, spawn=None).serve_forever() #gevent I want to restart the server just as if the reloader…
gabeio
  • 1,282
  • 1
  • 23
  • 37
0
votes
1 answer

Is my method of threading efficient?

Basically I just want to know if I implemented threading correctly for concurrent socket threading. Here's my approach: #!/usr/bin/env python import sys import time from gevent import socket, Timeout, select from gevent.pool import Pool def…
Jason
  • 13
  • 4
0
votes
2 answers

Preferred python networking framework/library for desktop app

I want to write a p2p share software using python, it mainly used in windows, but can also works in linux. So I've tried some frameworks/libraries such as Twisted, Gevent, and Tornado(may be tornado is not a good one for windows desktop client). But…
jiluo
  • 2,296
  • 3
  • 21
  • 34
0
votes
2 answers

how to handle non http request in pywsgi

I have a web server using gevent.pywsgi.WSGIServer (http://www.gevent.org/gevent.pywsgi.html)and I need to handle a non-http request as well as normal http requests. Server: web_server = gevent.pywsgi.WSGIServer(('', 8080), web_server); …
Tereus Scott
  • 674
  • 1
  • 6
  • 11
0
votes
1 answer

Python and gevent - AttributeError: 'module' object has no attribute 'queue'

I am rather new with gevent but I an trying to create a queue but I get the below error. I am using python2.7. import gevent queue = gevent.queue.Queue() Traceback (most recent call last): File…
Tampa
  • 75,446
  • 119
  • 278
  • 425
0
votes
1 answer

Django, django-socketio and mongodb backend

I have a running django-nonrel application and I would like to add a real time module using web sockets. I would like to use django-socketio but it seems that gevent (which is used to serve the site) does not work properly with mongodb (link) which…
dry
  • 831
  • 2
  • 8
  • 21
0
votes
2 answers

Should I use gevent-socketio or write native sockit.io code?

Is it good to use gevent-socketio to replace native Socket.io/Node.js code? What are your thoughts on this?
user469652
  • 48,855
  • 59
  • 128
  • 165
-1
votes
2 answers

How to setup gevent monitor thread with gunicorn

I am using gevent workers with gunicorn for my flask application. I am facing issues where my greenlets are getting blocked for long periods. gevent provides monitoring via monitor threads. Is it possible to setup this monitor thread when using…
ravi katiyar
  • 11
  • 1
  • 7
-1
votes
1 answer

How do I resolve pip install gevent error on Mac OS Mojave?

I am a python newbie. I opened an existing project in Pycharm on Mac OS and got this error: $ brew install pip Error: No available formula with the name "pip" pip is part of the python formula: brew install python $ brew install python3 Error:…
user674669
  • 10,681
  • 15
  • 72
  • 105
-1
votes
2 answers

Build python's gevent in outer Docker image

This dockerfile will obviously not work: FROM python:3.7.0-alpine RUN pip install gevent since there is no compiler in alpine. Is it possible to install it in a different docker image and then copy it to my image? In other words, can i achieve…
Kazz
  • 585
  • 1
  • 6
  • 23
-1
votes
2 answers

unable to install specific libraries in Python

I am trying to install gevent with pip but failed to install it. Requirement already satisfied: gevent in c:\program files (x86)\python36-32\lib\site-packages (1.3.4) Requirement already satisfied: cffi>=1.11.5; sys_platform == "win32" and…
Damian
  • 325
  • 1
  • 3
  • 7
-1
votes
1 answer

How asynchronous system in python work?

I have a new project that I plan to use aiohttp withuWSGI. I found out that uWSGI support asyncio via greentlet. I also did some research about about greenlet and found out it provides event loop too. So as a newbie in python (come from Node.js…
Semooze
  • 143
  • 10
-1
votes
1 answer

Receiving Memory Error with Flask when auto-generating images

Exception happened during processing of request from ('127.0.0.1', 40366) Traceback (most recent call last): File "/usr/lib/python3.5/socketserver.py", line 625, in process_request_thread File "/usr/lib/python3.5/socketserver.py", line 354, in…
-1
votes
1 answer

Cannot find gevent module

I've created a Python-Flask app running on Openshift.com (that started out as a clone of https://github.com/ryanj/flask-postGIS). If a user stops the download of a file prematurely, the app crashes and throws a "Broken Pipe Error". I've read [1],…
RyanKDalton
  • 1,271
  • 3
  • 14
  • 30
-1
votes
1 answer

Python gevent installation error

I installed gevent but the command returns 'ImportError: No module named gevent' Can you please help me debugging this problem? The code works on my Mac. I don't know why it doesn't work on Windows.
1 2 3
76
77