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

Update requirements.txt #16553

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open

Update requirements.txt #16553

wants to merge 1 commit into from

Conversation

teward
Copy link

@teward teward commented Oct 13, 2024

Add wheel to requirements because 'packaging' module is referred to and is not available unless you install 'wheel' in the environment.

Description

When setting up A1111 or similar, the 'packaging' module is required.

In later versions of Python (3.10 isn't always available on some people's systems!) the setuptools and other packages that provide this aren't default-installed items.

As such, you have to install the 'wheel' package and its dependencies from PyPI to complete initial setup.

Screenshots/videos/logs:

Logs showing the failure case to setup:

Installing clip
Installing open_clip
Installing xformers
Traceback (most recent call last):
  File "D:\StableDiffusion\A1111\launch.py", line 48, in <module>
    main()
  File "D:\StableDiffusion\A1111\launch.py", line 39, in main
    prepare_environment()
  File "D:\StableDiffusion\A1111\modules\launch_utils.py", line 421, in prepare_environment
    if not requirements_met(requirements_file):
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\StableDiffusion\A1111\modules\launch_utils.py", line 289, in requirements_met
    import packaging.version
ModuleNotFoundError: No module named 'packaging'
Press any key to continue . . .

This doesn't happen when wheel is installed.

Checklist:

Add wheel to requirements because 'packaging' module is referred to and is not available unless you install 'wheel' in the environment.
@teward teward requested a review from AUTOMATIC1111 as a code owner October 13, 2024 21:38
@teward teward changed the base branch from master to dev October 13, 2024 21:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants