Mikubill / sd-webui-controlnet

WebUI extension for ControlNet
GNU General Public License v3.0
16.41k stars 1.9k forks source link

Fix issue with > in pip cmd causing file creation #2952

Closed Uminosachi closed 3 weeks ago

Uminosachi commented 3 weeks ago

Problem Summary

When starting the Web UI, the install.py script reads requirements.txt. If a package version uses ">", it is treated as a redirection in pip install, creating an unintended file.

Steps to Reproduce

Running webui.bat or webui.sh creates a file named "=4.8.0" due to "opencv-python>=4.8.0" in requirements.txt being misinterpreted.

Fix

I enclosed the package and version specification in double quotes in install.py.