ModuleNotFoundError: No module named 'utils.install_util'; 'utils' is not a package on Fresh git clone
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 158
Description
### Custom Node Testing
- [x] I have tried disabling custom nodes and the issue persists (see [how to disable custom nodes](https://docs.comfy.org/troubleshooting/custom-node-issues#step-1%3A-test-with-all-custom-nodes-disabled) if you need help)
### Expected Behavior
The ComfyUI server should start successfully without any module import errors.
### Actual Behavior
The following traceback occurs, preventing the server from starting.
### Steps to Reproduce
Provision a new instance on vast.ai. (In my case, I used the https://hub.docker.com/r/vastai/pytorch/ image.")
Navigate to a desired workspace directory (e.g., /workspace/).
Execute git clone https://github.com/comfyanonymous/ComfyUI to clone the latest repository.
Change into the ComfyUI directory: cd ComfyUI.
Install the dependencies: pip install -r requirements.txt. (Or python -m pip install -r requirements.txt)
Attempt to start the server: python server.py.
### Debug Logs
```powershell
(main) root@C.26228598:/workspace/ComfyUI$ python server.py
Traceback (most recent call last):
File "/workspace/ComfyUI/server.py", line 32, in
from app.frontend_management import FrontendManager
File "/workspace/ComfyUI/app/frontend_management.py", line 19, in
from utils.install_util import get_missing_requirements_message, requirements_path
ModuleNotFoundError: No module named 'utils.install_util'; 'utils' is not a package
```
### Other
Description of the Issue:
When performing a fresh git clone of the latest ComfyUI repository on a vast.ai instance and attempting to run server.py, I consistently encounter a ModuleNotFoundError related to utils.install_util. The error message specifically states 'utils' is not a package. This issue persists even after attempting on a new vast.ai instance.
Additional Context:
I have verified that the working directory is indeed /workspace/ComfyUI when running python server.py.
I have checked the presence of utils/install_util.py and it exists after the clone.
Crucially, I found that a utils/__init__.py file (0 bytes) was present in the utils directory after the git clone.
ls -l utils/__init__.py showed: -rw-rw-r-- 1 root root 0 Sep 26 11:00 utils/__init__.py
Deleting this utils/__init__.py file and clearing __pycache__ directories (rm -rf utils/__pycache__, rm -rf app/__pycache__) and restarting the terminal session did not resolve the issue; the same ModuleNotFoundError persisted.
This problem consistently reproduces on multiple fresh vast.ai instances.
ComfyUI Version: lastest(0.3.60)
Python Version: Python 3.12.11
Contributor guide
Assessment
This issue has not been assessed yet.