python - exception in sqlalchemy with gevent -
at first. project use sqlalchemy==0.9.3
gunicorn==19.3.0
. runs perfect.
recently, upgrade sqlalchemy 1.0.4. then, there exist exception.
error sqlalchemy.pool.queuepool[101946]:[myproj]pool => _finalize_fairy exception during reset or similar traceback (most recent call last): file "/srv/virtualenvs/myprojenv/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 631, in _finalize_fairy fairy._reset(pool) file "/srv/virtualenvs/myprojenv/local/lib/python2.7/site-packages/sqlalchemy/pool.py", line 765, in _reset pool._dialect.do_rollback(self) file "/srv/virtualenvs/myprojenv/local/lib/python2.7/site-packages/sqlalchemy/dialects/mysql/base.py", line 2519, in do_rollback dbapi_connection.rollback() file "/srv/virtualenvs/myprojenv/local/lib/python2.7/site-packages/pymysql/connections.py", line 711, in rollback self._read_ok_packet() file "/srv/virtualenvs/myprojenv/local/lib/python2.7/site-packages/pymysql/connections.py", line 685, in _read_ok_packet pkt = self._read_packet() file "/srv/virtualenvs/myprojenv/local/lib/python2.7/site-packages/pymysql/connections.py", line 882, in _read_packet packet_header = self._read_bytes(4) file "/srv/virtualenvs/myprojenv/local/lib/python2.7/site-packages/pymysql/connections.py", line 899, in _read_bytes data = self._rfile.read(num_bytes) file "/srv/virtualenvs/myprojenv/local/lib/python2.7/site-packages/pymysql/_socketio.py", line 59, in readinto return self._sock.recv_into(b) file "/srv/virtualenvs/myprojenv/local/lib/python2.7/site-packages/gevent/socket.py", line 428, in recv_into self._wait(self._read_event) file "/srv/virtualenvs/myprojenv/local/lib/python2.7/site-packages/gevent/socket.py", line 298, in _wait self.hub.wait(watcher) file "/srv/virtualenvs/myprojenv/local/lib/python2.7/site-packages/gevent/hub.py", line 342, in wait assert result unique, 'invalid switch %s: %r (expected %r)' % (getcurrent(), result, unique) assertionerror: invalid switch <greenlet @ 0x7f6fedf28730: <functools.partial object @ 0x7f6fee2eb470>(<socket @ 0x7f6fee0b1550 fileno=25 sock=127.0.0.1, ('127.0.0.1', 40742))>: <gevent.event.asyncresult object @ 0x7f6fedeaed50> (expected <object object @ 0x7f6fedf84b60>)
is there can help? much.
Comments
Post a Comment