StreamDiffusion icon indicating copy to clipboard operation
StreamDiffusion copied to clipboard

Unable to Install Docker Despite Following README Instructions

Open kidapu opened this issue 1 year ago • 3 comments

I am unable to successfully install Docker by following the installation instructions in the README file.

The Docker installation process fails when following the README instructions.

% git clone https://github.com/cumulo-autumn/StreamDiffusion.git
% cd StreamDiffusion
 % docker build -t stream-diffusion:latest -f Dockerfile .
[+] Building 326.7s (12/13)                                                                                  docker:default
 => [internal] load build definition from Dockerfile                                                                   0.0s
 => => transferring dockerfile: 1.22kB                                                                                 0.0s
 => [internal] load metadata for docker.io/nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04                                 1.6s
 => [internal] load .dockerignore                                                                                      0.0s
 => => transferring context: 85B                                                                                       0.0s
 => [internal] load build context                                                                                      0.0s
 => => transferring context: 86.59kB                                                                                   0.0s
 => [1/9] FROM docker.io/nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04@sha256:8f9dd0d09d3ad3900357a1cf7f887888b5b740566  0.0s
 => => resolve docker.io/nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04@sha256:8f9dd0d09d3ad3900357a1cf7f887888b5b740566  0.0s
 => CACHED [2/9] RUN rm /bin/sh && ln -s /bin/bash /bin/sh                                                             0.0s
 => CACHED [3/9] RUN apt-get update && apt-get install -y --no-install-recommends         make         wget         t  0.0s
 => CACHED [4/9] RUN echo "export PATH=/usr/local/cuda/bin:/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:  0.0s
 => [5/9] RUN pip3 install     torch==2.1.0     torchvision==0.16.0     xformers     --index-url https://download.p  197.5s
 => [6/9] COPY . /streamdiffusion                                                                                      0.2s
 => [7/9] WORKDIR /streamdiffusion                                                                                     0.0s
 => ERROR [8/9] RUN python setup.py develop easy_install streamdiffusion[tensorrt]     && python -m streamdiffusion  127.2s
------
 > [8/9] RUN python setup.py develop easy_install streamdiffusion[tensorrt]     && python -m streamdiffusion.tools.install-tensorrt:
0.524 running develop
0.525 /usr/lib/python3/dist-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
0.525   warnings.warn(
0.527 /usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
0.527   warnings.warn(
0.546 running egg_info
0.546 creating src/streamdiffusion.egg-info
0.547 writing src/streamdiffusion.egg-info/PKG-INFO
0.547 writing dependency_links to src/streamdiffusion.egg-info/dependency_links.txt
0.548 writing requirements to src/streamdiffusion.egg-info/requires.txt
0.548 writing top-level names to src/streamdiffusion.egg-info/top_level.txt
0.548 writing manifest file 'src/streamdiffusion.egg-info/SOURCES.txt'
0.551 reading manifest file 'src/streamdiffusion.egg-info/SOURCES.txt'
0.552 writing manifest file 'src/streamdiffusion.egg-info/SOURCES.txt'
0.554 running build_ext
0.555 Creating /usr/local/lib/python3.10/dist-packages/streamdiffusion.egg-link (link to src)
0.555 Adding streamdiffusion 0.1.1 to easy-install.pth file
0.557
0.557 Installed /streamdiffusion/src
0.558 Processing dependencies for streamdiffusion==0.1.1
0.564 Searching for transformers
0.564 Reading https://pypi.org/simple/transformers/
0.798 /usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning:  is an invalid version and will not be supported in a future release
0.798   warnings.warn(
1.823 Downloading https://files.pythonhosted.org/packages/db/88/1ef8a624a33d7fe460a686b9e0194a7916320fc0d67d4e38e570beeac039/transformers-4.46.0-py3-none-any.whl#sha256=e161268ae8bee315eb9e9b4c0b27f1bd6980f91e0fc292d75249193d339704c0
5.583 Best match: transformers 4.46.0
5.583 Processing transformers-4.46.0-py3-none-any.whl
5.589 Installing transformers-4.46.0-py3-none-any.whl to /usr/local/lib/python3.10/dist-packages
6.526 Adding transformers 4.46.0 to easy-install.pth file
6.528 Installing transformers-cli script to /usr/local/bin
6.528
6.528 Installed /usr/local/lib/python3.10/dist-packages/transformers-4.46.0-py3.10.egg
6.613 Searching for omegaconf
6.613 Reading https://pypi.org/simple/omegaconf/
7.769 Downloading https://files.pythonhosted.org/packages/dc/08/29b30970ce5e22440e2bc1fd929a79de08feb3c6c054bc7e832228fc1a94/omegaconf-2.4.0.dev3-py3-none-any.whl#sha256=acffa42eab0d9cb09ccead6e80d1dfd20a625e21602353f267f3bc2cd131f7b2
7.818 Best match: omegaconf 2.4.0.dev3
7.819 Processing omegaconf-2.4.0.dev3-py3-none-any.whl
7.826 Installing omegaconf-2.4.0.dev3-py3-none-any.whl to /usr/local/lib/python3.10/dist-packages
7.848 Adding omegaconf 2.4.0.dev3 to easy-install.pth file
7.850
7.850 Installed /usr/local/lib/python3.10/dist-packages/omegaconf-2.4.0.dev3-py3.10.egg
7.851 Searching for fire
7.851 Reading https://pypi.org/simple/fire/
8.049 Downloading https://files.pythonhosted.org/packages/6b/b6/82c7e601d6d3c3278c40b7bd35e17e82aa227f050aa9f66cb7b7fce29471/fire-0.7.0.tar.gz#sha256=961550f07936eaf65ad1dc8360f2b2bf8408fad46abbfa4d2a3794f8d2a95cdf
8.090 Best match: fire 0.7.0
8.091 Processing fire-0.7.0.tar.gz
8.106 Writing /tmp/easy_install-d9uhiw4u/fire-0.7.0/setup.cfg
8.106 Running fire-0.7.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-d9uhiw4u/fire-0.7.0/egg-dist-tmp-kwhon2qi
8.146 /usr/lib/python3.10/distutils/dist.py:274: UserWarning: Unknown distribution option: 'requires_python'
8.146   warnings.warn(msg)
8.172 /usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
8.172   warnings.warn(
8.240 zip_safe flag not set; analyzing archive contents...
8.242 fire.__pycache__.core.cpython-310: module MAY be using inspect.stack
8.242 fire.__pycache__.core.cpython-310: module MAY be using inspect.trace
8.246 fire.__pycache__.inspectutils.cpython-310: module MAY be using inspect.getsourcefile
8.246 fire.__pycache__.inspectutils.cpython-310: module MAY be using inspect.findsource
8.288 creating /usr/local/lib/python3.10/dist-packages/fire-0.7.0-py3.10.egg
8.288 Extracting fire-0.7.0-py3.10.egg to /usr/local/lib/python3.10/dist-packages
8.350 Adding fire 0.7.0 to easy-install.pth file
8.351
8.351 Installed /usr/local/lib/python3.10/dist-packages/fire-0.7.0-py3.10.egg
8.356 Searching for diffusers==0.24.0
8.356 Reading https://pypi.org/simple/diffusers/
8.572 /usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning:  is an invalid version and will not be supported in a future release
8.572   warnings.warn(
9.025 Downloading https://files.pythonhosted.org/packages/dc/92/b17949ff6b634bfb93e12ff8753288d6c59edf4366cc5c501377e6373e0c/diffusers-0.24.0-py3-none-any.whl#sha256=d4507c7cc273594319b052c342ef0dc268fdf9b59a5da3518c900a03c58f9188
9.201 Best match: diffusers 0.24.0
9.201 Processing diffusers-0.24.0-py3-none-any.whl
9.207 Installing diffusers-0.24.0-py3-none-any.whl to /usr/local/lib/python3.10/dist-packages
9.360 Adding diffusers 0.24.0 to easy-install.pth file
9.363 Installing diffusers-cli script to /usr/local/bin
9.364
9.364 Installed /usr/local/lib/python3.10/dist-packages/diffusers-0.24.0-py3.10.egg
9.380 Searching for accelerate
9.380 Reading https://pypi.org/simple/accelerate/
9.950 Downloading https://files.pythonhosted.org/packages/2c/92/48aec3736ca778ffe5fa68e19e3c18917cba4de43fa46fe6176cccafe267/accelerate-1.0.1-py3-none-any.whl#sha256=c6aa0c7b8a797cb150471e90e3ca36ac41f5d4b40512cdd6f058b8bf25589467
10.01 Best match: accelerate 1.0.1
10.01 Processing accelerate-1.0.1-py3-none-any.whl
10.01 Installing accelerate-1.0.1-py3-none-any.whl to /usr/local/lib/python3.10/dist-packages
10.10 Adding accelerate 1.0.1 to easy-install.pth file
10.10 Installing accelerate script to /usr/local/bin
10.10 Installing accelerate-config script to /usr/local/bin
10.10 Installing accelerate-estimate-memory script to /usr/local/bin
10.10 Installing accelerate-launch script to /usr/local/bin
10.10 Installing accelerate-merge-weights script to /usr/local/bin
10.10
10.10 Installed /usr/local/lib/python3.10/dist-packages/accelerate-1.0.1-py3.10.egg
10.12 Searching for tqdm>=4.27
10.12 Reading https://pypi.org/simple/tqdm/
11.30 Downloading https://files.pythonhosted.org/packages/41/73/02342de9c2d20922115f787e101527b831c0cffd2105c946c4a4826bcfd4/tqdm-4.66.6-py3-none-any.whl#sha256=223e8b5359c2efc4b30555531f09e9f2f3589bcd7fdd389271191031b49b7a63
11.40 Best match: tqdm 4.66.6
11.40 Processing tqdm-4.66.6-py3-none-any.whl
11.40 Installing tqdm-4.66.6-py3-none-any.whl to /usr/local/lib/python3.10/dist-packages
11.44 Adding tqdm 4.66.6 to easy-install.pth file
11.44 Installing tqdm script to /usr/local/bin
11.44
11.44 Installed /usr/local/lib/python3.10/dist-packages/tqdm-4.66.6-py3.10.egg
11.44 Searching for tokenizers<0.21,>=0.20
11.44 Reading https://pypi.org/simple/tokenizers/
28.62 Downloading https://files.pythonhosted.org/packages/4b/35/326b9642307a53b3d9ae145b5c7f157aae9ecaa930888f920124412e0bd2/tokenizers-0.20.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl#sha256=fc9e95ad49c932b80abfbfeaf63b155761e695ad9f8a58c52a47d962d76e310f
28.77 Best match: tokenizers 0.20.1
28.77 Processing tokenizers-0.20.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
28.77 Installing tokenizers-0.20.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl to /usr/local/lib/python3.10/dist-packages
28.84 Adding tokenizers 0.20.1 to easy-install.pth file
28.84
28.84 Installed /usr/local/lib/python3.10/dist-packages/tokenizers-0.20.1-py3.10-linux-x86_64.egg
28.85 Searching for safetensors>=0.4.1
28.85 Reading https://pypi.org/simple/safetensors/
40.41 Downloading https://files.pythonhosted.org/packages/b9/df/6f766b56690709d22e83836e4067a1109a7d84ea152a6deb5692743a2805/safetensors-0.4.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl#sha256=c6d156bdb26732feada84f9388a9f135528c1ef5b05fae153da365ad4319c4c5
40.49 Best match: safetensors 0.4.5
40.49 Processing safetensors-0.4.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
40.50 Installing safetensors-0.4.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl to /usr/local/lib/python3.10/dist-packages
40.55 Adding safetensors 0.4.5 to easy-install.pth file
40.55
40.55 Installed /usr/local/lib/python3.10/dist-packages/safetensors-0.4.5-py3.10-linux-x86_64.egg
40.57 Searching for regex!=2019.12.17
40.57 Reading https://pypi.org/simple/regex/
40.88 /usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 2013-02-16 is an invalid version and will not be supported in a future release
40.88   warnings.warn(
40.88 /usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 2013-02-23 is an invalid version and will not be supported in a future release
40.88   warnings.warn(
40.88 /usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 2013-03-11 is an invalid version and will not be supported in a future release
40.88   warnings.warn(
40.88 /usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 2013-05-21 is an invalid version and will not be supported in a future release
40.88   warnings.warn(
40.88 /usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 2013-06-05 is an invalid version and will not be supported in a future release
40.88   warnings.warn(
40.88 /usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 2013-06-26 is an invalid version and will not be supported in a future release
40.88   warnings.warn(
40.88 /usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 2013-08-04 is an invalid version and will not be supported in a future release
40.88   warnings.warn(
40.88 /usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 2013-10-04 is an invalid version and will not be supported in a future release
40.88   warnings.warn(
40.88 /usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 2013-10-12 is an invalid version and will not be supported in a future release
40.88   warnings.warn(
40.88 /usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 2013-10-21 is an invalid version and will not be supported in a future release
40.88   warnings.warn(
40.89 /usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 2013-10-22 is an invalid version and will not be supported in a future release
40.89   warnings.warn(
40.89 /usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 2013-10-23 is an invalid version and will not be supported in a future release
40.89   warnings.warn(
40.89 /usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 2013-10-24 is an invalid version and will not be supported in a future release
40.89   warnings.warn(
40.89 /usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 2013-10-25 is an invalid version and will not be supported in a future release
40.89   warnings.warn(
40.89 /usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 2013-10-26 is an invalid version and will not be supported in a future release
40.89   warnings.warn(
40.89 /usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 2013-11-29 is an invalid version and will not be supported in a future release
40.89   warnings.warn(
40.89 /usr/lib/python3/dist-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 2013-12-31 is an invalid version and will not be supported in a future release
40.89   warnings.warn(
72.01 Downloading https://files.pythonhosted.org/packages/f1/0b/29f2105bfac3ed08e704914c38e93b07c784a6655f8a015297ee7173e95b/regex-2024.9.11-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl#sha256=ced479f601cd2f8ca1fd7b23925a7e0ad512a56d6e9476f79b8f381d9d37090a
72.29 Best match: regex 2024.9.11
72.29 Processing regex-2024.9.11-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
72.30 Installing regex-2024.9.11-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl to /usr/local/lib/python3.10/dist-packages
72.32 Adding regex 2024.9.11 to easy-install.pth file
72.32
72.32 Installed /usr/local/lib/python3.10/dist-packages/regex-2024.9.11-py3.10-linux-x86_64.egg
72.32 Searching for pyyaml>=5.1
72.32 Reading https://pypi.org/simple/pyyaml/
75.10 Downloading https://files.pythonhosted.org/packages/6b/4e/1523cb902fd98355e2e9ea5e5eb237cbc5f3ad5f3075fa65087aa0ecb669/PyYAML-6.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl#sha256=ec031d5d2feb36d1d1a24380e4db6d43695f3748343d99434e6f5f9156aaa2ed
75.54 Best match: PyYAML 6.0.2
75.54 Processing PyYAML-6.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
75.54 Installing PyYAML-6.0.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl to /usr/local/lib/python3.10/dist-packages
75.57 Adding PyYAML 6.0.2 to easy-install.pth file
75.57
75.57 Installed /usr/local/lib/python3.10/dist-packages/PyYAML-6.0.2-py3.10-linux-x86_64.egg
75.57 Searching for packaging>=20.0
75.57 Reading https://pypi.org/simple/packaging/
76.05 Downloading https://files.pythonhosted.org/packages/08/aa/cc0199a5f0ad350994d660967a8efb233fe0416e4639146c089643407ce6/packaging-24.1-py3-none-any.whl#sha256=5b8f2217dbdbd2f7f384c41c628544e6d52f2d0f53c6d0c3ea61aa5d1d7ff124
76.08 Best match: packaging 24.1
76.08 Processing packaging-24.1-py3-none-any.whl
76.09 Installing packaging-24.1-py3-none-any.whl to /usr/local/lib/python3.10/dist-packages
76.10 Adding packaging 24.1 to easy-install.pth file
76.10
76.10 Installed /usr/local/lib/python3.10/dist-packages/packaging-24.1-py3.10.egg
76.10 Searching for huggingface-hub<1.0,>=0.23.2
76.10 Reading https://pypi.org/simple/huggingface-hub/
77.22 Downloading https://files.pythonhosted.org/packages/d7/4d/017d8d7cff5100092da8ea19139bcb1965bbadcbb5ddd0480e2badc299e8/huggingface_hub-0.26.1-py3-none-any.whl#sha256=5927a8fc64ae68859cd954b7cc29d1c8390a5e15caba6d3d349c973be8fdacf3
77.29 Best match: huggingface-hub 0.26.1
77.29 Processing huggingface_hub-0.26.1-py3-none-any.whl
77.29 Installing huggingface_hub-0.26.1-py3-none-any.whl to /usr/local/lib/python3.10/dist-packages
77.47 Adding huggingface-hub 0.26.1 to easy-install.pth file
77.47 Installing huggingface-cli script to /usr/local/bin
77.47
77.47 Installed /usr/local/lib/python3.10/dist-packages/huggingface_hub-0.26.1-py3.10.egg
77.50 Searching for termcolor
77.50 Reading https://pypi.org/simple/termcolor/
77.74 Downloading https://files.pythonhosted.org/packages/7f/be/df630c387a0a054815d60be6a97eb4e8f17385d5d6fe660e1c02750062b4/termcolor-2.5.0-py3-none-any.whl#sha256=37b17b5fc1e604945c2642c872a3764b5d547a48009871aea3edd3afa180afb8
77.77 Best match: termcolor 2.5.0
77.77 Processing termcolor-2.5.0-py3-none-any.whl
77.78 Installing termcolor-2.5.0-py3-none-any.whl to /usr/local/lib/python3.10/dist-packages
77.79 Adding termcolor 2.5.0 to easy-install.pth file
77.79
77.79 Installed /usr/local/lib/python3.10/dist-packages/termcolor-2.5.0-py3.10.egg
77.79 Searching for importlib-metadata
77.79 Reading https://pypi.org/simple/importlib-metadata/
78.83 Downloading https://files.pythonhosted.org/packages/a0/d9/a1e041c5e7caa9a05c925f4bdbdfb7f006d1f74996af53467bc394c97be7/importlib_metadata-8.5.0-py3-none-any.whl#sha256=45e54197d28b7a7f1559e60b95e7c567032b602131fbd588f1497f47880aa68b
78.86 Best match: importlib-metadata 8.5.0
78.86 Processing importlib_metadata-8.5.0-py3-none-any.whl
78.87 Installing importlib_metadata-8.5.0-py3-none-any.whl to /usr/local/lib/python3.10/dist-packages
78.90 Adding importlib-metadata 8.5.0 to easy-install.pth file
78.90
78.90 Installed /usr/local/lib/python3.10/dist-packages/importlib_metadata-8.5.0-py3.10.egg
78.93 Searching for psutil
78.93 Reading https://pypi.org/simple/psutil/
83.58 Downloading https://files.pythonhosted.org/packages/58/4d/8245e6f76a93c98aab285a43ea71ff1b171bcd90c9d238bf81f7021fb233/psutil-6.1.0-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl#sha256=498c6979f9c6637ebc3a73b3f87f9eb1ec24e1ce53a7c5173b8508981614a90b
83.65 Best match: psutil 6.1.0
83.65 Processing psutil-6.1.0-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
83.65 Installing psutil-6.1.0-cp36-abi3-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl to /usr/local/lib/python3.10/dist-packages
83.69 Adding psutil 6.1.0 to easy-install.pth file
83.69
83.69 Installed /usr/local/lib/python3.10/dist-packages/psutil-6.1.0-py3.10-linux-x86_64.egg
83.74 Searching for zipp>=3.20
83.74 Reading https://pypi.org/simple/zipp/
84.32 Downloading https://files.pythonhosted.org/packages/62/8b/5ba542fa83c90e09eac972fc9baca7a88e7e7ca4b221a89251954019308b/zipp-3.20.2-py3-none-any.whl#sha256=a817ac80d6cf4b23bf7f2828b7cabf326f15a001bea8b1f9b49631780ba28350
84.35 Best match: zipp 3.20.2
84.35 Processing zipp-3.20.2-py3-none-any.whl
84.36 Installing zipp-3.20.2-py3-none-any.whl to /usr/local/lib/python3.10/dist-packages
84.39 Adding zipp 3.20.2 to easy-install.pth file
84.39
84.39 Installed /usr/local/lib/python3.10/dist-packages/zipp-3.20.2-py3.10.egg
84.43 Searching for requests==2.28.1
84.43 Best match: requests 2.28.1
84.43 Adding requests 2.28.1 to easy-install.pth file
84.43
84.43 Using /usr/local/lib/python3.10/dist-packages
84.43 Searching for numpy==1.26.3
84.43 Best match: numpy 1.26.3
84.43 Adding numpy 1.26.3 to easy-install.pth file
84.43 Installing f2py script to /usr/local/bin
84.43
84.43 Using /usr/local/lib/python3.10/dist-packages
84.43 Searching for filelock==3.13.1
84.43 Best match: filelock 3.13.1
84.43 Adding filelock 3.13.1 to easy-install.pth file
84.43
84.43 Using /usr/local/lib/python3.10/dist-packages
84.44 Searching for pillow==10.2.0
84.44 Best match: pillow 10.2.0
84.44 Adding pillow 10.2.0 to easy-install.pth file
84.44
84.44 Using /usr/local/lib/python3.10/dist-packages
84.44 Searching for torch==2.1.0+cu118
84.44 Best match: torch 2.1.0+cu118
84.44 Adding torch 2.1.0+cu118 to easy-install.pth file
84.44 Installing convert-caffe2-to-onnx script to /usr/local/bin
84.44 Installing convert-onnx-to-caffe2 script to /usr/local/bin
84.44 Installing torchrun script to /usr/local/bin
84.44
84.44 Using /usr/local/lib/python3.10/dist-packages
84.44 Searching for charset-normalizer==2.1.1
84.44 Best match: charset-normalizer 2.1.1
84.44 Adding charset-normalizer 2.1.1 to easy-install.pth file
84.44 Installing normalizer script to /usr/local/bin
84.44
84.44 Using /usr/local/lib/python3.10/dist-packages
84.45 Searching for idna==3.4
84.45 Best match: idna 3.4
84.45 Adding idna 3.4 to easy-install.pth file
84.45
84.45 Using /usr/local/lib/python3.10/dist-packages
84.45 Searching for urllib3==1.26.13
84.45 Best match: urllib3 1.26.13
84.45 Adding urllib3 1.26.13 to easy-install.pth file
84.45
84.45 Using /usr/local/lib/python3.10/dist-packages
84.45 Searching for certifi==2022.12.7
84.45 Best match: certifi 2022.12.7
84.45 Adding certifi 2022.12.7 to easy-install.pth file
84.45
84.45 Using /usr/local/lib/python3.10/dist-packages
84.45 Searching for typing-extensions==4.9.0
84.45 Best match: typing-extensions 4.9.0
84.45 Adding typing-extensions 4.9.0 to easy-install.pth file
84.46
84.46 Using /usr/local/lib/python3.10/dist-packages
84.46 Searching for fsspec==2024.2.0
84.46 Best match: fsspec 2024.2.0
84.46 Adding fsspec 2024.2.0 to easy-install.pth file
84.46
84.46 Using /usr/local/lib/python3.10/dist-packages
84.46 Searching for networkx==3.2.1
84.46 Best match: networkx 3.2.1
84.46 Adding networkx 3.2.1 to easy-install.pth file
84.46
84.46 Using /usr/local/lib/python3.10/dist-packages
84.46 Searching for triton==2.1.0
84.46 Best match: triton 2.1.0
84.46 Adding triton 2.1.0 to easy-install.pth file
84.47
84.47 Using /usr/local/lib/python3.10/dist-packages
84.47 Searching for sympy==1.13.1
84.47 Best match: sympy 1.13.1
84.47 Adding sympy 1.13.1 to easy-install.pth file
84.47 Installing isympy script to /usr/local/bin
84.47
84.47 Using /usr/local/lib/python3.10/dist-packages
84.47 Searching for Jinja2==3.1.3
84.47 Best match: Jinja2 3.1.3
84.47 Adding Jinja2 3.1.3 to easy-install.pth file
84.47
84.47 Using /usr/local/lib/python3.10/dist-packages
84.47 Searching for mpmath==1.3.0
84.47 Best match: mpmath 1.3.0
84.47 Adding mpmath 1.3.0 to easy-install.pth file
84.47
84.47 Using /usr/local/lib/python3.10/dist-packages
84.48 Searching for MarkupSafe==2.1.5
84.48 Best match: MarkupSafe 2.1.5
84.48 Adding MarkupSafe 2.1.5 to easy-install.pth file
84.48
84.48 Using /usr/local/lib/python3.10/dist-packages
84.48 Finished processing dependencies for streamdiffusion==0.1.1
84.48 running easy_install
84.48 /usr/lib/python3/dist-packages/setuptools/command/easy_install.py:158: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
84.48   warnings.warn(
84.51 WARNING: The easy_install command is deprecated and will be removed in a future version.
84.51 Searching for streamdiffusion[tensorrt]
84.51 Best match: streamdiffusion 0.1.1
84.51 streamdiffusion 0.1.1 is already the active version in easy-install.pth
84.51
84.51 Using /streamdiffusion/src
84.51 Processing dependencies for streamdiffusion[tensorrt]
84.52 Searching for protobuf==3.20.2
84.52 Reading https://pypi.org/simple/protobuf/
98.33 Downloading https://files.pythonhosted.org/packages/8b/e6/2a47ce2eba1aaf287380a44270da897ada03d118a55c19595ec7b4f0831f/protobuf-3.20.2-py2.py3-none-any.whl#sha256=c9cdf251c582c16fd6a9f5e95836c90828d51b0069ad22f463761d27c6c19019
98.38 Best match: protobuf 3.20.2
98.38 Processing protobuf-3.20.2-py2.py3-none-any.whl
98.39 Installing protobuf-3.20.2-py2.py3-none-any.whl to /usr/local/lib/python3.10/dist-packages
98.41 Adding protobuf 3.20.2 to easy-install.pth file
98.42
98.42 Installed /usr/local/lib/python3.10/dist-packages/protobuf-3.20.2-py3.10.egg
98.42 Searching for onnxruntime==1.16.3
98.42 Reading https://pypi.org/simple/onnxruntime/
103.0 Downloading https://files.pythonhosted.org/packages/7a/cf/6aa8c56fd63f53c2c485921e411269c7b501a2b4e634bd02f226ab2d5d8e/onnxruntime-1.16.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl#sha256=ef2b1fc269cabd27f129fb9058917d6fdc89b188c49ed8700f300b945c81f889
104.0 Best match: onnxruntime 1.16.3
104.0 Processing onnxruntime-1.16.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
104.1 Installing onnxruntime-1.16.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl to /usr/local/lib/python3.10/dist-packages
104.2 Adding onnxruntime 1.16.3 to easy-install.pth file
104.2 Installing onnxruntime_test script to /usr/local/bin
104.2
104.2 Installed /usr/local/lib/python3.10/dist-packages/onnxruntime-1.16.3-py3.10-linux-x86_64.egg
104.2 Searching for onnx==1.15.0
104.2 Reading https://pypi.org/simple/onnx/
108.1 Downloading https://files.pythonhosted.org/packages/e6/74/522f651adbcd4b6d359b1a3e381185f8e1cd0ada8e9a97465a1990855dff/onnx-1.15.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl#sha256=96ed899fe6000edc05bb2828863d3841cfddd5a7cf04c1a771f112e94de75d9f
111.6 Best match: onnx 1.15.0
111.6 Processing onnx-1.15.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
111.6 Installing onnx-1.15.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl to /usr/local/lib/python3.10/dist-packages
113.6 Adding onnx 1.15.0 to easy-install.pth file
113.6 Installing backend-test-tools script to /usr/local/bin
113.6 Installing check-model script to /usr/local/bin
113.6 Installing check-node script to /usr/local/bin
113.6
113.6 Installed /usr/local/lib/python3.10/dist-packages/onnx-1.15.0-py3.10-linux-x86_64.egg
113.6 Searching for cuda-python
113.6 Reading https://pypi.org/simple/cuda-python/
115.2 Downloading https://files.pythonhosted.org/packages/86/93/f00a5f48eb67216d8a8818b93c0e8bbe5949f297add3367522081ec5223c/cuda_python-12.6.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl#sha256=e177f584094d9c9fd9c7d153168486a3966765c79cb2a80e86feb15e3b5adc14
122.0 Best match: cuda-python 12.6.0
122.0 Processing cuda_python-12.6.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
122.1 Installing cuda_python-12.6.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl to /usr/local/lib/python3.10/dist-packages
122.6 Adding cuda-python 12.6.0 to easy-install.pth file
122.6
122.6 Installed /usr/local/lib/python3.10/dist-packages/cuda_python-12.6.0-py3.10-linux-x86_64.egg
122.6 Searching for colored
122.6 Reading https://pypi.org/simple/colored/
122.8 Downloading https://files.pythonhosted.org/packages/75/d1/548f697f88872321525e294f8863efbdd1c313964b7f94e49ab0dc4f2895/colored-2.2.4-py3-none-any.whl#sha256=a7069673bd90a35f46cb748d012c17284a0668d2f1c06bc7a51822a2d5ad2112
122.9 Best match: colored 2.2.4
122.9 Processing colored-2.2.4-py3-none-any.whl
122.9 Installing colored-2.2.4-py3-none-any.whl to /usr/local/lib/python3.10/dist-packages
122.9 Adding colored 2.2.4 to easy-install.pth file
122.9
122.9 Installed /usr/local/lib/python3.10/dist-packages/colored-2.2.4-py3.10.egg
123.0 Searching for flatbuffers
123.0 Reading https://pypi.org/simple/flatbuffers/
123.1 Downloading https://files.pythonhosted.org/packages/41/f0/7e988a019bc54b2dbd0ad4182ef2d53488bb02e58694cd79d61369e85900/flatbuffers-24.3.25-py2.py3-none-any.whl#sha256=8dbdec58f935f3765e4f7f3cf635ac3a77f83568138d6a2311f524ec96364812
123.1 Best match: flatbuffers 24.3.25
123.1 Processing flatbuffers-24.3.25-py2.py3-none-any.whl
123.1 Installing flatbuffers-24.3.25-py2.py3-none-any.whl to /usr/local/lib/python3.10/dist-packages
123.2 Adding flatbuffers 24.3.25 to easy-install.pth file
123.2
123.2 Installed /usr/local/lib/python3.10/dist-packages/flatbuffers-24.3.25-py3.10.egg
123.2 Searching for coloredlogs
123.2 Reading https://pypi.org/simple/coloredlogs/
123.4 Downloading https://files.pythonhosted.org/packages/a7/06/3d6badcf13db419e25b07041d9c7b4a2c331d3f4e7134445ec5df57714cd/coloredlogs-15.0.1-py2.py3-none-any.whl#sha256=612ee75c546f53e92e70049c9dbfcc18c935a2b9a53b66085ce9ef6a6e5c0934
123.4 Best match: coloredlogs 15.0.1
123.4 Processing coloredlogs-15.0.1-py2.py3-none-any.whl
123.4 Installing coloredlogs-15.0.1-py2.py3-none-any.whl to /usr/local/lib/python3.10/dist-packages
123.4 Adding coloredlogs 15.0.1 to easy-install.pth file
123.4 Installing coloredlogs script to /usr/local/bin
123.4
123.4 Installed /usr/local/lib/python3.10/dist-packages/coloredlogs-15.0.1-py3.10.egg
123.5 Searching for humanfriendly>=9.1
123.5 Reading https://pypi.org/simple/humanfriendly/
124.1 Downloading https://files.pythonhosted.org/packages/f0/0f/310fb31e39e2d734ccaa2c0fb981ee41f7bd5056ce9bc29b2248bd569169/humanfriendly-10.0-py2.py3-none-any.whl#sha256=1697e1a8a8f550fd43c2865cd84542fc175a61dcb779b6fee18cf6b6ccba1477
124.1 Best match: humanfriendly 10.0
124.1 Processing humanfriendly-10.0-py2.py3-none-any.whl
124.1 Installing humanfriendly-10.0-py2.py3-none-any.whl to /usr/local/lib/python3.10/dist-packages
124.1 Adding humanfriendly 10.0 to easy-install.pth file
124.2 Installing humanfriendly script to /usr/local/bin
124.2
124.2 Installed /usr/local/lib/python3.10/dist-packages/humanfriendly-10.0-py3.10.egg
124.2 Finished processing dependencies for streamdiffusion[tensorrt]
126.0 Traceback (most recent call last):
126.0   File "/usr/lib/python3.10/runpy.py", line 187, in _run_module_as_main
126.0     mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
126.0   File "/usr/lib/python3.10/runpy.py", line 110, in _get_module_details
126.0     __import__(pkg_name)
126.0   File "/streamdiffusion/src/streamdiffusion/__init__.py", line 1, in <module>
126.0     from .pipeline import StreamDiffusion
126.0   File "/streamdiffusion/src/streamdiffusion/pipeline.py", line 7, in <module>
126.0     from diffusers import LCMScheduler, StableDiffusionPipeline
126.0   File "/usr/local/lib/python3.10/dist-packages/diffusers-0.24.0-py3.10.egg/diffusers/__init__.py", line 5, in <module>
126.0     from .utils import (
126.0   File "/usr/local/lib/python3.10/dist-packages/diffusers-0.24.0-py3.10.egg/diffusers/utils/__init__.py", line 38, in <module>
126.0     from .dynamic_modules_utils import get_class_from_dynamic_module
126.0   File "/usr/local/lib/python3.10/dist-packages/diffusers-0.24.0-py3.10.egg/diffusers/utils/dynamic_modules_utils.py", line 28, in <module>
126.0     from huggingface_hub import HfFolder, cached_download, hf_hub_download, model_info
126.0 ImportError: cannot import name 'cached_download' from 'huggingface_hub' (/usr/local/lib/python3.10/dist-packages/huggingface_hub-0.26.1-py3.10.egg/huggingface_hub/__init__.py)
------
Dockerfile:35
--------------------
  34 |
  35 | >>> RUN python setup.py develop easy_install streamdiffusion[tensorrt] \
  36 | >>>     && python -m streamdiffusion.tools.install-tensorrt
  37 |
--------------------
ERROR: failed to solve: process "/bin/sh -c python setup.py develop easy_install streamdiffusion[tensorrt]     && python -m streamdiffusion.tools.install-tensorrt" did not complete successfully: exit code: 1

I would appreciate any guidance on resolving this installation issue.

kidapu avatar Oct 28 '24 20:10 kidapu

This docker file works for me.

FROM nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04

ENV DEBIAN_FRONTEND=noninteractive PIP_PREFER_BINARY=1 \
        CUDA_HOME=/usr/local/cuda-11.8 TORCH_CUDA_ARCH_LIST="8.6"
RUN rm /bin/sh && ln -s /bin/bash /bin/sh

RUN apt-get update && apt-get install -y --no-install-recommends \
        make \
        wget \
        tar \
        build-essential \
        libgl1-mesa-dev \
        curl \
        unzip \
        git \
        python3-dev \
        python3-pip \
        libglib2.0-0 \
    && apt clean && rm -rf /var/lib/apt/lists/* \
    && ln -s /usr/bin/python3 /usr/bin/python

RUN echo "export PATH=/usr/local/cuda/bin:$PATH" >> /etc/bash.bashrc \
    && echo "export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH" >> /etc/bash.bashrc \
    && echo "export CUDA_HOME=/usr/local/cuda-11.8" >> /etc/bash.bashrc

RUN pip3 install \
    torch==2.1.0 \
    torchvision==0.16.0 \
    xformers \
    --index-url https://download.pytorch.org/whl/cu118


# Add this line
RUN pip install huggingface-hub==0.25.2

COPY . /streamdiffusion
WORKDIR /streamdiffusion

RUN python setup.py develop easy_install streamdiffusion[tensorrt] \
    && python -m streamdiffusion.tools.install-tensorrt

WORKDIR /home/ubuntu/streamdiffusion

kidapu avatar Oct 29 '24 01:10 kidapu

Had the same issue using the normal (non-docker) installation for users while installing the TensorRT extension:

python -m streamdiffusion.tools.install-tensorrt

Traceback (most recent call last):
  File "C:\Program Files\Python310\lib\runpy.py", line 187, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "C:\Program Files\Python310\lib\runpy.py", line 110, in _get_module_details
    __import__(pkg_name)
  File "C:\Users\USERNAME\Desktop\Workshop\Workflows\StreamDiffusion\StreamDiffusion\.venv\lib\site-packages\streamdiffusion\__init__.py", line 1, in <module>
    from .pipeline import StreamDiffusion
  File "C:\Users\USERNAME\Desktop\Workshop\Workflows\StreamDiffusion\StreamDiffusion\.venv\lib\site-packages\streamdiffusion\pipeline.py", line 7, in <module>
    from diffusers import LCMScheduler, StableDiffusionPipeline
  File "C:\Users\USERNAME\Desktop\Workshop\Workflows\StreamDiffusion\StreamDiffusion\.venv\lib\site-packages\diffusers\__init__.py", line 5, in <module>
    from .utils import (
  File "C:\Users\USERNAME\Desktop\Workshop\Workflows\StreamDiffusion\StreamDiffusion\.venv\lib\site-packages\diffusers\utils\__init__.py", line 38, in <module>
    from .dynamic_modules_utils import get_class_from_dynamic_module
  File "C:\Users\USERNAME\Desktop\Workshop\Workflows\StreamDiffusion\StreamDiffusion\.venv\lib\site-packages\diffusers\utils\dynamic_modules_utils.py", line 28, in <module>
    from huggingface_hub import HfFolder, cached_download, hf_hub_download, model_info
ImportError: cannot import name 'cached_download' from 'huggingface_hub' (C:\Users\USERNAME\Desktop\Workshop\Workflows\StreamDiffusion\StreamDiffusion\.venv\lib\site-packages\huggingface_hub\__init__.py)

Edit: Forgot to write that @kidapu's fix worked. Installing pip install huggingface-hub==0.25.2 before running the command seems to work.

LrsChrSch avatar Oct 29 '24 12:10 LrsChrSch

I had the same issue outside of Docker, and installing pip install huggingface-hub==0.25.2 before running python -m streamdiffusion.tools.install-tensorrt solved it for me

Wituz avatar Nov 14 '24 11:11 Wituz