[GH-ISSUE #1513] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte #639

Closed
opened 2026-10-27 21:20:14 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @CaledoniaProject on GitHub (Feb 3, 2025).
Original GitHub issue: https://github.com/Comfy-Org/ComfyUI-Manager/issues/1513

Can't install ComfyUI-Elegant-Resource-Monitor

Traceback (most recent call last):
  File "/comfyui/venv/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 480, in _handle_request
    resp = await request_handler(request)
  File "/comfyui/venv/lib/python3.10/site-packages/aiohttp/web_app.py", line 569, in _handle
    return await handler(request)
  File "/comfyui/venv/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl
    return await handler(request)
  File "/comfyui/comfyui/server.py", line 50, in cache_control
    response: web.Response = await handler(request)
  File "/comfyui/comfyui/server.py", line 128, in origin_only_middleware
    response = await handler(request)
  File "/comfyui/comfyui/custom_nodes/ComfyUI-Manager/glob/manager_server.py", line 897, in install_custom_node
    res = await core.unified_manager.install_by_id(node_name, version_spec, json_data['channel'], json_data['mode'], return_postinstall=skip_post_install)
  File "/comfyui/comfyui/custom_nodes/ComfyUI-Manager/glob/manager_core.py", line 1380, in install_by_id
    res = self.cnr_install(node_id, version_spec, instant_execution=instant_execution, no_deps=no_deps, return_postinstall=return_postinstall)
  File "/comfyui/comfyui/custom_nodes/ComfyUI-Manager/glob/manager_core.py", line 1182, in cnr_install
    if not postinstall():
  File "/comfyui/comfyui/custom_nodes/ComfyUI-Manager/glob/manager_core.py", line 1177, in postinstall
    return self.execute_install_script(node_id, install_path, instant_execution=instant_execution, no_deps=no_deps)
  File "/comfyui/comfyui/custom_nodes/ComfyUI-Manager/glob/manager_core.py", line 787, in execute_install_script
    for line in requirements_file:
  File "/opt/homebrew/Cellar/python@3.10/3.10.16/Frameworks/Python.framework/Versions/3.10/lib/python3.10/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte
Originally created by @CaledoniaProject on GitHub (Feb 3, 2025). Original GitHub issue: https://github.com/Comfy-Org/ComfyUI-Manager/issues/1513 Can't install [ComfyUI-Elegant-Resource-Monitor](https://github.com/ChrisColeTech/ComfyUI-Elegant-Resource-Monitor) ``` Traceback (most recent call last): File "/comfyui/venv/lib/python3.10/site-packages/aiohttp/web_protocol.py", line 480, in _handle_request resp = await request_handler(request) File "/comfyui/venv/lib/python3.10/site-packages/aiohttp/web_app.py", line 569, in _handle return await handler(request) File "/comfyui/venv/lib/python3.10/site-packages/aiohttp/web_middlewares.py", line 117, in impl return await handler(request) File "/comfyui/comfyui/server.py", line 50, in cache_control response: web.Response = await handler(request) File "/comfyui/comfyui/server.py", line 128, in origin_only_middleware response = await handler(request) File "/comfyui/comfyui/custom_nodes/ComfyUI-Manager/glob/manager_server.py", line 897, in install_custom_node res = await core.unified_manager.install_by_id(node_name, version_spec, json_data['channel'], json_data['mode'], return_postinstall=skip_post_install) File "/comfyui/comfyui/custom_nodes/ComfyUI-Manager/glob/manager_core.py", line 1380, in install_by_id res = self.cnr_install(node_id, version_spec, instant_execution=instant_execution, no_deps=no_deps, return_postinstall=return_postinstall) File "/comfyui/comfyui/custom_nodes/ComfyUI-Manager/glob/manager_core.py", line 1182, in cnr_install if not postinstall(): File "/comfyui/comfyui/custom_nodes/ComfyUI-Manager/glob/manager_core.py", line 1177, in postinstall return self.execute_install_script(node_id, install_path, instant_execution=instant_execution, no_deps=no_deps) File "/comfyui/comfyui/custom_nodes/ComfyUI-Manager/glob/manager_core.py", line 787, in execute_install_script for line in requirements_file: File "/opt/homebrew/Cellar/python@3.10/3.10.16/Frameworks/Python.framework/Versions/3.10/lib/python3.10/codecs.py", line 322, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte ```
Author
Owner

@ltdrdata commented on GitHub (Feb 16, 2025):

This is patched.

<!-- gh-comment-id:2661174222 --> @ltdrdata commented on GitHub (Feb 16, 2025): This is patched.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Comfy-Org/ComfyUI-Manager#639
No description provided.