nod-ai / SHARK

SHARK - High Performance Machine Learning Distribution
Apache License 2.0
1.41k stars 168 forks source link

ModuleNotFoundError: No module named 'torchvision' when starting web #703

Open baryluk opened 1 year ago

baryluk commented 1 year ago

@ 1595254eab22031d7367c32e1c98c8d7556746ae

user@debian:~$ git clone https://github.com/nod-ai/SHARK.git
Cloning into 'SHARK'...
remote: Enumerating objects: 7148, done.
remote: Counting objects: 100% (182/182), done.
remote: Compressing objects: 100% (75/75), done.
remote: Total 7148 (delta 123), reused 140 (delta 107), pack-reused 6966
Receiving objects: 100% (7148/7148), 41.39 MiB | 25.89 MiB/s, done.
Resolving deltas: 100% (4578/4578), done.
user@debian:~$ cd SHARK
user@debian:~/SHARK$ ./setup_venv.sh
Python: /usr/bin/python3
Python version: 3.10
Using pip venv.. Setting up venv dir: shark.venv
Linux detected
Requirement already satisfied: pip in ./shark.venv/lib/python3.10/site-packages (22.3.1)
Requirement already satisfied: setuptools in ./shark.venv/lib/python3.10/site-packages (from -r /home/user/SHARK/requirements.txt (line 1)) (65.5.0)
Collecting setuptools
  Downloading setuptools-65.6.3-py3-none-any.whl (1.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 19.3 MB/s eta 0:00:00
Collecting wheel
  Downloading wheel-0.38.4-py3-none-any.whl (36 kB)
Collecting pyinstaller
  Downloading pyinstaller-5.7.0-py3-none-manylinux2014_x86_64.whl (649 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 649.9/649.9 kB 32.7 MB/s eta 0:00:00
Collecting tqdm
  Downloading tqdm-4.64.1-py2.py3-none-any.whl (78 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 78.5/78.5 kB 42.2 MB/s eta 0:00:00
Collecting google-cloud-storage
  Downloading google_cloud_storage-2.7.0-py2.py3-none-any.whl (110 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 110.2/110.2 kB 65.5 MB/s eta 0:00:00
Collecting pytest
  Downloading pytest-7.2.0-py3-none-any.whl (316 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 316.8/316.8 kB 36.2 MB/s eta 0:00:00
Collecting pytest-xdist
  Downloading pytest_xdist-3.1.0-py3-none-any.whl (36 kB)
Collecting Pillow
  Downloading Pillow-9.3.0-cp310-cp310-manylinux_2_28_x86_64.whl (3.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.3/3.3 MB 35.9 MB/s eta 0:00:00
Collecting parameterized
  Downloading parameterized-0.8.1-py2.py3-none-any.whl (26 kB)
Collecting transformers
  Downloading transformers-4.25.1-py3-none-any.whl (5.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.8/5.8 MB 81.4 MB/s eta 0:00:00
Collecting diffusers
  Downloading diffusers-0.11.1-py3-none-any.whl (524 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 524.9/524.9 kB 121.5 MB/s eta 0:00:00
Collecting scipy
  Downloading scipy-1.9.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (33.7 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 33.7/33.7 MB 88.2 MB/s eta 0:00:00
Collecting ftfy
  Downloading ftfy-6.1.1-py3-none-any.whl (53 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 53.1/53.1 kB 27.0 MB/s eta 0:00:00
Collecting gradio
  Downloading gradio-3.15.0-py3-none-any.whl (13.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 13.8/13.8 MB 121.8 MB/s eta 0:00:00
Collecting altair
  Downloading altair-4.2.0-py3-none-any.whl (812 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 812.8/812.8 kB 134.8 MB/s eta 0:00:00
Collecting altgraph
  Downloading altgraph-0.17.3-py2.py3-none-any.whl (21 kB)
Collecting pyinstaller-hooks-contrib>=2021.4
  Downloading pyinstaller_hooks_contrib-2022.14-py2.py3-none-any.whl (252 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 252.6/252.6 kB 100.1 MB/s eta 0:00:00
Collecting google-resumable-media>=2.3.2
  Downloading google_resumable_media-2.4.0-py2.py3-none-any.whl (77 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 77.4/77.4 kB 49.1 MB/s eta 0:00:00
Collecting google-api-core!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.0,<3.0.0dev,>=1.31.5
  Downloading google_api_core-2.11.0-py3-none-any.whl (120 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 120.3/120.3 kB 72.9 MB/s eta 0:00:00
Collecting google-auth<3.0dev,>=1.25.0
  Downloading google_auth-2.15.0-py2.py3-none-any.whl (177 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 177.0/177.0 kB 89.7 MB/s eta 0:00:00
Collecting requests<3.0.0dev,>=2.18.0
  Downloading requests-2.28.1-py3-none-any.whl (62 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.8/62.8 kB 52.1 MB/s eta 0:00:00
Collecting google-cloud-core<3.0dev,>=2.3.0
  Downloading google_cloud_core-2.3.2-py2.py3-none-any.whl (29 kB)
Collecting pluggy<2.0,>=0.12
  Downloading pluggy-1.0.0-py2.py3-none-any.whl (13 kB)
Collecting attrs>=19.2.0
  Downloading attrs-22.2.0-py3-none-any.whl (60 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.0/60.0 kB 51.1 MB/s eta 0:00:00
Collecting packaging
  Downloading packaging-22.0-py3-none-any.whl (42 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 42.6/42.6 kB 26.0 MB/s eta 0:00:00
Collecting tomli>=1.0.0
  Downloading tomli-2.0.1-py3-none-any.whl (12 kB)
Collecting iniconfig
  Downloading iniconfig-1.1.1-py2.py3-none-any.whl (5.0 kB)
Collecting exceptiongroup>=1.0.0rc8
  Downloading exceptiongroup-1.0.4-py3-none-any.whl (14 kB)
Collecting execnet>=1.1
  Downloading execnet-1.9.0-py2.py3-none-any.whl (39 kB)
Collecting regex!=2019.12.17
  Downloading regex-2022.10.31-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (770 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 770.5/770.5 kB 133.7 MB/s eta 0:00:00
Collecting huggingface-hub<1.0,>=0.10.0
  Downloading huggingface_hub-0.11.1-py3-none-any.whl (182 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 182.4/182.4 kB 94.6 MB/s eta 0:00:00
Collecting pyyaml>=5.1
  Downloading PyYAML-6.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (682 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 682.2/682.2 kB 118.6 MB/s eta 0:00:00
Collecting numpy>=1.17
  Downloading numpy-1.24.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 17.3/17.3 MB 114.4 MB/s eta 0:00:00
Collecting filelock
  Downloading filelock-3.8.2-py3-none-any.whl (10 kB)
Collecting tokenizers!=0.11.3,<0.14,>=0.11.1
  Downloading tokenizers-0.13.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.6 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.6/7.6 MB 88.4 MB/s eta 0:00:00
Collecting importlib-metadata
  Downloading importlib_metadata-5.2.0-py3-none-any.whl (21 kB)
Collecting wcwidth>=0.2.5
  Downloading wcwidth-0.2.5-py2.py3-none-any.whl (30 kB)
Collecting pydub
  Downloading pydub-0.25.1-py2.py3-none-any.whl (32 kB)
Collecting markupsafe
  Downloading MarkupSafe-2.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25 kB)
Collecting python-multipart
  Downloading python-multipart-0.0.5.tar.gz (32 kB)
  Preparing metadata (setup.py) ... done
Collecting aiohttp
  Downloading aiohttp-3.8.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.0/1.0 MB 132.8 MB/s eta 0:00:00
Collecting pycryptodome
  Downloading pycryptodome-3.16.0-cp35-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl (2.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.3/2.3 MB 128.9 MB/s eta 0:00:00
Collecting matplotlib
  Downloading matplotlib-3.6.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.8/11.8 MB 84.3 MB/s eta 0:00:00
Collecting uvicorn
  Downloading uvicorn-0.20.0-py3-none-any.whl (56 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 56.9/56.9 kB 32.5 MB/s eta 0:00:00
Collecting orjson
  Downloading orjson-3.8.3-cp310-cp310-manylinux_2_28_x86_64.whl (144 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 144.9/144.9 kB 80.0 MB/s eta 0:00:00
Collecting jinja2
  Downloading Jinja2-3.1.2-py3-none-any.whl (133 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 133.1/133.1 kB 75.9 MB/s eta 0:00:00
Collecting fastapi
  Downloading fastapi-0.88.0-py3-none-any.whl (55 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 55.5/55.5 kB 24.5 MB/s eta 0:00:00
Collecting pandas
  Downloading pandas-1.5.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.1/12.1 MB 127.9 MB/s eta 0:00:00
Collecting ffmpy
  Downloading ffmpy-0.3.0.tar.gz (4.8 kB)
  Preparing metadata (setup.py) ... done
Collecting fsspec
  Downloading fsspec-2022.11.0-py3-none-any.whl (139 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 139.5/139.5 kB 75.5 MB/s eta 0:00:00
Collecting websockets>=10.0
  Downloading websockets-10.4-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (106 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 106.8/106.8 kB 67.7 MB/s eta 0:00:00
Collecting httpx
  Downloading httpx-0.23.1-py3-none-any.whl (84 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 85.0/85.0 kB 42.4 MB/s eta 0:00:00
Collecting markdown-it-py[linkify,plugins]
  Downloading markdown_it_py-2.1.0-py3-none-any.whl (84 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 84.5/84.5 kB 57.6 MB/s eta 0:00:00
Collecting pydantic
  Downloading pydantic-1.10.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.8 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.8/12.8 MB 131.0 MB/s eta 0:00:00
Collecting jsonschema>=3.0
  Downloading jsonschema-4.17.3-py3-none-any.whl (90 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 90.4/90.4 kB 35.5 MB/s eta 0:00:00
Collecting toolz
  Downloading toolz-0.12.0-py3-none-any.whl (55 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 55.8/55.8 kB 44.5 MB/s eta 0:00:00
Collecting entrypoints
  Downloading entrypoints-0.4-py3-none-any.whl (5.3 kB)
Collecting protobuf!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0dev,>=3.19.5
  Downloading protobuf-4.21.12-cp37-abi3-manylinux2014_x86_64.whl (409 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 409.8/409.8 kB 120.9 MB/s eta 0:00:00
Collecting googleapis-common-protos<2.0dev,>=1.56.2
  Downloading googleapis_common_protos-1.57.0-py2.py3-none-any.whl (217 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 218.0/218.0 kB 73.8 MB/s eta 0:00:00
Collecting pyasn1-modules>=0.2.1
  Downloading pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 155.3/155.3 kB 36.6 MB/s eta 0:00:00
Collecting rsa<5,>=3.1.4
  Downloading rsa-4.9-py3-none-any.whl (34 kB)
Collecting six>=1.9.0
  Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting cachetools<6.0,>=2.0.0
  Downloading cachetools-5.2.0-py3-none-any.whl (9.3 kB)
Collecting google-crc32c<2.0dev,>=1.0
  Downloading google_crc32c-1.5.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (32 kB)
Collecting typing-extensions>=3.7.4.3
  Downloading typing_extensions-4.4.0-py3-none-any.whl (26 kB)
Collecting pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0
  Downloading pyrsistent-0.19.2-py3-none-any.whl (57 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 57.5/57.5 kB 36.8 MB/s eta 0:00:00
Collecting python-dateutil>=2.8.1
  Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 247.7/247.7 kB 85.4 MB/s eta 0:00:00
Collecting pytz>=2020.1
  Downloading pytz-2022.7-py2.py3-none-any.whl (499 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 499.4/499.4 kB 117.5 MB/s eta 0:00:00
Collecting urllib3<1.27,>=1.21.1
  Downloading urllib3-1.26.13-py2.py3-none-any.whl (140 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 140.6/140.6 kB 81.8 MB/s eta 0:00:00
Collecting charset-normalizer<3,>=2
  Downloading charset_normalizer-2.1.1-py3-none-any.whl (39 kB)
Collecting certifi>=2017.4.17
  Downloading certifi-2022.12.7-py3-none-any.whl (155 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 155.3/155.3 kB 87.2 MB/s eta 0:00:00
Collecting idna<4,>=2.5
  Downloading idna-3.4-py3-none-any.whl (61 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.5/61.5 kB 39.9 MB/s eta 0:00:00
Collecting frozenlist>=1.1.1
  Downloading frozenlist-1.3.3-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (149 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 149.6/149.6 kB 67.6 MB/s eta 0:00:00
Collecting multidict<7.0,>=4.5
  Downloading multidict-6.0.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (114 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 114.5/114.5 kB 40.6 MB/s eta 0:00:00
Collecting yarl<2.0,>=1.0
  Downloading yarl-1.8.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (264 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 264.0/264.0 kB 103.1 MB/s eta 0:00:00
Collecting aiosignal>=1.1.2
  Downloading aiosignal-1.3.1-py3-none-any.whl (7.6 kB)
Collecting async-timeout<5.0,>=4.0.0a3
  Downloading async_timeout-4.0.2-py3-none-any.whl (5.8 kB)
Collecting starlette==0.22.0
  Downloading starlette-0.22.0-py3-none-any.whl (64 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 64.3/64.3 kB 47.7 MB/s eta 0:00:00
Collecting anyio<5,>=3.4.0
  Downloading anyio-3.6.2-py3-none-any.whl (80 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 80.6/80.6 kB 61.3 MB/s eta 0:00:00
Collecting rfc3986[idna2008]<2,>=1.3
  Downloading rfc3986-1.5.0-py2.py3-none-any.whl (31 kB)
Collecting sniffio
  Downloading sniffio-1.3.0-py3-none-any.whl (10 kB)
Collecting httpcore<0.17.0,>=0.15.0
  Downloading httpcore-0.16.3-py3-none-any.whl (69 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 69.6/69.6 kB 26.9 MB/s eta 0:00:00
Collecting zipp>=0.5
  Downloading zipp-3.11.0-py3-none-any.whl (6.6 kB)
Collecting mdurl~=0.1
  Downloading mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Collecting mdit-py-plugins
  Downloading mdit_py_plugins-0.3.3-py3-none-any.whl (50 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 50.5/50.5 kB 40.4 MB/s eta 0:00:00
Collecting linkify-it-py~=1.0
  Downloading linkify_it_py-1.0.3-py3-none-any.whl (19 kB)
Collecting kiwisolver>=1.0.1
  Downloading kiwisolver-1.4.4-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.6 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.6/1.6 MB 141.1 MB/s eta 0:00:00
Collecting pyparsing>=2.2.1
  Downloading pyparsing-3.0.9-py3-none-any.whl (98 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 98.3/98.3 kB 51.7 MB/s eta 0:00:00
Collecting cycler>=0.10
  Downloading cycler-0.11.0-py3-none-any.whl (6.4 kB)
Collecting contourpy>=1.0.1
  Downloading contourpy-1.0.6-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (296 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 296.1/296.1 kB 112.5 MB/s eta 0:00:00
Collecting fonttools>=4.22.0
  Downloading fonttools-4.38.0-py3-none-any.whl (965 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 965.4/965.4 kB 136.9 MB/s eta 0:00:00
Collecting click>=7.0
  Downloading click-8.1.3-py3-none-any.whl (96 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 96.6/96.6 kB 55.6 MB/s eta 0:00:00
Collecting h11>=0.8
  Downloading h11-0.14.0-py3-none-any.whl (58 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.3/58.3 kB 46.9 MB/s eta 0:00:00
Collecting uc-micro-py
  Downloading uc_micro_py-1.0.1-py3-none-any.whl (6.2 kB)
Collecting pyasn1<0.5.0,>=0.4.6
  Downloading pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 77.1/77.1 kB 57.8 MB/s eta 0:00:00
Installing collected packages: wcwidth, tokenizers, rfc3986, pytz, pydub, pyasn1, parameterized, iniconfig, ffmpy, altgraph, zipp, wheel, websockets, urllib3, uc-micro-py, typing-extensions, tqdm, toolz, tomli, sniffio, six, setuptools, rsa, regex, pyyaml, pyrsistent, pyparsing, pyinstaller-hooks-contrib, pycryptodome, pyasn1-modules, protobuf, pluggy, Pillow, packaging, orjson, numpy, multidict, mdurl, markupsafe, kiwisolver, idna, h11, google-crc32c, ftfy, fsspec, frozenlist, fonttools, filelock, execnet, exceptiongroup, entrypoints, cycler, click, charset-normalizer, certifi, cachetools, attrs, async-timeout, yarl, uvicorn, scipy, requests, python-multipart, python-dateutil, pytest, pyinstaller, pydantic, markdown-it-py, linkify-it-py, jsonschema, jinja2, importlib-metadata, googleapis-common-protos, google-resumable-media, google-auth, contourpy, anyio, aiosignal, starlette, pytest-xdist, pandas, mdit-py-plugins, matplotlib, huggingface-hub, httpcore, google-api-core, aiohttp, transformers, httpx, google-cloud-core, fastapi, diffusers, altair, gradio, google-cloud-storage
  DEPRECATION: ffmpy is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
  Running setup.py install for ffmpy ... done
  Attempting uninstall: setuptools
    Found existing installation: setuptools 65.5.0
    Uninstalling setuptools-65.5.0:
      Successfully uninstalled setuptools-65.5.0
  DEPRECATION: python-multipart is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
  Running setup.py install for python-multipart ... done
Successfully installed Pillow-9.3.0 aiohttp-3.8.3 aiosignal-1.3.1 altair-4.2.0 altgraph-0.17.3 anyio-3.6.2 async-timeout-4.0.2 attrs-22.2.0 cachetools-5.2.0 certifi-2022.12.7 charset-normalizer-2.1.1 click-8.1.3 contourpy-1.0.6 cycler-0.11.0 diffusers-0.11.1 entrypoints-0.4 exceptiongroup-1.0.4 execnet-1.9.0 fastapi-0.88.0 ffmpy-0.3.0 filelock-3.8.2 fonttools-4.38.0 frozenlist-1.3.3 fsspec-2022.11.0 ftfy-6.1.1 google-api-core-2.11.0 google-auth-2.15.0 google-cloud-core-2.3.2 google-cloud-storage-2.7.0 google-crc32c-1.5.0 google-resumable-media-2.4.0 googleapis-common-protos-1.57.0 gradio-3.15.0 h11-0.14.0 httpcore-0.16.3 httpx-0.23.1 huggingface-hub-0.11.1 idna-3.4 importlib-metadata-5.2.0 iniconfig-1.1.1 jinja2-3.1.2 jsonschema-4.17.3 kiwisolver-1.4.4 linkify-it-py-1.0.3 markdown-it-py-2.1.0 markupsafe-2.1.1 matplotlib-3.6.2 mdit-py-plugins-0.3.3 mdurl-0.1.2 multidict-6.0.3 numpy-1.24.0 orjson-3.8.3 packaging-22.0 pandas-1.5.2 parameterized-0.8.1 pluggy-1.0.0 protobuf-4.21.12 pyasn1-0.4.8 pyasn1-modules-0.2.8 pycryptodome-3.16.0 pydantic-1.10.2 pydub-0.25.1 pyinstaller-5.7.0 pyinstaller-hooks-contrib-2022.14 pyparsing-3.0.9 pyrsistent-0.19.2 pytest-7.2.0 pytest-xdist-3.1.0 python-dateutil-2.8.2 python-multipart-0.0.5 pytz-2022.7 pyyaml-6.0 regex-2022.10.31 requests-2.28.1 rfc3986-1.5.0 rsa-4.9 scipy-1.9.3 setuptools-65.6.3 six-1.16.0 sniffio-1.3.0 starlette-0.22.0 tokenizers-0.13.2 tomli-2.0.1 toolz-0.12.0 tqdm-4.64.1 transformers-4.25.1 typing-extensions-4.4.0 uc-micro-py-1.0.1 urllib3-1.26.13 uvicorn-0.20.0 wcwidth-0.2.5 websockets-10.4 wheel-0.38.4 yarl-1.8.2 zipp-3.11.0
Looking in links: https://llvm.github.io/torch-mlir/package-index/
Collecting torch-mlir
  Downloading https://github.com/llvm/torch-mlir/releases/download/snapshot-20221221.694/torch_mlir-20221221.694-cp310-cp310-linux_x86_64.whl (40.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 40.2/40.2 MB 29.2 MB/s eta 0:00:00
Requirement already satisfied: numpy in ./shark.venv/lib/python3.10/site-packages (from torch-mlir) (1.24.0)
Collecting torch==2.0.0.dev20221220
  Downloading https://github.com/llvm/torch-mlir/releases/download/snapshot-20221221.694/torch-2.0.0.dev20221220%2Bcpu-cp310-cp310-linux_x86_64.whl (193.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 193.9/193.9 MB 6.3 MB/s eta 0:00:00
Requirement already satisfied: typing-extensions in ./shark.venv/lib/python3.10/site-packages (from torch==2.0.0.dev20221220->torch-mlir) (4.4.0)
Collecting networkx
  Downloading networkx-3.0rc1-py3-none-any.whl (2.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.0/2.0 MB 18.4 MB/s eta 0:00:00
Collecting sympy
  Downloading sympy-1.11.1-py3-none-any.whl (6.5 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.5/6.5 MB 29.4 MB/s eta 0:00:00
Collecting mpmath>=0.19
  Downloading mpmath-1.2.1-py3-none-any.whl (532 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 532.6/532.6 kB 33.5 MB/s eta 0:00:00
Installing collected packages: mpmath, sympy, networkx, torch, torch-mlir
Successfully installed mpmath-1.2.1 networkx-3.0rc1 sympy-1.11.1 torch-2.0.0.dev20221220+cpu torch-mlir-20221221.694
Successfully Installed torch-mlir
rm: cannot remove '.use-iree': No such file or directory
Installing https://nod-ai.github.io/SHARK-Runtime/pip-release-links.html...
Looking in links: https://nod-ai.github.io/SHARK-Runtime/pip-release-links.html
Collecting iree-compiler
  Downloading https://github.com/nod-ai/SHARK-Runtime/releases/download/candidate-20221220.249/iree_compiler-20221220.249-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (55.6 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 55.6/55.6 MB 17.8 MB/s eta 0:00:00
Collecting iree-runtime
  Downloading https://github.com/nod-ai/SHARK-Runtime/releases/download/candidate-20221220.249/iree_runtime-20221220.249-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.3 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.3/2.3 MB 22.5 MB/s eta 0:00:00
Requirement already satisfied: numpy in ./shark.venv/lib/python3.10/site-packages (from iree-compiler) (1.24.0)
Requirement already satisfied: PyYAML in ./shark.venv/lib/python3.10/site-packages (from iree-compiler) (6.0)
Installing collected packages: iree-runtime, iree-compiler
Successfully installed iree-compiler-20221220.249 iree-runtime-20221220.249
Looking in links: https://llvm.github.io/torch-mlir/package-index/, https://nod-ai.github.io/SHARK-Runtime/pip-release-links.html, https://download.pytorch.org/whl/nightly/torch/
Obtaining file:///home/user/SHARK
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... done
  Preparing editable metadata (pyproject.toml) ... done
Requirement already satisfied: PyYAML in ./shark.venv/lib/python3.10/site-packages (from nodai-SHARK==0.0.4) (6.0)
Requirement already satisfied: numpy in ./shark.venv/lib/python3.10/site-packages (from nodai-SHARK==0.0.4) (1.24.0)
Requirement already satisfied: torch-mlir>=20221021.633 in ./shark.venv/lib/python3.10/site-packages (from nodai-SHARK==0.0.4) (20221221.694)
Requirement already satisfied: torch==2.0.0.dev20221220 in ./shark.venv/lib/python3.10/site-packages (from torch-mlir>=20221021.633->nodai-SHARK==0.0.4) (2.0.0.dev20221220+cpu)
Requirement already satisfied: typing-extensions in ./shark.venv/lib/python3.10/site-packages (from torch==2.0.0.dev20221220->torch-mlir>=20221021.633->nodai-SHARK==0.0.4) (4.4.0)
Requirement already satisfied: sympy in ./shark.venv/lib/python3.10/site-packages (from torch==2.0.0.dev20221220->torch-mlir>=20221021.633->nodai-SHARK==0.0.4) (1.11.1)
Requirement already satisfied: networkx in ./shark.venv/lib/python3.10/site-packages (from torch==2.0.0.dev20221220->torch-mlir>=20221021.633->nodai-SHARK==0.0.4) (3.0rc1)
Requirement already satisfied: mpmath>=0.19 in ./shark.venv/lib/python3.10/site-packages (from sympy->torch==2.0.0.dev20221220->torch-mlir>=20221021.633->nodai-SHARK==0.0.4) (1.2.1)
Building wheels for collected packages: nodai-SHARK
  Building editable for nodai-SHARK (pyproject.toml) ... done
  Created wheel for nodai-SHARK: filename=nodai_SHARK-0.0.4-0.editable-py3-none-any.whl size=11852 sha256=487dc45db7c78bf0cef57c292d2fed31f5cde60629d0205afab6a67c21099c34
  Stored in directory: /tmp/pip-ephem-wheel-cache-kgq_o3h1/wheels/2d/fd/81/7e26f89601d2a577687e8d2f19d2c5bdef94789c6746ca3ec9
Successfully built nodai-SHARK
Installing collected packages: nodai-SHARK
Successfully installed nodai-SHARK-0.0.4
Before running examples activate venv with:
  source shark.venv/bin/activate
user@debian:~/SHARK$ source shark.venv/bin/activate
(shark.venv) user@debian:~/SHARK$ cd web
(shark.venv) user@debian:~/SHARK/web$ python index.py
Traceback (most recent call last):
  File "/home/user/SHARK/web/index.py", line 6, in <module>
    from models.stable_diffusion.main import stable_diff_inf
  File "/home/user/SHARK/web/models/stable_diffusion/main.py", line 3, in <module>
    import torchvision.transforms as T
ModuleNotFoundError: No module named 'torchvision'
(shark.venv) user@debian:~/SHARK/web$ 
toasterboirando commented 1 year ago

do a cd to your shark directory and then pip install torchvision its no longer throwing the tv error for me however (i) now get cannot import name 'DPMSolverMultistepScheduler' from 'diffusers' (C:\Users\AppData\Local\Programs\Python\Python39\lib\site-packages\diffusers__init__.py)

averad commented 1 year ago

What is the output of diffusers-cli env

Fuzzillogic commented 1 year ago

I just had same issue. Fresh, first-time install on Kubuntu 22.10

$ python index.py
Traceback (most recent call last):
  File "/home/user/SHARK/web/index.py", line 5, in <module>
    from models.stable_diffusion.main import stable_diff_inf
  File "/home/user/SHARK/web/models/stable_diffusion/main.py", line 4, in <module>
    import torchvision.transforms as T
ModuleNotFoundError: No module named 'torchvision'
(shark.venv) pc:~/SHARK/web$ cd ..
(shark.venv) pc:~/SHARK$ pip install torchvision
Collecting torchvision

It finally threw an error:

Attempting uninstall: torch
    Found existing installation: torch 2.0.0.dev20221221+cpu
    Uninstalling torch-2.0.0.dev20221221+cpu:
      Successfully uninstalled torch-2.0.0.dev20221221+cpu
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
torch-mlir 20221222.695 requires torch==2.0.0.dev20221221, but you have torch 1.13.1 which is incompatible.

However, when retrying $ python index.py it did work regardless. So, successful despite error.

$ diffusers-cli env:

gnusenpai commented 1 year ago

I was able to get the webui to run with torchvision installed via:

$ pip install --pre torchvision --extra-index-url https://download.pytorch.org/whl/nightly/cpu
Looking in indexes: https://pypi.org/simple, https://download.pytorch.org/whl/nightly/cpu
Collecting torchvision
  Downloading https://download.pytorch.org/whl/nightly/cpu/torchvision-0.15.0.dev20221226%2Bcpu-cp310-cp310-linux_x86_64.whl (1.6 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.6/1.6 MB 3.9 MB/s eta 0:00:00
Requirement already satisfied: pillow!=8.3.*,>=5.3.0 in ./shark.venv/lib/python3.10/site-packages (from torchvision) (9.3.0)
Requirement already satisfied: torch in ./shark.venv/lib/python3.10/site-packages (from torchvision) (2.0.0.dev20221222+cpu)
Requirement already satisfied: requests in ./shark.venv/lib/python3.10/site-packages (from torchvision) (2.28.1)
Requirement already satisfied: numpy in ./shark.venv/lib/python3.10/site-packages (from torchvision) (1.24.1)
Requirement already satisfied: typing-extensions in ./shark.venv/lib/python3.10/site-packages (from torchvision) (4.4.0)
Requirement already satisfied: idna<4,>=2.5 in ./shark.venv/lib/python3.10/site-packages (from requests->torchvision) (3.4)
Requirement already satisfied: charset-normalizer<3,>=2 in ./shark.venv/lib/python3.10/site-packages (from requests->torchvision) (2.1.1)
Requirement already satisfied: certifi>=2017.4.17 in ./shark.venv/lib/python3.10/site-packages (from requests->torchvision) (2022.12.7)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./shark.venv/lib/python3.10/site-packages (from requests->torchvision) (1.26.13)
Requirement already satisfied: networkx in ./shark.venv/lib/python3.10/site-packages (from torch->torchvision) (3.0rc1)
Requirement already satisfied: sympy in ./shark.venv/lib/python3.10/site-packages (from torch->torchvision) (1.11.1)
Requirement already satisfied: mpmath>=0.19 in ./shark.venv/lib/python3.10/site-packages (from sympy->torch->torchvision) (1.2.1)
Installing collected packages: torchvision
Successfully installed torchvision-0.15.0.dev20221226+cpu

This nightly version keeps the default torch installed by the setup_venv.sh script. The images I'm able to generate are just black, but that's very likely a separate issue.

m68k-fr commented 1 year ago

Same problem for me on Windows10 using a RX6800XT. I was able to manually fix it thanks to @gnusenpai

pip install --pre torchvision --extra-index-url https://download.pytorch.org/whl/nightly/cpu