basujindal / stable-diffusion

Optimized Stable Diffusion modified to run on lower GPU VRAM
Other
3.14k stars 473 forks source link

Error building container image #178

Open jtrancas opened 2 years ago

jtrancas commented 2 years ago

I just followed the instructions in the README and I'm getting an error while compiling PyWavelets. Please find the output below.

stable-diffusion$ docker compose up --build
[+] Building 429.6s (9/11)                                                                                                                                                                                         
 => [internal] load build definition from Dockerfile                                                                                                                                                          0.0s
 => => transferring dockerfile: 1.08kB                                                                                                                                                                        0.0s
 => [internal] load .dockerignore                                                                                                                                                                             0.0s
 => => transferring context: 77B                                                                                                                                                                              0.0s
 => [internal] load metadata for docker.io/nvidia/cuda:11.3.1-base-ubuntu20.04                                                                                                                                1.7s
 => [1/7] FROM docker.io/nvidia/cuda:11.3.1-base-ubuntu20.04@sha256:0274590a738be104d1672eaef4cc65cc5d539f07a767567017f42affc4f0743d                                                                          4.7s
 => => resolve docker.io/nvidia/cuda:11.3.1-base-ubuntu20.04@sha256:0274590a738be104d1672eaef4cc65cc5d539f07a767567017f42affc4f0743d                                                                          0.0s
 => => sha256:602a45a9c0c53b3d3e098c00c9eb2cfc4e5e682368b3c332a8b369f7dbe3eeaa 7.93MB / 7.93MB                                                                                                                1.8s
 => => sha256:e1bae4c1f40fdf955a379a4700c3f4f631aedecfefc8b2c1f27514ca78d84354 11.32MB / 11.32MB                                                                                                              3.6s
 => => sha256:0274590a738be104d1672eaef4cc65cc5d539f07a767567017f42affc4f0743d 743B / 743B                                                                                                                    0.0s
 => => sha256:82e7fec1c41abc35a1cc647a888dc449b9dd2a0945cd8a5f8061587d1ca1800f 1.37kB / 1.37kB                                                                                                                0.0s
 => => sha256:dc18fc7dd357037fb9290da29934999d50293db4acd3f87d928730cf097dbf2c 6.08kB / 6.08kB                                                                                                                0.0s
 => => sha256:d5fd17ec1767521cf97f61568096bfc9a7cd9c2d149576a7b43930c5a97062b0 28.57MB / 28.57MB                                                                                                              3.8s
 => => sha256:d9d586ab25108661e1d6c8212e8252ad8d6fd368a8769b16bf05fb6cb16edd00 187B / 187B                                                                                                                    2.1s
 => => sha256:2b44adc78060afe2fe60578baf05e2b084bf1c7e17fef8742f7259fb5469283d 6.43kB / 6.43kB                                                                                                                2.3s
 => => extracting sha256:d5fd17ec1767521cf97f61568096bfc9a7cd9c2d149576a7b43930c5a97062b0                                                                                                                     0.4s
 => => extracting sha256:602a45a9c0c53b3d3e098c00c9eb2cfc4e5e682368b3c332a8b369f7dbe3eeaa                                                                                                                     0.1s
 => => extracting sha256:e1bae4c1f40fdf955a379a4700c3f4f631aedecfefc8b2c1f27514ca78d84354                                                                                                                     0.1s
 => => extracting sha256:d9d586ab25108661e1d6c8212e8252ad8d6fd368a8769b16bf05fb6cb16edd00                                                                                                                     0.0s
 => => extracting sha256:2b44adc78060afe2fe60578baf05e2b084bf1c7e17fef8742f7259fb5469283d                                                                                                                     0.0s
 => [internal] load build context                                                                                                                                                                             0.2s
 => => transferring context: 50.37MB                                                                                                                                                                          0.2s
 => [2/7] RUN apt update  && apt install --no-install-recommends -y curl wget git  && apt-get clean                                                                                                           9.1s
 => [3/7] RUN wget https://repo.anaconda.com/miniconda/Miniconda3-py38_4.12.0-Linux-x86_64.sh -O ~/miniconda.sh  && bash ~/miniconda.sh -b -p $HOME/miniconda  && $HOME/miniconda/bin/conda init             15.1s 
 => [4/7] COPY . /root/stable-diffusion                                                                                                                                                                       0.1s 
 => ERROR [5/7] RUN eval "$($HOME/miniconda/bin/conda shell.bash hook)"  && cd /root/stable-diffusion  && conda env create -f environment.yaml  && conda activate ldm  && pip install gradio==3.1.7         398.8s 
------                                                                                                                                                                                                             
 > [5/7] RUN eval "$($HOME/miniconda/bin/conda shell.bash hook)"  && cd /root/stable-diffusion  && conda env create -f environment.yaml  && conda activate ldm  && pip install gradio==3.1.7:                      
#0 1.230 Collecting package metadata (repodata.json): ...working... done                                                                                                                                           
#0 8.429 Solving environment: ...working... done                                                                                                                                                                   
#0 9.625                                                                                                                                                                                                           
#0 9.625 Downloading and Extracting Packages                                                                                                                                                                       
libgfortran-ng-11.2. | 20 KB     | ########## | 100% 
cudatoolkit-11.3.1   | 549.3 MB  | ########## | 100% 
ffmpeg-4.3           | 9.9 MB    | ########## | 100% 
libiconv-1.16        | 736 KB    | ########## | 100% 
zstd-1.5.2           | 488 KB    | ########## | 100% 
freetype-2.11.0      | 618 KB    | ########## | 100% 
blas-1.0             | 6 KB      | ########## | 100% 
mkl-2021.4.0         | 142.6 MB  | ########## | 100% 
libtasn1-4.16.0      | 58 KB     | ########## | 100% 
_openmp_mutex-5.1    | 21 KB     | ########## | 100% 
zlib-1.2.12          | 103 KB    | ########## | 100% 
torchvision-0.12.0   | 27.7 MB   | ########## | 100% 
ncurses-6.3          | 781 KB    | ########## | 100% 
gmp-6.2.1            | 544 KB    | ########## | 100% 
python-3.8.5         | 49.3 MB   | ########## | 100% 
libidn2-2.3.2        | 81 KB     | ########## | 100% 
openssl-1.1.1q       | 2.5 MB    | ########## | 100% 
lerc-3.0             | 196 KB    | ########## | 100% 
cffi-1.15.1          | 228 KB    | ########## | 100% 
ca-certificates-2022 | 124 KB    | ########## | 100% 
libunistring-0.9.10  | 536 KB    | ########## | 100% 
gnutls-3.6.15        | 1.0 MB    | ########## | 100% 
numpy-base-1.19.2    | 10.1 MB   | ########## | 100% 
setuptools-63.4.1    | 1.1 MB    | ########## | 100% 
libgfortran5-11.2.0  | 2.0 MB    | ########## | 100% 
tk-8.6.12            | 3.0 MB    | ########## | 100% 
lame-3.100           | 323 KB    | ########## | 100% 
pillow-9.2.0         | 666 KB    | ########## | 100% 
mkl-service-2.4.0    | 59 KB     | ########## | 100% 
ld_impl_linux-64-2.3 | 654 KB    | ########## | 100% 
pytorch-mutex-1.0    | 3 KB      | ########## | 100% 
nettle-3.7.3         | 809 KB    | ########## | 100% 
libstdcxx-ng-11.2.0  | 4.7 MB    | ########## | 100% 
certifi-2022.6.15    | 153 KB    | ########## | 100% 
cryptography-37.0.1  | 1.3 MB    | ########## | 100% 
libtiff-4.4.0        | 471 KB    | ########## | 100% 
requests-2.28.1      | 92 KB     | ########## | 100% 
mkl_random-1.2.2     | 308 KB    | ########## | 100% 
pytorch-1.11.0       | 1.02 GB   | ########## | 100% 
lz4-c-1.9.3          | 185 KB    | ########## | 100% 
mkl_fft-1.3.1        | 180 KB    | ########## | 100% 
lcms2-2.12           | 312 KB    | ########## | 100% 
numpy-1.19.2         | 10 KB     | ########## | 100% 
libwebp-1.2.2        | 80 KB     | ########## | 100% 
sqlite-3.39.2        | 1.1 MB    | ########## | 100% 
libgcc-ng-11.2.0     | 5.3 MB    | ########## | 100% 
jpeg-9e              | 240 KB    | ########## | 100% 
libgomp-11.2.0       | 474 KB    | ########## | 100% 
bzip2-1.0.8          | 78 KB     | ########## | 100% 
libuv-1.40.0         | 736 KB    | ########## | 100% 
libpng-1.6.37        | 278 KB    | ########## | 100% 
xz-5.2.5             | 339 KB    | ########## | 100% 
openh264-2.1.1       | 711 KB    | ########## | 100% 
intel-openmp-2021.4. | 4.2 MB    | ########## | 100% 
typing_extensions-4. | 42 KB     | ########## | 100% 
libdeflate-1.8       | 51 KB     | ########## | 100% 
urllib3-1.26.11      | 182 KB    | ########## | 100% 
pip-20.3.3           | 1.8 MB    | ########## | 100% 
libwebp-base-1.2.2   | 440 KB    | ########## | 100% 
giflib-5.2.1         | 78 KB     | ########## | 100% 
#0 286.8 Preparing transaction: ...working... done
#0 287.5 Verifying transaction: ...working... done
#0 290.0 Executing transaction: ...working... By downloading and using the CUDA Toolkit conda packages, you accept the terms and conditions of the CUDA End User License Agreement (EULA): https://docs.nvidia.com/cuda/eula/index.html
#0 294.1 
#0 294.1 done
#0 294.1 Installing pip dependencies: ...working... Ran pip subprocess with arguments:
#0 398.4 ['/root/miniconda/envs/ldm/bin/python', '-m', 'pip', 'install', '-U', '-r', '/root/stable-diffusion/condaenv.bv6jevfs.requirements.txt']
#0 398.4 Pip subprocess output:
#0 398.4 Obtaining taming-transformers from git+https://github.com/CompVis/taming-transformers.git@master#egg=taming-transformers (from -r /root/stable-diffusion/condaenv.bv6jevfs.requirements.txt (line 15))
#0 398.4   Cloning https://github.com/CompVis/taming-transformers.git (to revision master) to ./src/taming-transformers
#0 398.4 Obtaining clip from git+https://github.com/openai/CLIP.git@main#egg=clip (from -r /root/stable-diffusion/condaenv.bv6jevfs.requirements.txt (line 16))
#0 398.4   Cloning https://github.com/openai/CLIP.git (to revision main) to ./src/clip
#0 398.4 Obtaining file:///root/stable-diffusion (from -r /root/stable-diffusion/condaenv.bv6jevfs.requirements.txt (line 17))
#0 398.4 Requirement already satisfied: torch in /root/miniconda/envs/ldm/lib/python3.8/site-packages (from clip->-r /root/stable-diffusion/condaenv.bv6jevfs.requirements.txt (line 16)) (1.11.0)
#0 398.4 Requirement already satisfied: torchvision in /root/miniconda/envs/ldm/lib/python3.8/site-packages (from clip->-r /root/stable-diffusion/condaenv.bv6jevfs.requirements.txt (line 16)) (0.12.0)
#0 398.4 Requirement already satisfied: numpy in /root/miniconda/envs/ldm/lib/python3.8/site-packages (from latent-diffusion==0.0.1->-r /root/stable-diffusion/condaenv.bv6jevfs.requirements.txt (line 17)) (1.19.2)
#0 398.4 Collecting albumentations==0.4.3
#0 398.4   Downloading albumentations-0.4.3.tar.gz (3.2 MB)
#0 398.4 Collecting einops==0.3.0
#0 398.4   Downloading einops-0.3.0-py2.py3-none-any.whl (25 kB)
#0 398.4 Collecting imageio==2.9.0
#0 398.4   Downloading imageio-2.9.0-py3-none-any.whl (3.3 MB)
#0 398.4 Requirement already satisfied: pillow in /root/miniconda/envs/ldm/lib/python3.8/site-packages (from imageio==2.9.0->-r /root/stable-diffusion/condaenv.bv6jevfs.requirements.txt (line 4)) (9.2.0)
#0 398.4 Collecting imageio-ffmpeg==0.4.2
#0 398.4   Downloading imageio_ffmpeg-0.4.2-py3-none-manylinux2010_x86_64.whl (26.9 MB)
#0 398.4 Collecting kornia==0.6
#0 398.4   Downloading kornia-0.6.0-py2.py3-none-any.whl (367 kB)
#0 398.4 Collecting omegaconf==2.1.1
#0 398.4   Downloading omegaconf-2.1.1-py3-none-any.whl (74 kB)
#0 398.4 Collecting opencv-python==4.1.2.30
#0 398.4   Downloading opencv_python-4.1.2.30-cp38-cp38-manylinux1_x86_64.whl (28.3 MB)
#0 398.4 Collecting pudb==2019.2
#0 398.4   Downloading pudb-2019.2.tar.gz (59 kB)
#0 398.4 Collecting pytorch-lightning==1.4.2
#0 398.4   Downloading pytorch_lightning-1.4.2-py3-none-any.whl (916 kB)
#0 398.4 Requirement already satisfied: typing-extensions in /root/miniconda/envs/ldm/lib/python3.8/site-packages (from pytorch-lightning==1.4.2->-r /root/stable-diffusion/condaenv.bv6jevfs.requirements.txt (line 6)) (4.3.0)
#0 398.4 Collecting torch-fidelity==0.3.0
#0 398.4   Downloading torch_fidelity-0.3.0-py3-none-any.whl (37 kB)
#0 398.4 Collecting torchmetrics==0.6.0
#0 398.4   Downloading torchmetrics-0.6.0-py3-none-any.whl (329 kB)
#0 398.4 Collecting transformers==4.19.2
#0 398.4   Downloading transformers-4.19.2-py3-none-any.whl (4.2 MB)
#0 398.4 Requirement already satisfied: requests in /root/miniconda/envs/ldm/lib/python3.8/site-packages (from transformers==4.19.2->-r /root/stable-diffusion/condaenv.bv6jevfs.requirements.txt (line 12)) (2.28.1)
#0 398.4 Collecting antlr4-python3-runtime==4.8
#0 398.4   Downloading antlr4-python3-runtime-4.8.tar.gz (112 kB)
#0 398.4 Collecting pyDeprecate==0.3.1
#0 398.4   Downloading pyDeprecate-0.3.1-py3-none-any.whl (10 kB)
#0 398.4 Collecting streamlit>=0.73.1
#0 398.4   Downloading streamlit-1.12.2-py2.py3-none-any.whl (9.1 MB)
#0 398.4 Collecting test-tube>=0.7.5
#0 398.4   Downloading test_tube-0.7.5.tar.gz (21 kB)
#0 398.4 Collecting altair>=3.2.0
#0 398.4   Downloading altair-4.2.0-py3-none-any.whl (812 kB)
#0 398.4 Collecting blinker>=1.0.0
#0 398.4   Downloading blinker-1.5-py2.py3-none-any.whl (12 kB)
#0 398.4 Collecting cachetools>=4.0
#0 398.4   Downloading cachetools-5.2.0-py3-none-any.whl (9.3 kB)
#0 398.4 Collecting click>=7.0
#0 398.4   Downloading click-8.1.3-py3-none-any.whl (96 kB)
#0 398.4 Collecting fsspec[http]!=2021.06.0,>=2021.05.0
#0 398.4   Downloading fsspec-2022.8.2-py3-none-any.whl (140 kB)
#0 398.4 Collecting aiohttp!=4.0.0a0,!=4.0.0a1
#0 398.4   Downloading aiohttp-3.8.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.3 MB)
#0 398.4 Requirement already satisfied: charset-normalizer<3.0,>=2.0 in /root/miniconda/envs/ldm/lib/python3.8/site-packages (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]!=2021.06.0,>=2021.05.0->pytorch-lightning==1.4.2->-r /root/stable-diffusion/condaenv.bv6jevfs.requirements.txt (line 6)) (2.0.4)
#0 398.4 Collecting aiosignal>=1.1.2
#0 398.4   Downloading aiosignal-1.2.0-py3-none-any.whl (8.2 kB)
#0 398.4 Collecting async-timeout<5.0,>=4.0.0a3
#0 398.4   Downloading async_timeout-4.0.2-py3-none-any.whl (5.8 kB)
#0 398.4 Collecting attrs>=17.3.0
#0 398.4   Downloading attrs-22.1.0-py2.py3-none-any.whl (58 kB)
#0 398.4 Collecting frozenlist>=1.1.1
#0 398.4   Downloading frozenlist-1.3.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (161 kB)
#0 398.4 Collecting future>=0.17.1
#0 398.4   Downloading future-0.18.2.tar.gz (829 kB)
#0 398.4 Collecting gitpython!=3.1.19
#0 398.4   Downloading GitPython-3.1.27-py3-none-any.whl (181 kB)
#0 398.4 Collecting gitdb<5,>=4.0.1
#0 398.4   Downloading gitdb-4.0.9-py3-none-any.whl (63 kB)
#0 398.4 Collecting huggingface-hub<1.0,>=0.1.0
#0 398.4   Downloading huggingface_hub-0.9.1-py3-none-any.whl (120 kB)
#0 398.4 Collecting imgaug<0.2.7,>=0.2.5
#0 398.4   Downloading imgaug-0.2.6.tar.gz (631 kB)
#0 398.4 Requirement already satisfied: six in /root/miniconda/envs/ldm/lib/python3.8/site-packages (from imgaug<0.2.7,>=0.2.5->albumentations==0.4.3->-r /root/stable-diffusion/condaenv.bv6jevfs.requirements.txt (line 1)) (1.16.0)
#0 398.4 Collecting importlib-metadata>=1.4
#0 398.4   Downloading importlib_metadata-4.12.0-py3-none-any.whl (21 kB)
#0 398.4 Collecting jsonschema>=3.0
#0 398.4   Downloading jsonschema-4.16.0-py3-none-any.whl (83 kB)
#0 398.4 Collecting importlib-resources>=1.4.0
#0 398.4   Downloading importlib_resources-5.9.0-py3-none-any.whl (33 kB)
#0 398.4 Collecting multidict<7.0,>=4.5
#0 398.4   Downloading multidict-6.0.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (121 kB)
#0 398.4 Collecting opencv-python-headless>=4.1.1
#0 398.4   Downloading opencv_python_headless-4.6.0.66-cp36-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (48.3 MB)
#0 398.4 Collecting packaging
#0 398.4   Downloading packaging-21.3-py3-none-any.whl (40 kB)
#0 398.4 Collecting pandas>=0.21.0
#0 398.4   Downloading pandas-1.4.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.7 MB)
#0 398.4 Collecting pkgutil-resolve-name>=1.3.10
#0 398.4   Downloading pkgutil_resolve_name-1.3.10-py3-none-any.whl (4.7 kB)
#0 398.4 Collecting protobuf<4,>=3.12
#0 398.4   Downloading protobuf-3.20.2-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB)
#0 398.4 Collecting pyarrow>=4.0
#0 398.4   Downloading pyarrow-9.0.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (35.3 MB)
#0 398.4 Collecting pydeck>=0.1.dev5
#0 398.4   Downloading pydeck-0.8.0b3-py2.py3-none-any.whl (4.7 MB)
#0 398.4 Collecting jinja2
#0 398.4   Downloading Jinja2-3.1.2-py3-none-any.whl (133 kB)
#0 398.4 Collecting MarkupSafe>=2.0
#0 398.4   Downloading MarkupSafe-2.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB)
#0 398.4 Collecting pygments>=1.0
#0 398.4   Downloading Pygments-2.13.0-py3-none-any.whl (1.1 MB)
#0 398.4 Collecting pympler>=0.9
#0 398.4   Downloading Pympler-1.0.1-py3-none-any.whl (164 kB)
#0 398.4 Collecting pyparsing!=3.0.5,>=2.0.2
#0 398.4   Downloading pyparsing-3.0.9-py3-none-any.whl (98 kB)
#0 398.4 Collecting pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0
#0 398.4   Downloading pyrsistent-0.18.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (119 kB)
#0 398.4 Collecting python-dateutil
#0 398.4   Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
#0 398.4 Collecting pytz>=2020.1
#0 398.4   Downloading pytz-2022.2.1-py2.py3-none-any.whl (500 kB)
#0 398.4 Collecting PyYAML
#0 398.4   Downloading PyYAML-6.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (701 kB)
#0 398.4 Collecting regex
#0 398.4   Downloading regex-2022.9.13-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (772 kB)
#0 398.4 Requirement already satisfied: idna<4,>=2.5 in /root/miniconda/envs/ldm/lib/python3.8/site-packages (from requests->transformers==4.19.2->-r /root/stable-diffusion/condaenv.bv6jevfs.requirements.txt (line 12)) (3.3)
#0 398.4 Requirement already satisfied: urllib3<1.27,>=1.21.1 in /root/miniconda/envs/ldm/lib/python3.8/site-packages (from requests->transformers==4.19.2->-r /root/stable-diffusion/condaenv.bv6jevfs.requirements.txt (line 12)) (1.26.11)
#0 398.4 Requirement already satisfied: certifi>=2017.4.17 in /root/miniconda/envs/ldm/lib/python3.8/site-packages (from requests->transformers==4.19.2->-r /root/stable-diffusion/condaenv.bv6jevfs.requirements.txt (line 12)) (2022.6.15)
#0 398.4 Collecting rich>=10.11.0
#0 398.4   Downloading rich-12.5.1-py3-none-any.whl (235 kB)
#0 398.4 Collecting commonmark<0.10.0,>=0.9.0
#0 398.4   Downloading commonmark-0.9.1-py2.py3-none-any.whl (51 kB)
#0 398.4 Collecting scikit-image>=0.11.0
#0 398.4   Downloading scikit_image-0.19.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (14.0 MB)
#0 398.4 Collecting networkx>=2.2
#0 398.4   Downloading networkx-2.8.6-py3-none-any.whl (2.0 MB)
#0 398.4 Collecting PyWavelets>=1.1.1
#0 398.4   Downloading PyWavelets-1.4.0.tar.gz (4.6 MB)
#0 398.4   Installing build dependencies: started
#0 398.4   Installing build dependencies: finished with status 'done'
#0 398.4   Getting requirements to build wheel: started
#0 398.4   Getting requirements to build wheel: finished with status 'done'
#0 398.4     Preparing wheel metadata: started
#0 398.4     Preparing wheel metadata: finished with status 'done'
#0 398.4 Collecting scipy
#0 398.4   Downloading scipy-1.9.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (43.4 MB)
#0 398.4 Collecting smmap<6,>=3.0.1
#0 398.4   Downloading smmap-5.0.0-py3-none-any.whl (24 kB)
#0 398.4 Collecting tensorboard>=2.2.0
#0 398.4   Downloading tensorboard-2.10.0-py3-none-any.whl (5.9 MB)
#0 398.4 Requirement already satisfied: wheel>=0.26 in /root/miniconda/envs/ldm/lib/python3.8/site-packages (from tensorboard>=2.2.0->pytorch-lightning==1.4.2->-r /root/stable-diffusion/condaenv.bv6jevfs.requirements.txt (line 6)) (0.37.1)
#0 398.4 Requirement already satisfied: setuptools>=41.0.0 in /root/miniconda/envs/ldm/lib/python3.8/site-packages (from tensorboard>=2.2.0->pytorch-lightning==1.4.2->-r /root/stable-diffusion/condaenv.bv6jevfs.requirements.txt (line 6)) (63.4.1)
#0 398.4 Collecting absl-py>=0.4
#0 398.4   Downloading absl_py-1.2.0-py3-none-any.whl (123 kB)
#0 398.4 Collecting google-auth<3,>=1.6.3
#0 398.4   Downloading google_auth-2.11.0-py2.py3-none-any.whl (167 kB)
#0 398.4 Collecting google-auth-oauthlib<0.5,>=0.4.1
#0 398.4   Downloading google_auth_oauthlib-0.4.6-py2.py3-none-any.whl (18 kB)
#0 398.4 Collecting grpcio>=1.24.3
#0 398.4   Downloading grpcio-1.49.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.7 MB)
#0 398.4 Collecting markdown>=2.6.8
#0 398.4   Downloading Markdown-3.4.1-py3-none-any.whl (93 kB)
#0 398.4 Collecting protobuf<4,>=3.12
#0 398.4   Downloading protobuf-3.19.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB)
#0 398.4 Collecting pyasn1-modules>=0.2.1
#0 398.4   Downloading pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)
#0 398.4 Collecting pyasn1<0.5.0,>=0.4.6
#0 398.4   Downloading pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
#0 398.4 Collecting requests-oauthlib>=0.7.0
#0 398.4   Downloading requests_oauthlib-1.3.1-py2.py3-none-any.whl (23 kB)
#0 398.4 Collecting oauthlib>=3.0.0
#0 398.4   Downloading oauthlib-3.2.1-py3-none-any.whl (151 kB)
#0 398.4 Collecting rsa<5,>=3.1.4
#0 398.4   Downloading rsa-4.9-py3-none-any.whl (34 kB)
#0 398.4 Collecting tensorboard-data-server<0.7.0,>=0.6.0
#0 398.4   Downloading tensorboard_data_server-0.6.1-py3-none-manylinux2010_x86_64.whl (4.9 MB)
#0 398.4 Collecting tensorboard-plugin-wit>=1.6.0
#0 398.4   Downloading tensorboard_plugin_wit-1.8.1-py3-none-any.whl (781 kB)
#0 398.4 Collecting tifffile>=2019.7.26
#0 398.4   Downloading tifffile-2022.8.12-py3-none-any.whl (208 kB)
#0 398.4 Collecting tokenizers!=0.11.3,<0.13,>=0.11.1
#0 398.4   Downloading tokenizers-0.12.1-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (6.6 MB)
#0 398.4 Collecting tornado>=5.0
#0 398.4   Downloading tornado-6.2-cp37-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (423 kB)
#0 398.4 Collecting tqdm
#0 398.4   Downloading tqdm-4.64.1-py2.py3-none-any.whl (78 kB)
#0 398.4 Collecting tzlocal>=1.1
#0 398.4   Downloading tzlocal-4.2-py3-none-any.whl (19 kB)
#0 398.4 Collecting urwid>=1.1.1
#0 398.4   Downloading urwid-2.1.2.tar.gz (634 kB)
#0 398.4 Collecting validators>=0.2
#0 398.4   Downloading validators-0.20.0.tar.gz (30 kB)
#0 398.4 Collecting decorator>=3.4.0
#0 398.4   Downloading decorator-5.1.1-py3-none-any.whl (9.1 kB)
#0 398.4 Collecting werkzeug>=1.0.1
#0 398.4   Downloading Werkzeug-2.2.2-py3-none-any.whl (232 kB)
#0 398.4 Collecting yarl<2.0,>=1.0
#0 398.4   Downloading yarl-1.8.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (262 kB)
#0 398.4 Collecting zipp>=0.5
#0 398.4   Downloading zipp-3.8.1-py3-none-any.whl (5.6 kB)
#0 398.4 Collecting backports.zoneinfo
#0 398.4   Downloading backports.zoneinfo-0.2.1-cp38-cp38-manylinux1_x86_64.whl (74 kB)
#0 398.4 Collecting entrypoints
#0 398.4   Downloading entrypoints-0.4-py3-none-any.whl (5.3 kB)
#0 398.4 Collecting filelock
#0 398.4   Downloading filelock-3.8.0-py3-none-any.whl (10 kB)
#0 398.4 Collecting ftfy
#0 398.4   Downloading ftfy-6.1.1-py3-none-any.whl (53 kB)
#0 398.4 Collecting wcwidth>=0.2.5
#0 398.4   Downloading wcwidth-0.2.5-py2.py3-none-any.whl (30 kB)
#0 398.4 Collecting pytz-deprecation-shim
#0 398.4   Downloading pytz_deprecation_shim-0.1.0.post0-py2.py3-none-any.whl (15 kB)
#0 398.4 Collecting semver
#0 398.4   Downloading semver-2.13.0-py2.py3-none-any.whl (12 kB)
#0 398.4 Collecting toml
#0 398.4   Downloading toml-0.10.2-py2.py3-none-any.whl (16 kB)
#0 398.4 Collecting toolz
#0 398.4   Downloading toolz-0.12.0-py3-none-any.whl (55 kB)
#0 398.4 Collecting tzdata
#0 398.4   Downloading tzdata-2022.2-py2.py3-none-any.whl (336 kB)
#0 398.4 Collecting watchdog
#0 398.4   Downloading watchdog-2.1.9-py3-none-manylinux2014_x86_64.whl (78 kB)
#0 398.4 Building wheels for collected packages: albumentations, pudb, antlr4-python3-runtime, test-tube, future, imgaug, PyWavelets, urwid, validators
#0 398.4   Building wheel for albumentations (setup.py): started
#0 398.4   Building wheel for albumentations (setup.py): finished with status 'done'
#0 398.4   Created wheel for albumentations: filename=albumentations-0.4.3-py3-none-any.whl size=60767 sha256=6171eddf2a9e8c1fe2131a4497d61b001c565284e193df8fec20147ff5cd9c81
#0 398.4   Stored in directory: /root/.cache/pip/wheels/a0/37/4e/0bd417ba6a58f73329b825623d8c949e8e4ac2cdbd252b786d
#0 398.4   Building wheel for pudb (setup.py): started
#0 398.4   Building wheel for pudb (setup.py): finished with status 'done'
#0 398.4   Created wheel for pudb: filename=pudb-2019.2-py3-none-any.whl size=63218 sha256=337ee4c0d0d86141cc385db0b4e415c1f72640ce40d75ce657579e69118d147e
#0 398.4   Stored in directory: /root/.cache/pip/wheels/48/83/f1/d8a09d401e2512bfda01ac9fc1b334885f9ddf51617c1c49f1
#0 398.4   Building wheel for antlr4-python3-runtime (setup.py): started
#0 398.4   Building wheel for antlr4-python3-runtime (setup.py): finished with status 'done'
#0 398.4   Created wheel for antlr4-python3-runtime: filename=antlr4_python3_runtime-4.8-py3-none-any.whl size=141210 sha256=58d7dcae956e38761a434791d53a6d1dc3e744e2862032f929bce62390caeb09
#0 398.4   Stored in directory: /root/.cache/pip/wheels/c8/d0/ab/d43c02eaddc5b9004db86950802442ad9a26f279c619e28da0
#0 398.4   Building wheel for test-tube (setup.py): started
#0 398.4   Building wheel for test-tube (setup.py): finished with status 'done'
#0 398.4   Created wheel for test-tube: filename=test_tube-0.7.5-py3-none-any.whl size=25328 sha256=ba9de6be9bcc629a16a041313d48d7da20649924c6f324e43a8f1f5a97bae058
#0 398.4   Stored in directory: /root/.cache/pip/wheels/95/b0/3a/00ea66dbb0d9ce470ce1bdcb854a6fa030c279c316cb27ca9e
#0 398.4   Building wheel for future (setup.py): started
#0 398.4   Building wheel for future (setup.py): finished with status 'done'
#0 398.4   Created wheel for future: filename=future-0.18.2-py3-none-any.whl size=491058 sha256=cac2cbe29a3df73e417455f9e54fa51742f118e93f36d6d1456661fc59f161cc
#0 398.4   Stored in directory: /root/.cache/pip/wheels/8e/70/28/3d6ccd6e315f65f245da085482a2e1c7d14b90b30f239e2cf4
#0 398.4   Building wheel for imgaug (setup.py): started
#0 398.4   Building wheel for imgaug (setup.py): finished with status 'done'
#0 398.4   Created wheel for imgaug: filename=imgaug-0.2.6-py3-none-any.whl size=654004 sha256=fec878a6b4f18800e1cbf72b2e13d1ca203649e0a43151d810a47314565c080f
#0 398.4   Stored in directory: /root/.cache/pip/wheels/41/23/e8/b1016c275f713978d312621da3c4f55920ec4297798aba8a5a
#0 398.4   Building wheel for PyWavelets (PEP 517): started
#0 398.4   Building wheel for PyWavelets (PEP 517): finished with status 'error'
#0 398.4   Building wheel for urwid (setup.py): started
#0 398.4   Building wheel for urwid (setup.py): finished with status 'done'
#0 398.4   Created wheel for urwid: filename=urwid-2.1.2-py3-none-any.whl size=235033 sha256=608b00d3147e3314e45427898f0fc13232e14a1688af8689e60a94c084bead93
#0 398.4   Stored in directory: /root/.cache/pip/wheels/28/71/e4/38b5d81438105d0e3db5016cf2eea6fa796d89d96a04451d4d
#0 398.4   Building wheel for validators (setup.py): started
#0 398.4   Building wheel for validators (setup.py): finished with status 'done'
#0 398.4   Created wheel for validators: filename=validators-0.20.0-py3-none-any.whl size=19579 sha256=4ec3f2f43d80685f48e465e9f3e843a703cba05d93653c335f95e8ed06a16fd3
#0 398.4   Stored in directory: /root/.cache/pip/wheels/19/09/72/3eb74d236bb48bd0f3c6c3c83e4e0c5bbfcbcad7c6c3539db8
#0 398.4 Successfully built albumentations pudb antlr4-python3-runtime test-tube future imgaug urwid validators
#0 398.4 Failed to build PyWavelets
#0 398.4 
#0 398.4 failed
#0 398.4 
#0 398.4 
#0 398.4 ==> WARNING: A newer version of conda exists. <==
#0 398.4   current version: 4.12.0
#0 398.4   latest version: 4.14.0
#0 398.4 
#0 398.4 Please update conda by running
#0 398.4 
#0 398.4     $ conda update -n base -c defaults conda
#0 398.4 
#0 398.4 
#0 398.4 Pip subprocess error:
#0 398.4   ERROR: Command errored out with exit status 1:
#0 398.4    command: /root/miniconda/envs/ldm/bin/python /root/miniconda/envs/ldm/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmpiubcytkv
#0 398.4        cwd: /tmp/pip-install-fma3f1nw/pywavelets_9dfe47842eba4ace87b6d6e454132179
#0 398.4   Complete output (79 lines):
#0 398.4   Compiling pywt/_extensions/_pywt.pyx because it depends on pywt/_extensions/config.pxi.
#0 398.4   Compiling pywt/_extensions/_dwt.pyx because it depends on pywt/_extensions/config.pxi.
#0 398.4   Compiling pywt/_extensions/_swt.pyx because it depends on pywt/_extensions/config.pxi.
#0 398.4   Compiling pywt/_extensions/_cwt.pyx because it depends on pywt/_extensions/config.pxi.
#0 398.4   [1/4] Cythonizing pywt/_extensions/_dwt.pyx
#0 398.4   [2/4] Cythonizing pywt/_extensions/_swt.pyx
#0 398.4   [3/4] Cythonizing pywt/_extensions/_cwt.pyx
#0 398.4   [4/4] Cythonizing pywt/_extensions/_pywt.pyx
#0 398.4   running bdist_wheel
#0 398.4   running build
#0 398.4   running build_py
#0 398.4   creating build
#0 398.4   creating build/lib.linux-x86_64-cpython-38
#0 398.4   creating build/lib.linux-x86_64-cpython-38/pywt
#0 398.4   copying pywt/_swt.py -> build/lib.linux-x86_64-cpython-38/pywt
#0 398.4   copying pywt/_functions.py -> build/lib.linux-x86_64-cpython-38/pywt
#0 398.4   copying pywt/_pytesttester.py -> build/lib.linux-x86_64-cpython-38/pywt
#0 398.4   copying pywt/_multilevel.py -> build/lib.linux-x86_64-cpython-38/pywt
#0 398.4   copying pywt/conftest.py -> build/lib.linux-x86_64-cpython-38/pywt
#0 398.4   copying pywt/_wavelet_packets.py -> build/lib.linux-x86_64-cpython-38/pywt
#0 398.4   copying pywt/_thresholding.py -> build/lib.linux-x86_64-cpython-38/pywt
#0 398.4   copying pywt/_utils.py -> build/lib.linux-x86_64-cpython-38/pywt
#0 398.4   copying pywt/_cwt.py -> build/lib.linux-x86_64-cpython-38/pywt
#0 398.4   copying pywt/__init__.py -> build/lib.linux-x86_64-cpython-38/pywt
#0 398.4   copying pywt/_mra.py -> build/lib.linux-x86_64-cpython-38/pywt
#0 398.4   copying pywt/_pytest.py -> build/lib.linux-x86_64-cpython-38/pywt
#0 398.4   copying pywt/version.py -> build/lib.linux-x86_64-cpython-38/pywt
#0 398.4   copying pywt/_doc_utils.py -> build/lib.linux-x86_64-cpython-38/pywt
#0 398.4   copying pywt/_c99_config.py -> build/lib.linux-x86_64-cpython-38/pywt
#0 398.4   copying pywt/_dwt.py -> build/lib.linux-x86_64-cpython-38/pywt
#0 398.4   copying pywt/_multidim.py -> build/lib.linux-x86_64-cpython-38/pywt
#0 398.4   creating build/lib.linux-x86_64-cpython-38/pywt/_extensions
#0 398.4   copying pywt/_extensions/__init__.py -> build/lib.linux-x86_64-cpython-38/pywt/_extensions
#0 398.4   creating build/lib.linux-x86_64-cpython-38/pywt/data
#0 398.4   copying pywt/data/_wavelab_signals.py -> build/lib.linux-x86_64-cpython-38/pywt/data
#0 398.4   copying pywt/data/__init__.py -> build/lib.linux-x86_64-cpython-38/pywt/data
#0 398.4   copying pywt/data/_readers.py -> build/lib.linux-x86_64-cpython-38/pywt/data
#0 398.4   copying pywt/data/create_dat.py -> build/lib.linux-x86_64-cpython-38/pywt/data
#0 398.4   creating build/lib.linux-x86_64-cpython-38/pywt/tests
#0 398.4   copying pywt/tests/test_data.py -> build/lib.linux-x86_64-cpython-38/pywt/tests
#0 398.4   copying pywt/tests/test_multidim.py -> build/lib.linux-x86_64-cpython-38/pywt/tests
#0 398.4   copying pywt/tests/test_matlab_compatibility.py -> build/lib.linux-x86_64-cpython-38/pywt/tests
#0 398.4   copying pywt/tests/test_wavelet.py -> build/lib.linux-x86_64-cpython-38/pywt/tests
#0 398.4   copying pywt/tests/test_wp2d.py -> build/lib.linux-x86_64-cpython-38/pywt/tests
#0 398.4   copying pywt/tests/test_mra.py -> build/lib.linux-x86_64-cpython-38/pywt/tests
#0 398.4   copying pywt/tests/test_wpnd.py -> build/lib.linux-x86_64-cpython-38/pywt/tests
#0 398.4   copying pywt/tests/test_doc.py -> build/lib.linux-x86_64-cpython-38/pywt/tests
#0 398.4   copying pywt/tests/test_swt.py -> build/lib.linux-x86_64-cpython-38/pywt/tests
#0 398.4   copying pywt/tests/test_modes.py -> build/lib.linux-x86_64-cpython-38/pywt/tests
#0 398.4   copying pywt/tests/test_multilevel.py -> build/lib.linux-x86_64-cpython-38/pywt/tests
#0 398.4   copying pywt/tests/test_functions.py -> build/lib.linux-x86_64-cpython-38/pywt/tests
#0 398.4   copying pywt/tests/test_deprecations.py -> build/lib.linux-x86_64-cpython-38/pywt/tests
#0 398.4   copying pywt/tests/test_perfect_reconstruction.py -> build/lib.linux-x86_64-cpython-38/pywt/tests
#0 398.4   copying pywt/tests/test_dwt_idwt.py -> build/lib.linux-x86_64-cpython-38/pywt/tests
#0 398.4   copying pywt/tests/test__pywt.py -> build/lib.linux-x86_64-cpython-38/pywt/tests
#0 398.4   copying pywt/tests/test_thresholding.py -> build/lib.linux-x86_64-cpython-38/pywt/tests
#0 398.4   copying pywt/tests/test_wp.py -> build/lib.linux-x86_64-cpython-38/pywt/tests
#0 398.4   copying pywt/tests/test_matlab_compatibility_cwt.py -> build/lib.linux-x86_64-cpython-38/pywt/tests
#0 398.4   copying pywt/tests/test_cwt_wavelets.py -> build/lib.linux-x86_64-cpython-38/pywt/tests
#0 398.4   copying pywt/tests/test_concurrent.py -> build/lib.linux-x86_64-cpython-38/pywt/tests
#0 398.4   creating build/lib.linux-x86_64-cpython-38/pywt/tests/data
#0 398.4   copying pywt/tests/data/dwt_matlabR2012a_result.npz -> build/lib.linux-x86_64-cpython-38/pywt/tests/data
#0 398.4   copying pywt/tests/data/cwt_matlabR2015b_result.npz -> build/lib.linux-x86_64-cpython-38/pywt/tests/data
#0 398.4   copying pywt/tests/data/wavelab_test_signals.npz -> build/lib.linux-x86_64-cpython-38/pywt/tests/data
#0 398.4   copying pywt/tests/data/generate_matlab_data_cwt.py -> build/lib.linux-x86_64-cpython-38/pywt/tests/data
#0 398.4   copying pywt/tests/data/generate_matlab_data.py -> build/lib.linux-x86_64-cpython-38/pywt/tests/data
#0 398.4   copying pywt/data/ecg.npy -> build/lib.linux-x86_64-cpython-38/pywt/data
#0 398.4   copying pywt/data/ascent.npz -> build/lib.linux-x86_64-cpython-38/pywt/data
#0 398.4   copying pywt/data/sst_nino3.npz -> build/lib.linux-x86_64-cpython-38/pywt/data
#0 398.4   copying pywt/data/aero.npz -> build/lib.linux-x86_64-cpython-38/pywt/data
#0 398.4   copying pywt/data/camera.npz -> build/lib.linux-x86_64-cpython-38/pywt/data
#0 398.4   running build_clib
#0 398.4   building 'c_wt' library
#0 398.4   creating build/temp.linux-x86_64-cpython-38
#0 398.4   creating build/temp.linux-x86_64-cpython-38/pywt
#0 398.4   creating build/temp.linux-x86_64-cpython-38/pywt/_extensions
#0 398.4   creating build/temp.linux-x86_64-cpython-38/pywt/_extensions/c
#0 398.4   gcc -pthread -B /root/miniconda/envs/ldm/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPY_EXTENSION -DHAVE_C99_COMPLEX -Ipywt/_extensions/c -I/root/miniconda/envs/ldm/include/python3.8 -c pywt/_extensions/c/common.c -o build/temp.linux-x86_64-cpython-38/pywt/_extensions/c/common.o
#0 398.4   error: command 'gcc' failed: No such file or directory
#0 398.4   ----------------------------------------
#0 398.4   ERROR: Failed building wheel for PyWavelets
#0 398.4 ERROR: Could not build wheels for PyWavelets which use PEP 517 and cannot be installed directly
#0 398.4 
#0 398.4 
#0 398.4 CondaEnvException: Pip failed
#0 398.4 
------
failed to solve: executor failed running [/bin/bash -c eval "$($HOME/miniconda/bin/conda shell.bash hook)"  && cd /root/stable-diffusion  && conda env create -f environment.yaml  && conda activate ldm  && pip install gradio==3.1.7]: exit code: 1
jtrancas commented 2 years ago

It looks like a new version of PyWavelets came out a couple of hours ago. Adding the PyWavelets package with the previous version to the environment.yaml did the trick.

diff --git a/environment.yaml b/environment.yaml
index 7f25da8..b720fee 100644
--- a/environment.yaml
+++ b/environment.yaml
@@ -10,6 +10,7 @@ dependencies:
   - torchvision=0.12.0
   - numpy=1.19.2
   - pip:
+    - PyWavelets==1.3.0
     - albumentations==0.4.3
     - opencv-python==4.1.2.30
     - pudb==2019.2