Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnboundLocalError: local variable 'image_url' referenced before assignment #1

Open
1581088791lym opened this issue Jan 22, 2024 · 1 comment

Comments

@1581088791lym
Copy link

使用插件的时候遇到这样的报错

got prompt
==========错误 start===========
HTTPSConnectionPool(host='openplatform.aliyuncs.com', port=443): Max retries exceeded with url: /?Product=imageseg (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)')))
==========错误 end===========
ERROR:root:!!! Exception during processing !!!
ERROR:root:Traceback (most recent call last):
File "/root/ComfyUI/execution.py", line 153, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "/root/ComfyUI/execution.py", line 83, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "/root/ComfyUI/execution.py", line 76, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "/root/ComfyUI/custom_nodes/Comfyui_ALY/ALY_Seg_Cloth.py", line 90, in sample
source_img = img_from_url(image_url)
UnboundLocalError: local variable 'image_url' referenced before assignment

看了阿里云后台,没有产生扣费,应该是调用失败的
微信截图_20240122204137
尝试添加了这串代码,禁用ssh,然后还是出现相同的报错额( ̄_, ̄ )

@jinnaluo0
Copy link

卸载掉python中所有的模块alibabacloud
重新执行这两个命令:
pip install alibabacloud_imageseg20191230
pip install alibabacloud_tea_console
试下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants