Error: Traceback (most recent call last) SystemExit: 65

 

编码问题,我的原因是Resources文件夹中添加了一张以中文命名的PNG。重命名后就好了!

Rename your file or image!!

转载于:https://www.cnblogs.com/maxfong/archive/2012/02/16/2354286.html

报错了:运行错误:网页请求失败: 404 Client Error: Not Found for url: https://vr.justeasy.cn/view/12345-0.html --------------------------------------------------------------------------- HTTPError Traceback (most recent call last) Cell In[8], line 56, in download_vr_images(target_url, save_dir, max_retry, timeout, concurrency) 55 response = requests.get(target_url, headers=headers, timeout=timeout) ---> 56 response.raise_for_status() 57 except requests.exceptions.RequestException as e: File /opt/anaconda3/lib/python3.11/site-packages/requests/models.py:1021, in Response.raise_for_status(self) 1020 if http_error_msg: -> 1021 raise HTTPError(http_error_msg, response=self) HTTPError: 404 Client Error: Not Found for url: https://vr.justeasy.cn/view/12345-0.html During handling of the above exception, another exception occurred: ConnectionError Traceback (most recent call last) Cell In[8], line 112 111 try: --> 112 download_vr_images( 113 target_url="http://vr.justeasy.cn/view/12345.html", 114 save_dir="/Users/sunhui/Downloads/tu" 115 ) 116 except Exception as e: Cell In[8], line 58, in download_vr_images(target_url, save_dir, max_retry, timeout, concurrency) 57 except requests.exceptions.RequestException as e: ---> 58 raise ConnectionError(f"网页请求失败: {str(e)}") 60 # ==================== 内容解析 ==================== ConnectionError: 网页请求失败: 404 Client Error: Not Found for url: https://vr.justeasy.cn/view/12345-0.html During handling of the above exception, another exception occurred: SystemExit Traceback (most recent call last) [... skipping hidden 1 frame] Cell In[8], line 118 117 print(f"❌ 运行错误:{str(e)}") --> 118 sys.exit(1) SystemExit: 1 During handling of the above exception, another exception occurred: AttributeError Traceback (most recent call last) [... skipping hidden 1 frame] File /opt/anaconda3/lib/python3.11/site-packages/IPython/core/interactiveshell.py:2121, in InteractiveShell.showtraceback(self, exc_tuple, filename, tb_offset, exception_only, running_compiled_code) 2118 if exception_only: 2119 stb = ['An exception has occurred, use %tb to see '
03-14
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值