|
发表于 2021-2-9 15:56:11
|
显示全部楼层
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "E:\Anaconda\lib\multiprocessing\pool.py", line 121, in worker
result = (True, func(*args, **kwds))
File "E:\Anaconda\lib\multiprocessing\pool.py", line 44, in mapstar
return list(map(*args))
File "E:\Python\wenxin\meizi.py", line 50, in down
img_data = requests.get(url=src, headers=headers).content
File "E:\Anaconda\lib\site-packages\requests\api.py", line 72, in get
return request('get', url, params=params, **kwargs)
File "E:\Anaconda\lib\site-packages\requests\api.py", line 58, in request
return session.request(method=method, url=url, **kwargs)
File "E:\Anaconda\lib\site-packages\requests\sessions.py", line 512, in request
resp = self.send(prep, **send_kwargs)
File "E:\Anaconda\lib\site-packages\requests\sessions.py", line 644, in send
history = [resp for resp in gen] if allow_redirects else []
File "E:\Anaconda\lib\site-packages\requests\sessions.py", line 644, in <listcomp>
history = [resp for resp in gen] if allow_redirects else []
File "E:\Anaconda\lib\site-packages\requests\sessions.py", line 140, in resolve_redirects
raise TooManyRedirects('Exceeded %s redirects.' % self.max_redirects, response=resp)
requests.exceptions.TooManyRedirects: Exceeded 30 redirects.
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "E:/Python/wenxin/meizi.py", line 95, in <module>
downmulticore(img_addrs) # 多进程下载所有图片
File "E:/Python/wenxin/meizi.py", line 63, in downmulticore
pool.map(down, (img_addrs,))
File "E:\Anaconda\lib\multiprocessing\pool.py", line 268, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "E:\Anaconda\lib\multiprocessing\pool.py", line 657, in get
raise self._value
requests.exceptions.TooManyRedirects: Exceeded 30 redirects.
|
|