Forums

failed with TypeErro

Hi, I am trying to learn python, flask and sockets, when I run an example I got this :

C:\Users\alotfi\PycharmProjects\async_flask-master
λ envasync\Scripts\activate
(envasync) C:\Users\alotfi\PycharmProjects\async_flask-master
λ python -V
Python 2.7.7

(envasync) C:\Users\alotfi\PycharmProjects\async_flask-master
λ python application.py
 * Running on http://127.0.0.1:5000/
 * Restarting with reloader
Traceback (most recent call last):
  File "C:\Users\alotfi\PycharmProjects\async_flask-master\envasync\lib\site-packages\gevent\greenlet.py", line 327, in run
    result = self._run(*self.args, **self.kwargs)
  File "C:\Users\alotfi\PycharmProjects\async_flask-master\envasync\lib\site-packages\gevent\server.py", line 102, in wrap_socket_and_handle
    ssl_socket = self.wrap_socket(client_socket, **self.ssl_args)
TypeError: wrap_socket() got an unexpected keyword argument 'debug'
<Greenlet at 0x2e9d620: <bound method SocketIOServer.wrap_socket_and_handle of <SocketIOServer at 0x2e73a70 fileno=464 address=127.0.0.1:5000>>(<socket at 0x2ec0d10 fileno=744 sock=127.0.0.1:500, ('127.0.0.1', 57127))> failed with TypeError

requirements.txt :

Flask==0.10.1
Flask-SocketIO==0.3.7
Jinja2==2.7.2
MarkupSafe==0.23
Werkzeug==0.9.4
gevent==1.0.1
gevent-socketio==0.3.6
gevent-websocket==0.9.3
greenlet==0.4.2
itsdangerous==0.24

Thanks, your help is appreciated.

[edited by admin: formatting]

Are you running this on your local machine?

yes

I would suggesting going to codementor for these sort of front end questions, as we deal with mostly backend/server side stuff.