Spawning error
See original GitHub issueAttempting to use reload, can result in this error:
Traceback (most recent call last):
File "example.py", line 53, in <module>
uvicorn.run(app.__call__, reload=True)
File "/Users/tomchristie/GitHub/encode/typesystem/venv/lib/python3.6/site-packages/uvicorn/main.py", line 255, in run
supervisor.run(server.run, sockets=[socket])
File "/Users/tomchristie/GitHub/encode/typesystem/venv/lib/python3.6/site-packages/uvicorn/supervisors/statreload.py", line 34, in run
process.start()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/multiprocessing/process.py", line 105, in start
self._popen = self._Popen(self)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/multiprocessing/context.py", line 284, in _Popen
return Popen(process_obj)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/multiprocessing/popen_spawn_posix.py", line 32, in __init__
super().__init__(process_obj)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/multiprocessing/popen_fork.py", line 20, in __init__
self._launch(process_obj)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/multiprocessing/popen_spawn_posix.py", line 47, in _launch
reduction.dump(process_obj, fp)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/multiprocessing/reduction.py", line 60, in dump
ForkingPickler(file, protocol).dump(obj)
AttributeError: Can't pickle local object 'request_response.<locals>.app'
Will look into this first thing tomorrow.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Cannot checkout session because a spawning error occurred
Found the problem. I'm not using RVM /home/deploy/.rvm/wrappers/ruby-2.1.2/ruby: In my /etc/nginx/nginx.conf I had
Read more >Spawning error on Docker Desktop Edge · Issue #393 - GitHub
Bug description When testing dockerspawner 0.11.1 with JupyterHub (on Docker Desktop for Mac Edge 2.3.7.0, spawning failed with some errors.
Read more >Cannot checkout session because a spawning error occurred.
When I examine my Apache error log, I see the following: ... Could not spawn process for application /var/canvas: An error occurred while...
Read more >Rails Nginx Passenger Cannot checkout session because a ...
I can deploy the app without a problem, but it won't spawn passenger and start up the app. Here's one of the errors...
Read more >Spawn actor error - Blueprint - Unreal Engine Forums
I'm getting an access violation reading location error when I try to spawn an actor. In my weapon class, I want to spawn...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Okay. That’s a total PITA - works great in the test cases. And will work in some examples, but not others. Reason is that it turns out the way Python’s multiprocessing calls work is by serializing/deserializing the arguments to the call using pickle. Eveidently in some cases there’ll end up being something somewhere referenced by the application that’s not picklable.
You won’t see these errors running from the command line, because the application instance isn’t passed into the call - instead an import string is passed. eg
example:app
.Resolved in 0.5.1