Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jun 9, 2024

Conversation

Uminosachi
Copy link
Contributor

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.

Copy link
Collaborator

@huchenlei huchenlei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for tracking this down!

@huchenlei huchenlei added the bug Something isn't working label Jun 9, 2024
@huchenlei huchenlei merged commit 8bbbd0e into Mikubill:main Jun 9, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants