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

Photoshop Error. Code: -1 #90

Open
HGengwen opened this issue Jan 18, 2025 · 15 comments
Open

Photoshop Error. Code: -1 #90

HGengwen opened this issue Jan 18, 2025 · 15 comments

Comments

@HGengwen
Copy link

我的PS版本是最新版的V26.2.0,ComfyUI的版本是新版的v0.3.12,可以发送ComfyUI生成的图像到PS,但无法从PS获得图层的图像。测试时只用了两个节点“SDPPP从PS获取图像(GetImageFromPhotoshop)”和“Preview Image”。执行时报错信息如下。

2025-01-18T16:24:49.735662 - got prompt
2025-01-18T16:24:50.032664 - !!! Exception during processing !!! sdppp PS side error:Error: Photoshop Error. Code: -1
2025-01-18T16:24:50.032664 - Traceback (most recent call last):
File "E:\ComfyUI_windows\ComfyUI\execution.py", line 327, in execute
output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
File "E:\ComfyUI_windows\ComfyUI\execution.py", line 202, in get_output_data
return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
File "E:\ComfyUI_windows\ComfyUI\execution.py", line 168, in _map_node_over_list
process_inputs(input_data_all, 0, input_is_list=input_is_list)
File "E:\ComfyUI_windows\ComfyUI\execution.py", line 163, in process_inputs
results.append(getattr(obj, func)(**inputs))
File "E:\ComfyUI_windows\ComfyUI\custom_nodes\sd-ppp\sdppp_python\comfy\nodes_legacy.py", line 97, in get_image
result = call_async_func_in_server_thread(
File "E:\ComfyUI_windows\ComfyUI\custom_nodes\sd-ppp\sdppp_python\comfy\nodes_legacy.py", line 34, in call_async_func_in_server_thread
raise handle['error']
File "E:\ComfyUI_windows\ComfyUI\custom_nodes\sd-ppp\sdppp_python\comfy\nodes_legacy.py", line 23, in do_call
handle['result'] = await coro
File "E:\ComfyUI_windows\ComfyUI\custom_nodes\sd-ppp\sdppp_python\protocols\photoshop.py", line 22, in get_image
result = await protocol_call(backend_instance, 's_get_image', data={
File "E:\ComfyUI_windows\ComfyUI\custom_nodes\sd-ppp\sdppp_python\protocols\photoshop.py", line 8, in protocol_call
raise Exception('sdppp PS side error:' + result['error'])
Exception: sdppp PS side error:Error: Photoshop Error. Code: -1

2025-01-18T16:24:50.033664 - Prompt executed in 0.30 seconds

## Attached Workflow
Please make sure that workflow does not contain any sensitive information such as API keys or passwords.

{"last_node_id":7,"last_link_id":2,"nodes":[{"id":6,"type":"Get Image From Photoshop Layer","pos":[-660,1240],"size":[441,126],"flags":{},"order":0,"mode":0,"inputs":[{"name":"layer_or_group","type":"LAYER","link":null,"label":"图层(或组)"},{"name":"bound","type":"MASK","link":null,"shape":7,"label":"边界"}],"outputs":[{"name":"rgb_out","type":"IMAGE","links":[2],"shape":6,"label":"RGB输出","slot_index":0},{"name":"alpha_out","type":"MASK","links":null,"shape":6,"label":"Alpha输出"}],"properties":{"Node name for S&R":"Get Image From Photoshop Layer","sdppp-version":"412"},"widgets_values":["PSeb9_226/### 当前文档 ###","### 整个画布 ###",""]},{"id":7,"type":"PreviewImage","pos":[-90,1240],"size":[210,26],"flags":{},"order":1,"mode":0,"inputs":[{"name":"images","type":"IMAGE","link":2}],"outputs":[],"properties":{"Node name for S&R":"PreviewImage"}}],"links":[[2,6,0,7,0,"IMAGE"]],"groups":[],"config":{},"extra":{"ds":{"scale":1.4122927695244514,"offset":[1081.8532358104533,-1011.2635092975789]},"node_versions":{"sd-ppp":"bd6add3d774e1e48a20fd536e721ce67fee69ab9","comfy-core":"0.3.12"}},"version":0.4}

@HGengwen
Copy link
Author

刚又测试了下,就“SDPPP从PS获取图像(GetImageFromPhotoshop)”节点运行出错。运行其它节点未发现出错,正常。

@HGengwen
Copy link
Author

SD-PPP的版本是1.6.2

@zombieyang
Copy link
Owner

所有psd都这样吗?套索例子的那个psd会么

@HGengwen
Copy link
Author

HGengwen commented Jan 18, 2025 via email

@HGengwen
Copy link
Author

HGengwen commented Jan 18, 2025 via email

@zombieyang
Copy link
Owner

你加下我qq,我得发个测试版给你试试

@HGengwen
Copy link
Author

你的QQ号?

@zombieyang
Copy link
Owner

348063288 或者从qq频道里加

@HGengwen
Copy link
Author

发了请求,你确认下。

@434713950
Copy link

Image

Image

目前来看应该是可能是PS2025版本API接口改变了,我这缺少环境和ps的API文档,无法具体排查出问题

@HGengwen
Copy link
Author

但为啥获得选区和其他的几个节点能够正常工作呢?这几天事多,等过几天我再安装个PS2024试下。

@CoraAI
Copy link

CoraAI commented Feb 5, 2025

我也无法从PS获取到图象,
安装和通信似乎都正常, 终端也没有什么报错, 节点也能获取到PS里已经打开的文件和图层信息, 就是sd-ppp的从ps获取图像节点抓不到PS的图象.
(打开comfy自带的load image节点里的图象ps倒是能抓到).
唯一和教程不太一样的是我有装creative cloud, 但下载下来的 .ccx文件直接双击安装失败(只闪了一下后端窗口, 打开ps以后增效工具列表里没有sd-ppp的选项), 之后还是改成zip解压到ps的插件目录里的.

系统win11, PS版本25.5.0 20240214.r.375 c4f33ec x64
comfyui是更新到了最新版本

@zombieyang
Copy link
Owner

我也无法从PS获取到图象, 安装和通信似乎都正常, 终端也没有什么报错, 节点也能获取到PS里已经打开的文件和图层信息, 就是sd-ppp的从ps获取图像节点抓不到PS的图象. (打开comfy自带的load image节点里的图象ps倒是能抓到). 唯一和教程不太一样的是我有装creative cloud, 但下载下来的 .ccx文件直接双击安装失败(只闪了一下后端窗口, 打开ps以后增效工具列表里没有sd-ppp的选项), 之后还是改成zip解压到ps的插件目录里的.

系统win11, PS版本25.5.0 20240214.r.375 c4f33ec x64 comfyui是更新到了最新版本

我再下个版本加个抓取日志的功能看看

@flyjoy
Copy link

flyjoy commented Feb 11, 2025

我这个是为什么···不能获取图层?

ComfyUI Error Report

Error Details

  • Node ID: 1
  • Node Type: Get Image From Photoshop Layer
  • Exception Type: ValueError
  • Exception Message: Photoshop instance wV7e-A7O4eAkOVY9AAAD not found

Stack Trace

  File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/execution.py", line 327, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/execution.py", line 202, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/execution.py", line 168, in _map_node_over_list
    process_inputs(input_data_all, 0, input_is_list=input_is_list)

  File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/execution.py", line 163, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/Users/zhuchengbo/Documents/ComfyUI/custom_nodes/sd-ppp/sdppp_python/comfy/nodes_legacy.py", line 88, in get_image
    raise ValueError(f'Photoshop instance {document["instance_id"]} not found')

System Information

  • ComfyUI Version: 0.3.14
  • Arguments: /Applications/ComfyUI.app/Contents/Resources/ComfyUI/main.py --user-directory /Users/zhuchengbo/Documents/ComfyUI/user --input-directory /Users/zhuchengbo/Documents/ComfyUI/input --output-directory /Users/zhuchengbo/Documents/ComfyUI/output --front-end-root /Applications/ComfyUI.app/Contents/Resources/ComfyUI/web_custom_versions/desktop_app --base-directory /Users/zhuchengbo/Documents/ComfyUI --extra-model-paths-config /Users/zhuchengbo/Library/Application Support/ComfyUI/extra_models_config.yaml --listen 127.0.0.1 --port 8000
  • OS: posix
  • Python Version: 3.12.8 (main, Jan 14 2025, 23:36:58) [Clang 19.1.6 ]
  • Embedded Python: false
  • PyTorch Version: 2.7.0.dev20250209

Devices

  • Name: mps
    • Type: mps
    • VRAM Total: 137438953472
    • VRAM Free: 95309332480
    • Torch VRAM Total: 137438953472
    • Torch VRAM Free: 95309332480

Logs

2025-02-11T20:36:43.543905 - Adding extra search path custom_nodes /Users/zhuchengbo/Documents/ComfyUI/custom_nodes/
2025-02-11T20:36:43.543946 - Adding extra search path download_model_base /Users/zhuchengbo/Documents/ComfyUI/models
2025-02-11T20:36:43.543965 - Adding extra search path custom_nodes /Applications/ComfyUI.app/Contents/Resources/ComfyUI/custom_nodes
2025-02-11T20:36:43.543979 - Setting output directory to: /Users/zhuchengbo/Documents/ComfyUI/output
2025-02-11T20:36:43.543997 - Setting input directory to: /Users/zhuchengbo/Documents/ComfyUI/input
2025-02-11T20:36:43.544006 - Setting user directory to: /Users/zhuchengbo/Documents/ComfyUI/user
2025-02-11T20:36:43.639310 - [START] Security scan2025-02-11T20:36:43.639317 - 
2025-02-11T20:36:43.907801 - [DONE] Security scan2025-02-11T20:36:43.907838 - 
2025-02-11T20:36:43.948878 - ## ComfyUI-Manager: installing dependencies done.2025-02-11T20:36:43.948933 - 
2025-02-11T20:36:43.948953 - ** ComfyUI startup time:2025-02-11T20:36:43.948964 -  2025-02-11T20:36:43.948976 - 2025-02-11 20:36:43.9482025-02-11T20:36:43.948985 - 
2025-02-11T20:36:43.949002 - ** Platform:2025-02-11T20:36:43.949011 -  2025-02-11T20:36:43.949019 - Darwin2025-02-11T20:36:43.949027 - 
2025-02-11T20:36:43.949035 - ** Python version:2025-02-11T20:36:43.949043 -  2025-02-11T20:36:43.949051 - 3.12.8 (main, Jan 14 2025, 23:36:58) [Clang 19.1.6 ]2025-02-11T20:36:43.949058 - 
2025-02-11T20:36:43.949066 - ** Python executable:2025-02-11T20:36:43.949074 -  2025-02-11T20:36:43.949082 - /Users/zhuchengbo/Documents/ComfyUI/.venv/bin/python2025-02-11T20:36:43.949090 - 
2025-02-11T20:36:43.949098 - ** ComfyUI Path:2025-02-11T20:36:43.949106 -  2025-02-11T20:36:43.949115 - /Applications/ComfyUI.app/Contents/Resources/ComfyUI2025-02-11T20:36:43.949122 - 
2025-02-11T20:36:43.949130 - ** ComfyUI Base Folder Path:2025-02-11T20:36:43.949138 -  2025-02-11T20:36:43.949146 - /Applications/ComfyUI.app/Contents/Resources/ComfyUI2025-02-11T20:36:43.949153 - 
2025-02-11T20:36:43.949163 - ** User directory:2025-02-11T20:36:43.949170 -  2025-02-11T20:36:43.949177 - /Users/zhuchengbo/Documents/ComfyUI/user2025-02-11T20:36:43.949184 - 
2025-02-11T20:36:43.949192 - ** ComfyUI-Manager config path:2025-02-11T20:36:43.949199 -  2025-02-11T20:36:43.949207 - /Users/zhuchengbo/Documents/ComfyUI/user/default/ComfyUI-Manager/config.ini2025-02-11T20:36:43.949214 - 
2025-02-11T20:36:43.949223 - ** Log path:2025-02-11T20:36:43.949230 -  2025-02-11T20:36:43.949238 - /Users/zhuchengbo/Documents/ComfyUI/user/comfyui.log2025-02-11T20:36:43.949245 - 
2025-02-11T20:36:44.240994 - 
Prestartup times for custom nodes:
2025-02-11T20:36:44.241120 -    0.7 seconds: /Applications/ComfyUI.app/Contents/Resources/ComfyUI/custom_nodes/ComfyUI-Manager
2025-02-11T20:36:44.241149 - 
2025-02-11T20:36:44.883376 - Checkpoint files will always be loaded safely.
2025-02-11T20:36:44.899381 - Total VRAM 131072 MB, total RAM 131072 MB
2025-02-11T20:36:44.899445 - pytorch version: 2.7.0.dev20250209
2025-02-11T20:36:44.899523 - Set vram state to: SHARED
2025-02-11T20:36:44.899549 - Device: mps
2025-02-11T20:36:45.518044 - Using sub quadratic optimization for attention, if you have memory or speed issues try using: --use-split-cross-attention
2025-02-11T20:36:46.453899 - ComfyUI version: 0.3.14
2025-02-11T20:36:46.456480 - [Prompt Server] web root: /Applications/ComfyUI.app/Contents/Resources/ComfyUI/web_custom_versions/desktop_app
2025-02-11T20:36:46.746308 - Traceback (most recent call last):
  File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/nodes.py", line 2112, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/Users/zhuchengbo/Documents/ComfyUI/custom_nodes/comfyui_faceanalysis/__init__.py", line 1, in <module>
    from .faceanalysis import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
  File "/Users/zhuchengbo/Documents/ComfyUI/custom_nodes/comfyui_faceanalysis/faceanalysis.py", line 16, in <module>
    raise Exception("Please install either dlib or insightface to use this node.")
Exception: Please install either dlib or insightface to use this node.

2025-02-11T20:36:46.746461 - Cannot import /Users/zhuchengbo/Documents/ComfyUI/custom_nodes/comfyui_faceanalysis module for custom nodes: Please install either dlib or insightface to use this node.
2025-02-11T20:36:46.759594 - Traceback (most recent call last):
  File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/nodes.py", line 2112, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap_external>", line 1132, in get_code
  File "<frozen importlib._bootstrap_external>", line 1190, in get_data
FileNotFoundError: [Errno 2] No such file or directory: '/Users/zhuchengbo/Documents/ComfyUI/custom_nodes/grounding-dino/__init__.py'

2025-02-11T20:36:46.759655 - Cannot import /Users/zhuchengbo/Documents/ComfyUI/custom_nodes/grounding-dino module for custom nodes: [Errno 2] No such file or directory: '/Users/zhuchengbo/Documents/ComfyUI/custom_nodes/grounding-dino/__init__.py'
2025-02-11T20:36:46.805860 - 
2025-02-11T20:36:46.805897 - �[92m[rgthree-comfy] Loaded 42 exciting nodes. 🎉�[00m2025-02-11T20:36:46.805910 - 
2025-02-11T20:36:46.805921 - 
2025-02-11T20:36:46.807314 - ### Loading: ComfyUI-Impact-Pack (V8.8.1)2025-02-11T20:36:46.807335 - 
2025-02-11T20:36:46.838469 - [Impact Pack] Wildcards loading done.2025-02-11T20:36:46.838500 - 
2025-02-11T20:36:46.839647 - Traceback (most recent call last):
  File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/nodes.py", line 2112, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap_external>", line 1132, in get_code
  File "<frozen importlib._bootstrap_external>", line 1190, in get_data
FileNotFoundError: [Errno 2] No such file or directory: '/Users/zhuchengbo/Documents/ComfyUI/custom_nodes/sams/__init__.py'

2025-02-11T20:36:46.839739 - Cannot import /Users/zhuchengbo/Documents/ComfyUI/custom_nodes/sams module for custom nodes: [Errno 2] No such file or directory: '/Users/zhuchengbo/Documents/ComfyUI/custom_nodes/sams/__init__.py'
2025-02-11T20:36:46.905414 - ComfyUI found: /Users/zhuchengbo/Documents/ComfyUI2025-02-11T20:36:46.905443 - 
2025-02-11T20:36:46.905459 - '/Users/zhuchengbo/Documents/ComfyUI' added to sys.path2025-02-11T20:36:46.905468 - 
2025-02-11T20:36:46.923613 - SD-PPP: fastapi not found2025-02-11T20:36:46.923638 - 
2025-02-11T20:36:46.926150 - Traceback (most recent call last):
  File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/nodes.py", line 2112, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/Users/zhuchengbo/Documents/ComfyUI/custom_nodes/comfyui_bnb_nf4_loaders/__init__.py", line 6, in <module>
    import bitsandbytes
ModuleNotFoundError: No module named 'bitsandbytes'

2025-02-11T20:36:46.926212 - Cannot import /Users/zhuchengbo/Documents/ComfyUI/custom_nodes/comfyui_bnb_nf4_loaders module for custom nodes: No module named 'bitsandbytes'
2025-02-11T20:36:46.927530 - Traceback (most recent call last):
  File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/nodes.py", line 2112, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/Users/zhuchengbo/Documents/ComfyUI/custom_nodes/comfyui_faceanalysis/__init__.py", line 1, in <module>
    from .faceanalysis import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
  File "/Users/zhuchengbo/Documents/ComfyUI/custom_nodes/comfyui_faceanalysis/faceanalysis.py", line 16, in <module>
    raise Exception("Please install either dlib or insightface to use this node.")
Exception: Please install either dlib or insightface to use this node.

2025-02-11T20:36:46.927599 - Cannot import /Users/zhuchengbo/Documents/ComfyUI/custom_nodes/comfyui_faceanalysis module for custom nodes: Please install either dlib or insightface to use this node.
2025-02-11T20:36:46.929002 - Traceback (most recent call last):
  File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/nodes.py", line 2112, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap_external>", line 1132, in get_code
  File "<frozen importlib._bootstrap_external>", line 1190, in get_data
FileNotFoundError: [Errno 2] No such file or directory: '/Users/zhuchengbo/Documents/ComfyUI/custom_nodes/grounding-dino/__init__.py'

2025-02-11T20:36:46.929060 - Cannot import /Users/zhuchengbo/Documents/ComfyUI/custom_nodes/grounding-dino module for custom nodes: [Errno 2] No such file or directory: '/Users/zhuchengbo/Documents/ComfyUI/custom_nodes/grounding-dino/__init__.py'
2025-02-11T20:36:46.929438 - 
2025-02-11T20:36:46.929457 - �[92m[rgthree-comfy] Loaded 42 extraordinary nodes. 🎉�[00m2025-02-11T20:36:46.929467 - 
2025-02-11T20:36:46.929477 - 
2025-02-11T20:36:46.929703 - ### Loading: ComfyUI-Impact-Pack (V8.8.1)2025-02-11T20:36:46.929712 - 
2025-02-11T20:36:46.930768 - [Impact Pack] Wildcards loading done.2025-02-11T20:36:46.930981 - 
2025-02-11T20:36:46.931441 - Traceback (most recent call last):
  File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/nodes.py", line 2112, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap_external>", line 1132, in get_code
  File "<frozen importlib._bootstrap_external>", line 1190, in get_data
FileNotFoundError: [Errno 2] No such file or directory: '/Users/zhuchengbo/Documents/ComfyUI/custom_nodes/sams/__init__.py'

2025-02-11T20:36:46.931499 - Cannot import /Users/zhuchengbo/Documents/ComfyUI/custom_nodes/sams module for custom nodes: [Errno 2] No such file or directory: '/Users/zhuchengbo/Documents/ComfyUI/custom_nodes/sams/__init__.py'
2025-02-11T20:36:46.932417 - Traceback (most recent call last):
  File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/nodes.py", line 2112, in load_custom_node
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 999, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/Users/zhuchengbo/Documents/ComfyUI/custom_nodes/comfyui_bnb_nf4_loaders/__init__.py", line 6, in <module>
    import bitsandbytes
ModuleNotFoundError: No module named 'bitsandbytes'

2025-02-11T20:36:46.932474 - Cannot import /Users/zhuchengbo/Documents/ComfyUI/custom_nodes/comfyui_bnb_nf4_loaders module for custom nodes: No module named 'bitsandbytes'
2025-02-11T20:36:46.936148 - ### Loading: ComfyUI-Manager (V3.17.7)
2025-02-11T20:36:46.947629 - ### ComfyUI Revision: UNKNOWN (The currently installed ComfyUI is not a Git repository)
2025-02-11T20:36:46.954932 - 
Import times for custom nodes:
2025-02-11T20:36:46.955006 -    0.0 seconds: /Users/zhuchengbo/Documents/ComfyUI/custom_nodes/ComfyUI_AdvancedRefluxControl-main
2025-02-11T20:36:46.955035 -    0.0 seconds: /Users/zhuchengbo/Documents/ComfyUI/custom_nodes/comfyui-sd3.5-latent-size-picker
2025-02-11T20:36:46.955240 -    0.0 seconds: /Users/zhuchengbo/Documents/ComfyUI/custom_nodes/comfyui-ic-light-native
2025-02-11T20:36:46.955513 -    0.0 seconds: /Users/zhuchengbo/Documents/ComfyUI/custom_nodes/Comfyui_TTP_Toolset
2025-02-11T20:36:46.955574 -    0.0 seconds: /Users/zhuchengbo/Documents/ComfyUI/custom_nodes/ComfyUI-GGUF
2025-02-11T20:36:46.955592 -    0.0 seconds: /Users/zhuchengbo/Documents/ComfyUI/custom_nodes/comfyui-to-python-extension
2025-02-11T20:36:46.955606 -    0.0 seconds: /Users/zhuchengbo/Documents/ComfyUI/custom_nodes/ComfyUI-FluxExt-MZ
2025-02-11T20:36:46.956625 -    0.0 seconds (IMPORT FAILED): /Users/zhuchengbo/Documents/ComfyUI/custom_nodes/grounding-dino
2025-02-11T20:36:46.956687 -    0.0 seconds (IMPORT FAILED): /Users/zhuchengbo/Documents/ComfyUI/custom_nodes/grounding-dino
2025-02-11T20:36:46.956712 -    0.0 seconds (IMPORT FAILED): /Users/zhuchengbo/Documents/ComfyUI/custom_nodes/sams
2025-02-11T20:36:46.956731 -    0.0 seconds (IMPORT FAILED): /Users/zhuchengbo/Documents/ComfyUI/custom_nodes/sams
2025-02-11T20:36:46.956786 -    0.0 seconds (IMPORT FAILED): /Users/zhuchengbo/Documents/ComfyUI/custom_nodes/comfyui_bnb_nf4_loaders
2025-02-11T20:36:46.956810 -    0.0 seconds: /Users/zhuchengbo/Documents/ComfyUI/custom_nodes/rgthree-comfy
2025-02-11T20:36:46.956826 -    0.0 seconds: /Users/zhuchengbo/Documents/ComfyUI/custom_nodes/sd-ppp
2025-02-11T20:36:46.956874 -    0.0 seconds: /Users/zhuchengbo/Documents/ComfyUI/custom_nodes/comfyui-photoshop
2025-02-11T20:36:46.956970 -    0.0 seconds (IMPORT FAILED): /Users/zhuchengbo/Documents/ComfyUI/custom_nodes/comfyui_faceanalysis
2025-02-11T20:36:46.957002 -    0.0 seconds: /Users/zhuchengbo/Documents/ComfyUI/custom_nodes/comfyui-sd3.5-latent-size-picker
2025-02-11T20:36:46.957016 -    0.0 seconds: /Users/zhuchengbo/Documents/ComfyUI/custom_nodes/comfyui-ic-light-native
2025-02-11T20:36:46.957032 -    0.0 seconds: /Applications/ComfyUI.app/Contents/Resources/ComfyUI/custom_nodes/websocket_image_save.py
2025-02-11T20:36:46.957121 -    0.0 seconds: /Users/zhuchengbo/Documents/ComfyUI/custom_nodes/ComfyUI_AdvancedRefluxControl-main
2025-02-11T20:36:46.957135 -    0.0 seconds (IMPORT FAILED): /Users/zhuchengbo/Documents/ComfyUI/custom_nodes/comfyui_bnb_nf4_loaders
2025-02-11T20:36:46.957151 -    0.0 seconds: /Users/zhuchengbo/Documents/ComfyUI/custom_nodes/comfyui-impact-pack
2025-02-11T20:36:46.957189 -    0.0 seconds: /Users/zhuchengbo/Documents/ComfyUI/custom_nodes/comfyui-custom-scripts
2025-02-11T20:36:46.957204 -    0.0 seconds: /Users/zhuchengbo/Documents/ComfyUI/custom_nodes/comfyui-photoshop
2025-02-11T20:36:46.957217 -    0.0 seconds (IMPORT FAILED): /Users/zhuchengbo/Documents/ComfyUI/custom_nodes/comfyui_faceanalysis
2025-02-11T20:36:46.957231 -    0.0 seconds: /Users/zhuchengbo/Documents/ComfyUI/custom_nodes/ComfyUI-FluxExt-MZ
2025-02-11T20:36:46.957284 -    0.0 seconds: /Users/zhuchengbo/Documents/ComfyUI/custom_nodes/rgthree-comfy
2025-02-11T20:36:46.957384 -    0.0 seconds: /Users/zhuchengbo/Documents/ComfyUI/custom_nodes/ComfyUI-GGUF
2025-02-11T20:36:46.957411 -    0.0 seconds: /Users/zhuchengbo/Documents/ComfyUI/custom_nodes/comfyui-custom-scripts
2025-02-11T20:36:46.957427 -    0.0 seconds: /Users/zhuchengbo/Documents/ComfyUI/custom_nodes/sd-ppp
2025-02-11T20:36:46.957516 -    0.0 seconds: /Applications/ComfyUI.app/Contents/Resources/ComfyUI/custom_nodes/ComfyUI-Manager
2025-02-11T20:36:46.957534 -    0.0 seconds: /Users/zhuchengbo/Documents/ComfyUI/custom_nodes/comfyui-impact-pack
2025-02-11T20:36:46.957548 -    0.0 seconds: /Users/zhuchengbo/Documents/ComfyUI/custom_nodes/Comfyui_TTP_Toolset
2025-02-11T20:36:46.957583 -    0.1 seconds: /Users/zhuchengbo/Documents/ComfyUI/custom_nodes/comfyui-to-python-extension
2025-02-11T20:36:46.957598 - 
2025-02-11T20:36:46.964323 - Starting server

2025-02-11T20:36:46.964560 - To see the GUI go to: http://127.0.0.1:8000
2025-02-11T20:36:47.183568 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json
2025-02-11T20:36:47.190572 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/github-stats.json
2025-02-11T20:36:47.210160 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json
2025-02-11T20:36:47.238570 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json
2025-02-11T20:36:47.256793 - [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json
2025-02-11T20:36:48.083764 - FETCH DATA from: /Applications/ComfyUI.app/Contents/Resources/ComfyUI/custom_nodes/ComfyUI-Manager/extension-node-map.json2025-02-11T20:36:48.083786 - 2025-02-11T20:36:48.087141 -  [DONE]2025-02-11T20:36:48.087165 - 
2025-02-11T20:36:51.161328 - FETCH DATA from: /Applications/ComfyUI.app/Contents/Resources/ComfyUI/custom_nodes/ComfyUI-Manager/extension-node-map.json2025-02-11T20:36:51.161367 - 2025-02-11T20:36:51.163520 -  [DONE]2025-02-11T20:36:51.163537 - 
2025-02-11T20:36:52.391232 - FETCH ComfyRegistry Data: 5/332025-02-11T20:36:52.391276 - 
2025-02-11T20:36:57.301939 - FETCH ComfyRegistry Data: 10/332025-02-11T20:36:57.301990 - 
2025-02-11T20:37:02.529582 - FETCH ComfyRegistry Data: 15/332025-02-11T20:37:02.529635 - 
2025-02-11T20:37:08.254729 - FETCH ComfyRegistry Data: 20/332025-02-11T20:37:08.254755 - 
2025-02-11T20:37:13.132584 - FETCH ComfyRegistry Data: 25/332025-02-11T20:37:13.132666 - 
2025-02-11T20:37:18.195813 - FETCH ComfyRegistry Data: 30/332025-02-11T20:37:18.195917 - 
2025-02-11T20:37:21.685596 - FETCH ComfyRegistry Data [DONE]2025-02-11T20:37:21.685750 - 
2025-02-11T20:37:21.712370 - [ComfyUI-Manager] default cache updated: https://api.comfy.org/nodes
2025-02-11T20:37:21.741365 - nightly_channel: 
https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/remote
2025-02-11T20:37:21.741414 - FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json2025-02-11T20:37:21.741423 - 2025-02-11T20:37:22.259259 -  [DONE]2025-02-11T20:37:22.259361 - 
2025-02-11T20:37:22.272949 - [ComfyUI-Manager] All startup tasks have been completed.
2025-02-11T20:47:25.241144 - got prompt
2025-02-11T20:47:25.242077 - Failed to validate prompt for output 2:
2025-02-11T20:47:25.242156 - * (prompt):
2025-02-11T20:47:25.242195 -   - Required input is missing: images
2025-02-11T20:47:25.242223 - * Send Images To Photoshop 2:
2025-02-11T20:47:25.242248 -   - Required input is missing: images
2025-02-11T20:47:25.242274 - Output will be ignored
2025-02-11T20:47:25.242319 - invalid prompt: {'type': 'prompt_outputs_failed_validation', 'message': 'Prompt outputs failed validation', 'details': 'Required input is missing: images', 'extra_info': {}}
2025-02-11T20:47:50.301748 - got prompt
2025-02-11T20:47:50.302749 - Failed to validate prompt for output 2:
2025-02-11T20:47:50.302860 - * (prompt):
2025-02-11T20:47:50.302910 -   - Required input is missing: images
2025-02-11T20:47:50.302951 - * Send Images To Photoshop 2:
2025-02-11T20:47:50.302984 -   - Required input is missing: images
2025-02-11T20:47:50.303018 - Output will be ignored
2025-02-11T20:47:50.303069 - invalid prompt: {'type': 'prompt_outputs_failed_validation', 'message': 'Prompt outputs failed validation', 'details': 'Required input is missing: images', 'extra_info': {}}
2025-02-11T20:47:55.912413 - got prompt
2025-02-11T20:47:55.912965 - Failed to validate prompt for output 2:
2025-02-11T20:47:55.913036 - * (prompt):
2025-02-11T20:47:55.913079 -   - Required input is missing: images
2025-02-11T20:47:55.913119 - * Send Images To Photoshop 2:
2025-02-11T20:47:55.913153 -   - Required input is missing: images
2025-02-11T20:47:55.913184 - Output will be ignored
2025-02-11T20:47:55.913231 - invalid prompt: {'type': 'prompt_outputs_failed_validation', 'message': 'Prompt outputs failed validation', 'details': 'Required input is missing: images', 'extra_info': {}}
2025-02-11T20:47:57.719987 - got prompt
2025-02-11T20:47:57.720503 - Failed to validate prompt for output 2:
2025-02-11T20:47:57.720586 - * (prompt):
2025-02-11T20:47:57.720632 -   - Required input is missing: images
2025-02-11T20:47:57.720675 - * Send Images To Photoshop 2:
2025-02-11T20:47:57.720711 -   - Required input is missing: images
2025-02-11T20:47:57.720744 - Output will be ignored
2025-02-11T20:47:57.720794 - invalid prompt: {'type': 'prompt_outputs_failed_validation', 'message': 'Prompt outputs failed validation', 'details': 'Required input is missing: images', 'extra_info': {}}
2025-02-11T20:48:01.078710 - got prompt
2025-02-11T20:48:01.080949 - !!! Exception during processing !!! Photoshop instance wV7e-A7O4eAkOVY9AAAD not found
2025-02-11T20:48:01.083813 - Traceback (most recent call last):
  File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/execution.py", line 327, in execute
    output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/execution.py", line 202, in get_output_data
    return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/execution.py", line 168, in _map_node_over_list
    process_inputs(input_data_all, 0, input_is_list=input_is_list)
  File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/execution.py", line 163, in process_inputs
    results.append(getattr(obj, func)(**inputs))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/zhuchengbo/Documents/ComfyUI/custom_nodes/sd-ppp/sdppp_python/comfy/nodes_legacy.py", line 88, in get_image
    raise ValueError(f'Photoshop instance {document["instance_id"]} not found')
ValueError: Photoshop instance wV7e-A7O4eAkOVY9AAAD not found

2025-02-11T20:48:01.084706 - Prompt executed in 0.00 seconds

Attached Workflow

Please make sure that workflow does not contain any sensitive information such as API keys or passwords.

{"last_node_id":2,"last_link_id":3,"nodes":[{"id":2,"type":"Send Images To Photoshop","pos":[176.0240936279297,688.359619140625],"size":[441,146],"flags":{},"order":1,"mode":0,"inputs":[{"name":"images","type":"IMAGE","link":3,"label":"图像"},{"name":"layer_or_group","type":"LAYER","link":null,"label":"图层(或组)"},{"name":"bound","type":"MASK","link":null,"shape":7,"label":"边界"}],"outputs":[],"properties":{"Node name for S&R":"Send Images To Photoshop","sdppp-version":"502"},"widgets_values":["PS_5sr/### 当前文档 ###","### 新图层 ###",""]},{"id":1,"type":"Get Image From Photoshop Layer","pos":[122.48197937011719,462.44140625],"size":[441,126],"flags":{},"order":0,"mode":0,"inputs":[{"name":"layer_or_group","type":"LAYER","link":null,"label":"图层(或组)"},{"name":"bound","type":"MASK","link":null,"shape":7,"label":"边界"}],"outputs":[{"name":"rgb_out","type":"IMAGE","links":[3],"slot_index":0,"shape":6,"label":"RGB输出"},{"name":"alpha_out","type":"MASK","links":[],"slot_index":1,"shape":6,"label":"Alpha输出"}],"properties":{"Node name for S&R":"Get Image From Photoshop Layer","sdppp-version":"502"},"widgets_values":["PS_5sr/### 当前文档 ###","背景 (id:1)",""],"color":"#332922","bgcolor":"#593930"}],"links":[[3,1,0,2,0,"IMAGE"]],"groups":[],"config":{},"extra":{"ds":{"scale":1.4122927695244514,"offset":[276.34312578623934,-275.3757783879903]},"node_versions":{"sd-ppp":"3adc515f49b45519f7560dcfbe3a9eae5c47f2ca"}},"version":0.4}

Additional Context

(Please add any additional context or steps to reproduce the error here)

@xWkin
Copy link

xWkin commented Feb 16, 2025

所有psd都这样吗?套索例子的那个psd会么

raise Exception('sdppp PS side error:' + result['error'])

Exception: sdppp PS side error:Error: 不支持非文本图层: 图层 1 (id:3)
at _0xd97785 (index.js:1:100160)
at Socket2. (index.js:1:112359)
at Emitter.emit (librarys.js:184:18081)
at Socket2.emitEvent (librarys.js:184:54873)
at Socket2.onevent (librarys.js:184:54638)
at Socket2.onpacket (librarys.js:184:54226)
at Emitter.emit (librarys.js:184:18081)
at librarys.js:184:61220

@zombieyang zombieyang changed the title 无法从PS获得图层的图像 Photoshop Error. Code: -1 Feb 16, 2025
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

6 participants