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

插件导入失败,缺失uploadImage.js要怎么处理? #21

Open
loganji opened this issue Dec 6, 2024 · 5 comments
Open

插件导入失败,缺失uploadImage.js要怎么处理? #21

loganji opened this issue Dec 6, 2024 · 5 comments

Comments

@loganji
Copy link

loganji commented Dec 6, 2024

E:\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-ArtGallery../../web/extensions/core/uploadImage.js
Traceback (most recent call last):
File "E:\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\nodes.py", line 2037, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 940, in exec_module
File "", line 241, in call_with_frames_removed
File "E:\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-ArtGallery_init
.py", line 56, in
modify_js_file(uploadimg_js_file_path, new_js_content)
File "E:\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-ArtGallery_init_.py", line 5, in modify_js_file
with open(file_path, 'r') as file:
^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'E:\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-ArtGallery\../../web/extensions/core/uploadImage.js'

Cannot import E:\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-ArtGallery module for custom nodes: [Errno 2] No such file or directory: 'E:\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-ArtGallery\../../web/extensions/core/uploadImage.js'

@iamicebomb
Copy link

need modi init.py

  1. uploadimg_js_file_path = os.path.join(current_dir, '../../web/assets/xxx.js') to
    uploadimg_js_file_path = os.path.join(current_dir, '../../web/assets/index-p6KSJ2Zq.js')

2.wedgets_js_file_path = os.path.join(current_dir, '../../web/extensions/core/uploadImage.js'')
wedgets_js_file_path = os.path.join(current_dir, '../../web/assets/index-DIU5yZe9.js')
should work。

@iamicebomb
Copy link

@jackyzhangjun
Copy link

仍然显示红色报错

@iamicebomb
Copy link

必须升级comfyui至当前版本,
修改一下_init.py_文件,uploadimg_js_file_path = xxx 文件路径 改成os.path.join(current_dir, '../../web/assets/index-p6KSJ2Zq.js')
wedgets_js_file_path = os.path.join(current_dir, '../../web/extensions/core/uploadImage.js'') 这句 wedgets_js_file_path = os.path.join(current_dir, '../../web/assets/index-DIU5yZe9.js')
在当前的0.30.10版本下可用,修改的文件内容是针对不同版本的comfyui的。

@iravka
Copy link

iravka commented Jan 6, 2025

FOR ComfyUI v0.3.10

paste this code instead of init.py
init.py.txt

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

4 participants