Closed ryanrezrez closed 4 months ago
The numpy doesn't have version specified in the requirements file. I had to deal with this when building the latest RunPods too. I believe you have to pump up the torchsde
from 0.2.5
to 0.2.6
to fix it, as it was some bug in the dependencies.
Thank you very much this fixed it.
When i try to launch my container on modal.com in Fooocus i get a few errors. This is the log:
`[2024-06-27 17:32:25] INFO [System ARGV] ['main.py', '--host', '0.0.0.0', '--port', '8080'] [2024-06-27 17:32:25] INFO [Fooocus API] Python 3.10.13 (main, Sep 11 2023, 13:44:35) [GCC 11.2.0] [2024-06-27 17:32:25] INFO [Fooocus API] Fooocus API version: 0.4.1.0 Requirement already satisfied: torchsde==0.2.5 in /opt/conda/lib/python3.10/site-packages (from -r requirements.txt (line 1)) (0.2.5) Requirement already satisfied: einops==0.4.1 in /opt/conda/lib/python3.10/site-packages (from -r requirements.txt (line 2)) (0.4.1) Requirement already satisfied: transformers==4.30.2 in /opt/conda/lib/python3.10/site-packages (from -r requirements.txt (line 3)) (4.30.2) Requirement already satisfied: safetensors==0.3.1 in /opt/conda/lib/python3.10/site-packages (from -r requirements.txt (line 4)) (0.3.1) Requirement already satisfied: accelerate==0.21.0 in /opt/conda/lib/python3.10/site-packages (from -r requirements.txt (line 5)) (0.21.0) Requirement already satisfied: pyyaml==6.0 in /opt/conda/lib/python3.10/site-packages (from -r requirements.txt (line 6)) (6.0) Requirement already satisfied: Pillow==9.4.0 in /opt/conda/lib/python3.10/site-packages (from -r requirements.txt (line 7)) (9.4.0) Requirement already satisfied: scipy==1.9.3 in /opt/conda/lib/python3.10/site-packages (from -r requirements.txt (line 8)) (1.9.3) Requirement already satisfied: tqdm==4.64.1 in /opt/conda/lib/python3.10/site-packages (from -r requirements.txt (line 9)) (4.64.1) Requirement already satisfied: psutil==5.9.5 in /opt/conda/lib/python3.10/site-packages (from -r requirements.txt (line 10)) (5.9.5) Requirement already satisfied: pytorch_lightning==1.9.4 in /opt/conda/lib/python3.10/site-packages (from -r requirements.txt (line 11)) (1.9.4) Requirement already satisfied: omegaconf==2.2.3 in /opt/conda/lib/python3.10/site-packages (from -r requirements.txt (line 12)) (2.2.3) Requirement already satisfied: pygit2==1.12.2 in /opt/conda/lib/python3.10/site-packages (from -r requirements.txt (line 13)) (1.12.2) Requirement already satisfied: opencv-contrib-python==4.8.0.74 in /opt/conda/lib/python3.10/site-packages (from -r requirements.txt (line 14)) (4.8.0.74) Requirement already satisfied: onnxruntime==1.16.3 in /opt/conda/lib/python3.10/site-packages (from -r requirements.txt (line 15)) (1.16.3) Requirement already satisfied: timm==0.9.2 in /opt/conda/lib/python3.10/site-packages (from -r requirements.txt (line 16)) (0.9.2) Collecting fastapi>=0.103.1 (from -r requirements.txt (line 17)) Downloading fastapi-0.111.0-py3-none-any.whl.metadata (25 kB) Collecting pydantic==2.4.2 (from -r requirements.txt (line 18)) Downloading pydantic-2.4.2-py3-none-any.whl.metadata (158 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 158.6/158.6 kB 5.3 MB/s eta 0:00:00 Requirement already satisfied: pydantic_core==2.10.1 in /opt/conda/lib/python3.10/site-packages (from -r requirements.txt (line 19)) (2.10.1) Requirement already satisfied: python-multipart==0.0.6 in /opt/conda/lib/python3.10/site-packages (from -r requirements.txt (line 20)) (0.0.6) Requirement already satisfied: uvicorn==0.23.2 in /opt/conda/lib/python3.10/site-packages (from uvicorn[standard]==0.23.2->-r requirements.txt (line 21)) (0.23.2) Requirement already satisfied: colorlog in /opt/conda/lib/python3.10/site-packages (from -r requirements.txt (line 22)) (6.8.2) Requirement already satisfied: requests in /opt/conda/lib/python3.10/site-packages (from -r requirements.txt (line 23)) (2.31.0) Requirement already satisfied: numpy in /opt/conda/lib/python3.10/site-packages (from -r requirements.txt (line 24)) (1.25.2) Requirement already satisfied: sqlalchemy in /opt/conda/lib/python3.10/site-packages (from -r requirements.txt (line 25)) (2.0.31) Requirement already satisfied: packaging in /opt/conda/lib/python3.10/site-packages (from -r requirements.txt (line 26)) (23.1) Requirement already satisfied: rich in /opt/conda/lib/python3.10/site-packages (from -r requirements.txt (line 27)) (12.3.0) Requirement already satisfied: chardet in /opt/conda/lib/python3.10/site-packages (from -r requirements.txt (line 28)) (4.0.0) ERROR: Exception: Traceback (most recent call last): File "/opt/conda/lib/python3.10/site-packages/pip/_vendor/pkg_resources/init.py", line 3070, in _dep_map return self.dep_map File "/opt/conda/lib/python3.10/site-packages/pip/_vendor/pkg_resources/init.py", line 2863, in getattr raise AttributeError(attr) AttributeError: _DistInfoDistributiondep_map
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/opt/conda/lib/python3.10/site-packages/pip/_vendor/packaging/requirements.py", line 36, in init parsed = _parse_requirement(requirement_string) File "/opt/conda/lib/python3.10/site-packages/pip/_vendor/packaging/_parser.py", line 62, in parse_requirement return _parse_requirement(Tokenizer(source, rules=DEFAULT_RULES)) File "/opt/conda/lib/python3.10/site-packages/pip/_vendor/packaging/_parser.py", line 80, in _parse_requirement url, specifier, marker = _parse_requirement_details(tokenizer) File "/opt/conda/lib/python3.10/site-packages/pip/_vendor/packaging/_parser.py", line 118, in _parse_requirement_details specifier = _parse_specifier(tokenizer) File "/opt/conda/lib/python3.10/site-packages/pip/_vendor/packaging/_parser.py", line 214, in _parse_specifier parsed_specifiers = _parse_version_many(tokenizer) File "/opt/conda/lib/python3.10/site-packages/pip/_vendor/packaging/_parser.py", line 229, in _parse_version_many tokenizer.raise_syntax_error( File "/opt/conda/lib/python3.10/site-packages/pip/_vendor/packaging/_tokenizer.py", line 167, in raise_syntax_error raise ParserSyntaxError( pip._vendor.packaging._tokenizer.ParserSyntaxError: . suffix can only be used with
==
or!=
operators numpy (>=1.19.) ; python_version >= "3.7"