lllyasviel / lllyasviel/stable-diffusion-webui-forge

run.bat: TypeError: expected string or bytes-like object

Open
#1,203 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
13k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

Downloaded `webui_forge_cu124_torch24.7z`
Running `update.bat` and then `run.bat`.
run.bat cmd window instantly produces an error:

```
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Version: f2.0.1v1.10.1-previous-306-g2f0555f7
Commit hash: 2f0555f7dc3f2d06b3a3cc238a4fa2b72e11e28d
Traceback (most recent call last):
File "C:\_myDrive\repos\forge-aug-2024\webui\launch.py", line 51, in
main()
File "C:\_myDrive\repos\forge-aug-2024\webui\launch.py", line 39, in main
prepare_environment()
File "C:\_myDrive\repos\forge-aug-2024\webui\modules\launch_utils.py", line 472, in prepare_environment
if not requirements_met(requirements_file):
File "C:\_myDrive\repos\forge-aug-2024\webui\modules\launch_utils.py", line 357, in requirements_met
if packaging.version.parse(version_required) != packaging.version.parse(version_installed):
File "C:\Users\Igor\AppData\Roaming\Python\Python310\site-packages\packaging\version.py", line 54, in parse
return Version(version)
File "C:\Users\Igor\AppData\Roaming\Python\Python310\site-packages\packaging\version.py", line 198, in __init__
match = self._regex.search(version)
TypeError: expected string or bytes-like object
Press any key to continue . . .
```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with modules/launch_utils.py, especially requirements_met at line 357 and prepare_environment at line 472, then reproduce the traceback by running run.bat. Trace how the required and installed versions are obtained before packaging.version.parse is called. Done means the launcher completes dependency checking without this TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.