You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
======== Running on http://0.0.0.0:8080 ========
(Press CTRL+C to quit)
Error handling request
concurrent.futures.process._RemoteTraceback:
"""
Traceback (most recent call last):
File "F:\envs\_april\lib\multiprocessing\queues.py", line 236, in _feed
obj = _ForkingPickler.dumps(obj)
File "F:\envs\_april\lib\multiprocessing\reduction.py", line 51, in dumps
cls(buf, protocol).dump(obj)
TypeError: can't pickle _thread.lock objects
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "F:\envs\_april\lib\site-packages\aiohttp\web_protocol.py", line 418, in start
resp = await task
File "F:\envs\_april\lib\site-packages\aiohttp\web_app.py", line 458, in _handle
resp = await handler(request)
File "F:\envs\_april\lib\site-packages\aiohttp\web_urldispatcher.py", line 158, in handler_wrapper
return await result
File "F:\envs\_april\lib\site-packages\aiohttp_wsgi\wsgi.py", line 266, in handle_request
environ,
File "F:\envs\_april\lib\multiprocessing\queues.py", line 236, in _feed
obj = _ForkingPickler.dumps(obj)
File "F:\envs\_april\lib\multiprocessing\reduction.py", line 51, in dumps
cls(buf, protocol).dump(obj)
TypeError: can't pickle _thread.lock objects
The text was updated successfully, but these errors were encountered:
... but flask does not work. I guess serializing the entire flask application is not feasible. A possible approach for using a ProcessPool executor is to initialize the wsgi app in the process pool's initializer.
To reproduce:
Traceback:
The text was updated successfully, but these errors were encountered: