[GH-ISSUE #932] [Bug]: Startup environment error, Python environment issue #255

Closed
opened 2026-10-31 22:10:40 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @daguang1982 on GitHub (Feb 17, 2025).
Original GitHub issue: https://github.com/Comfy-Org/desktop/issues/932

App Version

comfyui_8000.log
comfyui_8000.prev2.log

Expected Behavior

0.4.18 1. error ModuleNotFoundError: No module named 'distutils'。

         2.error  Xforms cannot be installed

         3. [ComfyUI-Manager] Logging failed: [WinError 32] 另一个程序正在使用此文件,进程无法访问。
         E:\\comyuiapp\\user\\comfyui_8000.log' -> 'E:\\comyuiapp\\user\\comfyui_8000.prev.log'

Actual Behavior

Some nodes cannot be installed and run

Steps to Reproduce

Some nodes cannot be installed and run

Debug Logs

Some nodes cannot be installed and run

Browser Logs

Some nodes cannot be installed and run

Settings JSON

Some nodes cannot be installed and run

Other

No response

┆Issue is synchronized with this Notion page by Unito

Originally created by @daguang1982 on GitHub (Feb 17, 2025). Original GitHub issue: https://github.com/Comfy-Org/desktop/issues/932 ### App Version [comfyui_8000.log](https://github.com/user-attachments/files/18827493/comfyui_8000.log) [comfyui_8000.prev2.log](https://github.com/user-attachments/files/18827494/comfyui_8000.prev2.log) ### Expected Behavior 0.4.18 1. error ModuleNotFoundError: No module named 'distutils'。 2.error Xforms cannot be installed 3. [ComfyUI-Manager] Logging failed: [WinError 32] 另一个程序正在使用此文件,进程无法访问。 E:\\comyuiapp\\user\\comfyui_8000.log' -> 'E:\\comyuiapp\\user\\comfyui_8000.prev.log' ### Actual Behavior Some nodes cannot be installed and run ### Steps to Reproduce Some nodes cannot be installed and run ### Debug Logs ```powershell Some nodes cannot be installed and run ``` ### Browser Logs Some nodes cannot be installed and run ### Settings JSON Some nodes cannot be installed and run ### Other _No response_ ┆Issue is synchronized with this [Notion page](https://www.notion.so/Issue-932-Bug-Startup-environment-error-Python-environment-issue-19d6d73d3650816ea6a9f574bfcb9f4e) by [Unito](https://www.unito.io)
bsakaguchi 2026-10-31 22:10:40 +00:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@dosubot[bot] commented on GitHub (Feb 17, 2025):

Hello @daguang1982, I'm here to help you with your software issue. If you have any questions or need assistance, feel free to ask!

To address the issues you're encountering:

  1. ModuleNotFoundError: No module named 'distutils': This error indicates that the distutils module is missing. You can resolve this by installing the python3-distutils package. On Debian-based systems, you can use the following command:

    sudo apt-get install python3-distutils
    
  2. Xforms cannot be installed: Unfortunately, I couldn't find specific information about issues related to 'Xforms' in the repository. However, ensure that all dependencies are correctly installed and that your Python environment is properly set up. You might need to check for any specific installation instructions for 'Xforms' or related modules.

  3. WinError 32 during log file access: This error occurs when another process is using the log file, preventing access. ComfyUI uses the electron-log library for logging, and this error can happen if the log file is being accessed by another process while a log rotation is attempted. Ensure no other applications are accessing the log files, and consider implementing a mechanism to handle file locks if this is a recurring issue [1][2].

These steps should help you resolve the issues you're facing. If the problems persist, double-check your environment setup and ensure all dependencies are correctly installed.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

<!-- gh-comment-id:2663482151 --> @dosubot[bot] commented on GitHub (Feb 17, 2025): <!-- Greeting --> Hello @daguang1982, I'm here to help you with your software issue. If you have any questions or need assistance, feel free to ask! <!-- Answer --> To address the issues you're encountering: 1. **ModuleNotFoundError: No module named 'distutils'**: This error indicates that the `distutils` module is missing. You can resolve this by installing the `python3-distutils` package. On Debian-based systems, you can use the following command: ```bash sudo apt-get install python3-distutils ``` 2. **Xforms cannot be installed**: Unfortunately, I couldn't find specific information about issues related to 'Xforms' in the repository. However, ensure that all dependencies are correctly installed and that your Python environment is properly set up. You might need to check for any specific installation instructions for 'Xforms' or related modules. 3. **WinError 32 during log file access**: This error occurs when another process is using the log file, preventing access. ComfyUI uses the `electron-log` library for logging, and this error can happen if the log file is being accessed by another process while a log rotation is attempted. Ensure no other applications are accessing the log files, and consider implementing a mechanism to handle file locks if this is a recurring issue <sup>[[1]](https://github.com/Comfy-Org/desktop/blob/main/src/utils.ts)</sup><sup>[[2]](https://github.com/Comfy-Org/desktop/blob/main/tests/unit/config/comfySettings.test.ts)</sup>. These steps should help you resolve the issues you're facing. If the problems persist, double-check your environment setup and ensure all dependencies are correctly installed. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/624d79cc-884f-441b-8b64-d3582c68012a?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/624d79cc-884f-441b-8b64-d3582c68012a?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/624d79cc-884f-441b-8b64-d3582c68012a?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/624d79cc-884f-441b-8b64-d3582c68012a?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/624d79cc-884f-441b-8b64-d3582c68012a?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/624d79cc-884f-441b-8b64-d3582c68012a?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/624d79cc-884f-441b-8b64-d3582c68012a?feedback_type=other)</sup>
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/desktop#255
No description provided.