ITADN

[Bug]: Comment lines cannot be written in requirements_versions.txt.

#473Openhirorohi03 创建于 2026-03-02
H
hirorohi03commented
### Checklist - [x] The issue exists after disabling all extensions - [x] The issue exists on a clean installation of webui - [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui - [x] The issue exists in the current version of the webui - [x] The issue has not been reported before recently - [ ] The issue has been reported before but has not been fixed yet ### What happened? Comment lines cannot be written in requirements_versions.txt. It's not a major issue, but if you don't enable `--skip-install`, `Installing requirements` will always run at startup. ### Steps to reproduce the problem 1. Clean install 2. Run and exit webui-user.bat several times 3. Ensure that `Installing requirements` is always displayed in the startup message. ### What should have happened? If the pip libraries in the venv are installed according to rrequirements_versions.txt, `Installing requirements` should not be executed. ### What browsers do you use to access the UI ? Google Chrome ### Sysinfo Skip ### Console logs ```Shell venv "c:\reforge\venv\Scripts\Python.exe" Python 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)] Version: f1.0.0v2-v1.10.1RC-latest-2504-gd55faec6 Commit hash: d55faec6ce6d7b0800b035cec90d64c45b69de26 Installing requirements ``` ### Additional information The reason comment lines are not permitted in requirements_versions.txt is due to the regular expression defined for re_requirement around line 319 in modules/launch_utils.py and the check performed around line 336. Comment lines starting with a # are treated as None and return False.
0 条评论