Error (continued .....)

 

MonkeyPatchWarning: Monkey-patching ssl after ssl has already been imported may lead to errors

Adjust the import order

import peddled

 from gevent import monkey 

monkey.patch_all()

 import requests

 

 

 

 

 

TypeError: '_SessionRequestContextManager' object is not iterable

Task exception was never retrieved

future: <Task finished coro=<download_one() done, defined at /home/zhf/py_prj/function_test/asy_try.py:51> exception=TypeError("'_SessionRequestContextManager' object is not iterable",)>

Recommended aiohttp.ClientSession (). Get to download. This function can guarantee related to TCP resources can be released

 

 

 

 

concurrent.futures.process.BrokenProcessPool: A process in the process pool.......

 

Adding main function

if __name__ == '__main__':

main()

Guess you like

Origin www.cnblogs.com/JcrLive/p/12459981.html