Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'apps' #2115

Open
Striker770 opened this issue Apr 11, 2024 · 16 comments
Open

ModuleNotFoundError: No module named 'apps' #2115

Striker770 opened this issue Apr 11, 2024 · 16 comments

Comments

@Striker770
Copy link

Hello,

So, after installing the whole thing on Apple Macmini M1, i get the following error:

test@tests-Mac-mini ~ % cd SHARK test@tests-Mac-mini SHARK % source shark1.venv/bin/activate (shark1.venv) test@tests-Mac-mini SHARK % cd apps/stable_diffusion/web (shark1.venv) test@tests-Mac-mini web % python index.py Traceback (most recent call last): File "/Users/test/SHARK/apps/stable_diffusion/web/index.py", line 5, in <module> import apps.stable_diffusion.web.utils.app as app ModuleNotFoundError: No module named 'apps' (shark1.venv) test@tests-Mac-mini web %

Does anyone has clue about this?

Running macOS Sonoma.

Thanks

@Striker770
Copy link
Author

@powderluv Any suggestions?

@gpetters94
Copy link
Contributor

gpetters94 commented Apr 16, 2024

@Striker770 This usually means your python path doesn't contain the current directory. Try running pip install -e . and see if that fixes things.

@Striker770
Copy link
Author

@Striker770 This usually means your python path doesn't contain the current directory. Try running pip install -e . and see if that fixes things.

Just saw the comment today and tried it and it still fails. Having the same issue. I even given it the SHARK, Web, index.py path but the error persists.

test@tests-Mac-mini ~ % cd SHARK test@tests-Mac-mini SHARK % source shark1.venv/bin/activate (shark1.venv) test@tests-Mac-mini SHARK % cd apps/stable_diffusion/web (shark1.venv) test@tests-Mac-mini web % python index.py Traceback (most recent call last): File "/Users/test/SHARK/apps/stable_diffusion/web/index.py", line 5, in <module> import apps.stable_diffusion.web.utils.app as app ModuleNotFoundError: No module named 'apps' (shark1.venv) test@tests-Mac-mini web %

How do i fix this?

@gpetters94
Copy link
Contributor

@Striker770 This usually means your python path doesn't contain the current directory. Try running pip install -e . and see if that fixes things.

Just saw the comment today and tried it and it still fails. Having the same issue. I even given it the SHARK, Web, index.py path but the error persists.

test@tests-Mac-mini ~ % cd SHARK test@tests-Mac-mini SHARK % source shark1.venv/bin/activate (shark1.venv) test@tests-Mac-mini SHARK % cd apps/stable_diffusion/web (shark1.venv) test@tests-Mac-mini web % python index.py Traceback (most recent call last): File "/Users/test/SHARK/apps/stable_diffusion/web/index.py", line 5, in <module> import apps.stable_diffusion.web.utils.app as app ModuleNotFoundError: No module named 'apps' (shark1.venv) test@tests-Mac-mini web %

How do i fix this?

So just to be clear, running

cd SHARK
source shark1.venv/bin/activate
pip install -e .
python apps/stable_diffusion/web/index.py

Causes the same error?

@Striker770
Copy link
Author

@Striker770 This usually means your python path doesn't contain the current directory. Try running pip install -e . and see if that fixes things.

Just saw the comment today and tried it and it still fails. Having the same issue. I even given it the SHARK, Web, index.py path but the error persists.
test@tests-Mac-mini ~ % cd SHARK test@tests-Mac-mini SHARK % source shark1.venv/bin/activate (shark1.venv) test@tests-Mac-mini SHARK % cd apps/stable_diffusion/web (shark1.venv) test@tests-Mac-mini web % python index.py Traceback (most recent call last): File "/Users/test/SHARK/apps/stable_diffusion/web/index.py", line 5, in <module> import apps.stable_diffusion.web.utils.app as app ModuleNotFoundError: No module named 'apps' (shark1.venv) test@tests-Mac-mini web %
How do i fix this?

So just to be clear, running

cd SHARK
source shark1.venv/bin/activate
pip install -e .
python apps/stable_diffusion/web/index.py

Causes the same error?

Let me check and report

@Striker770
Copy link
Author

Striker770 commented Apr 26, 2024

@gpetters94

Tried the command you gave and it shows the following error

`Before running examples activate venv with:
source shark1.venv/bin/activate
test@tests-Mac-mini SHARK % source shark1.venv/bin/activate
(shark1.venv) test@tests-Mac-mini SHARK % pip install -e .
Obtaining file:///Users/test/SHARK
Installing build dependencies ... error
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [11 lines of output]
Collecting setuptools>=42
Using cached setuptools-69.5.1-py3-none-any.whl.metadata (6.2 kB)
Collecting wheel
Using cached wheel-0.43.0-py3-none-any.whl.metadata (2.2 kB)
Collecting packaging
Using cached packaging-24.0-py3-none-any.whl.metadata (3.2 kB)
Collecting numpy>=1.22.4
Using cached numpy-1.26.4-cp311-cp311-macosx_11_0_arm64.whl.metadata (114 kB)
ERROR: Ignored the following versions that require a different python version: 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11
ERROR: Could not find a version that satisfies the requirement torch-mlir==20231210.* (from versions: none)
ERROR: No matching distribution found for torch-mlir==20231210.*
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
(shark1.venv) test@tests-Mac-mini SHARK % python apps/stable_diffusion/web/index.py
Traceback (most recent call last):
File "/Users/test/SHARK/apps/stable_diffusion/web/index.py", line 5, in
import apps.stable_diffusion.web.utils.app as app
ModuleNotFoundError: No module named 'apps'
(shark1.venv) test@tests-Mac-mini SHARK %`

Same issue as previous. However, using pip install -e . it was unable to install the dependencies, which might be causing the issue but I'm not sure how do i fix it. If you can help, i would be much Thankful to you!

@Striker770
Copy link
Author

Any idea @gpetters94 ?

@gpetters94
Copy link
Contributor

Any idea @gpetters94 ?

Your Python might be out of date, can you do python --version? We require 3.11 or higher.

@Striker770
Copy link
Author

Striker770 commented May 1, 2024

Any idea @gpetters94 ?

Your Python might be out of date, can you do python --version? We require 3.11 or higher.

It's 3.11.9 installed from official Python site.

Last login: Wed May 1 04:22:27 on ttys000 test@Tests-Mac-mini ~ % python --version zsh: command not found: python test@Tests-Mac-mini ~ % python3 --version Python 3.11.9 test@Tests-Mac-mini ~ %

I did a clean install today and did everything from scratch and i see some of these errors
`Last login: Wed May 1 04:20:35 on ttys000
test@Tests-Mac-mini ~ % git clone https://github.com/nod-ai/SHARK.git
cd SHARK
Cloning into 'SHARK'...
remote: Enumerating objects: 17327, done.
remote: Counting objects: 100% (1468/1468), done.
remote: Compressing objects: 100% (616/616), done.
remote: Total 17327 (delta 1053), reused 1136 (delta 832), pack-reused 15859
Receiving objects: 100% (17327/17327), 44.68 MiB | 7.24 MiB/s, done.
Resolving deltas: 100% (11619/11619), done.
test@Tests-Mac-mini SHARK % git checkout SHARK-1.0
branch 'SHARK-1.0' set up to track 'origin/SHARK-1.0'.
Switched to a new branch 'SHARK-1.0'
test@Tests-Mac-mini SHARK % ./setup_venv.sh
Python: /Library/Frameworks/Python.framework/Versions/3.11/bin/python3
Python version: 3.11
Using pip venv.. Setting up venv dir: shark1.venv
Apple macOS detected
Apple M1 Detected
rustc found to compile HF tokenizers
Run the following commands to setup your SSL certs for your Python version if you see SSL errors with tests
/Applications/Python\ 3.XX/Install\ Certificates.command
Requirement already satisfied: pip in ./shark1.venv/lib/python3.11/site-packages (24.0)
Looking in links: https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
Collecting brevitas@ git+https://github.com/Xilinx/brevitas.git@56edf56a3115d5ac04f19837b388fd7d3b1ff7ea (from -r /Users/test/SHARK/requirements.txt (line 57))
Cloning https://github.com/Xilinx/brevitas.git (to revision 56edf56a3115d5ac04f19837b388fd7d3b1ff7ea) to /private/var/folders/pd/wz86cn1s08n1zxs3rz7wjt2h0000gn/T/pip-install-ak021shj/brevitas_4b6137e7aa4a46178e91eafe63d0b98f
Running command git clone --filter=blob:none --quiet https://github.com/Xilinx/brevitas.git /private/var/folders/pd/wz86cn1s08n1zxs3rz7wjt2h0000gn/T/pip-install-ak021shj/brevitas_4b6137e7aa4a46178e91eafe63d0b98f
Running command git rev-parse -q --verify 'sha^56edf56a3115d5ac04f19837b388fd7d3b1ff7ea'
Running command git fetch -q https://github.com/Xilinx/brevitas.git 56edf56a3115d5ac04f19837b388fd7d3b1ff7ea
Running command git checkout -q 56edf56a3115d5ac04f19837b388fd7d3b1ff7ea
Resolved https://github.com/Xilinx/brevitas.git to commit 56edf56a3115d5ac04f19837b388fd7d3b1ff7ea
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: setuptools in ./shark1.venv/lib/python3.11/site-packages (from -r /Users/test/SHARK/requirements.txt (line 4)) (65.5.0)
Collecting setuptools (from -r /Users/test/SHARK/requirements.txt (line 4))
Using cached setuptools-69.5.1-py3-none-any.whl.metadata (6.2 kB)
Collecting wheel (from -r /Users/test/SHARK/requirements.txt (line 5))
Using cached wheel-0.43.0-py3-none-any.whl.metadata (2.2 kB)
Collecting tqdm (from -r /Users/test/SHARK/requirements.txt (line 8))
Using cached tqdm-4.66.2-py3-none-any.whl.metadata (57 kB)
Collecting google-cloud-storage (from -r /Users/test/SHARK/requirements.txt (line 11))
Using cached google_cloud_storage-2.16.0-py2.py3-none-any.whl.metadata (6.1 kB)
Collecting pytest (from -r /Users/test/SHARK/requirements.txt (line 14))
Downloading pytest-8.2.0-py3-none-any.whl.metadata (7.5 kB)
Collecting pytest-xdist (from -r /Users/test/SHARK/requirements.txt (line 15))
Downloading pytest_xdist-3.6.1-py3-none-any.whl.metadata (4.3 kB)
Collecting pytest-forked (from -r /Users/test/SHARK/requirements.txt (line 16))
Using cached pytest_forked-1.6.0-py3-none-any.whl.metadata (3.5 kB)
Collecting Pillow (from -r /Users/test/SHARK/requirements.txt (line 17))
Using cached pillow-10.3.0-cp311-cp311-macosx_11_0_arm64.whl.metadata (9.2 kB)
Collecting parameterized (from -r /Users/test/SHARK/requirements.txt (line 18))
Using cached parameterized-0.9.0-py2.py3-none-any.whl.metadata (18 kB)
Collecting tokenizers==0.13.3 (from -r /Users/test/SHARK/requirements.txt (line 22))
Using cached tokenizers-0.13.3-cp311-cp311-macosx_12_0_arm64.whl.metadata (6.7 kB)
Collecting transformers (from -r /Users/test/SHARK/requirements.txt (line 23))
Using cached transformers-4.40.1-py3-none-any.whl.metadata (137 kB)
Collecting diffusers==0.24.0 (from -r /Users/test/SHARK/requirements.txt (line 24))
Using cached diffusers-0.24.0-py3-none-any.whl.metadata (18 kB)
Collecting accelerate (from -r /Users/test/SHARK/requirements.txt (line 26))
Using cached accelerate-0.29.3-py3-none-any.whl.metadata (18 kB)
Collecting scipy (from -r /Users/test/SHARK/requirements.txt (line 27))
Using cached scipy-1.13.0-cp311-cp311-macosx_12_0_arm64.whl.metadata (60 kB)
Collecting mpmath==1.3.0 (from -r /Users/test/SHARK/requirements.txt (line 28))
Using cached mpmath-1.3.0-py3-none-any.whl.metadata (8.6 kB)
Collecting ftfy (from -r /Users/test/SHARK/requirements.txt (line 29))
Using cached ftfy-6.2.0-py3-none-any.whl.metadata (7.3 kB)
Collecting gradio==4.19.2 (from -r /Users/test/SHARK/requirements.txt (line 30))
Using cached gradio-4.19.2-py3-none-any.whl.metadata (15 kB)
Collecting altair (from -r /Users/test/SHARK/requirements.txt (line 31))
Using cached altair-5.3.0-py3-none-any.whl.metadata (9.2 kB)
Collecting omegaconf (from -r /Users/test/SHARK/requirements.txt (line 32))
Using cached omegaconf-2.4.0.dev3-py3-none-any.whl.metadata (4.2 kB)
Collecting safetensors==0.3.1 (from -r /Users/test/SHARK/requirements.txt (line 34))
Using cached safetensors-0.3.1-cp311-cp311-macosx_12_0_arm64.whl.metadata (4.5 kB)
Collecting opencv-python (from -r /Users/test/SHARK/requirements.txt (line 35))
Using cached opencv_python-4.9.0.80-cp37-abi3-macosx_11_0_arm64.whl.metadata (20 kB)
Collecting scikit-image (from -r /Users/test/SHARK/requirements.txt (line 36))
Using cached scikit_image-0.23.2-cp311-cp311-macosx_12_0_arm64.whl.metadata (14 kB)
Collecting pytorch_lightning (from -r /Users/test/SHARK/requirements.txt (line 37))
Using cached pytorch_lightning-2.2.3-py3-none-any.whl.metadata (21 kB)
Collecting tk (from -r /Users/test/SHARK/requirements.txt (line 38))
Using cached tk-0.1.0-py3-none-any.whl.metadata (693 bytes)
Collecting pywebview (from -r /Users/test/SHARK/requirements.txt (line 39))
Using cached pywebview-5.1-py3-none-any.whl.metadata (4.1 kB)
Collecting sentencepiece (from -r /Users/test/SHARK/requirements.txt (line 40))
Using cached sentencepiece-0.2.0-cp311-cp311-macosx_11_0_arm64.whl.metadata (7.7 kB)
Collecting py-cpuinfo (from -r /Users/test/SHARK/requirements.txt (line 41))
Using cached py_cpuinfo-9.0.0-py3-none-any.whl.metadata (794 bytes)
Collecting tiktoken (from -r /Users/test/SHARK/requirements.txt (line 42))
Using cached tiktoken-0.6.0-cp311-cp311-macosx_11_0_arm64.whl.metadata (6.6 kB)
Collecting joblib (from -r /Users/test/SHARK/requirements.txt (line 43))
Using cached joblib-1.4.0-py3-none-any.whl.metadata (5.4 kB)
Collecting timm (from -r /Users/test/SHARK/requirements.txt (line 44))
Using cached timm-0.9.16-py3-none-any.whl.metadata (38 kB)
Collecting langchain (from -r /Users/test/SHARK/requirements.txt (line 45))
Downloading langchain-0.1.17-py3-none-any.whl.metadata (13 kB)
Collecting einops (from -r /Users/test/SHARK/requirements.txt (line 46))
Downloading einops-0.8.0-py3-none-any.whl.metadata (12 kB)
Collecting pydantic==2.4.1 (from -r /Users/test/SHARK/requirements.txt (line 47))
Using cached pydantic-2.4.1-py3-none-any.whl.metadata (157 kB)
Collecting pefile (from -r /Users/test/SHARK/requirements.txt (line 53))
Using cached pefile-2023.2.7-py3-none-any.whl.metadata (1.4 kB)
Collecting pyinstaller (from -r /Users/test/SHARK/requirements.txt (line 54))
Using cached pyinstaller-6.6.0-py3-none-macosx_10_13_universal2.whl.metadata (8.3 kB)
Collecting optimum (from -r /Users/test/SHARK/requirements.txt (line 60))
Using cached optimum-1.19.1-py3-none-any.whl.metadata (19 kB)
Collecting auto_gptq (from -r /Users/test/SHARK/requirements.txt (line 61))
Using cached auto_gptq-0.7.1.tar.gz (126 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
Building cuda extension requires PyTorch (>=1.13.0) being installed, please install PyTorch first: No module named 'torch'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
MacOS detected. Installing torch-mlir from .whl, to avoid dependency problems with torch.
WARNING: Skipping timm as it is not installed.
Looking in links: package-index-torch-mlir.html
Collecting torch-mlir
Downloading https://github.com/llvm/torch-mlir/releases/download/snapshot-20231210.1048/torch_mlir-20231210.1048-cp311-cp311-macosx_11_0_universal2.whl (205.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 205.9/205.9 MB 5.1 MB/s eta 0:00:00
Collecting numpy (from torch-mlir)
Downloading numpy-2.0.0rc1-cp311-cp311-macosx_14_0_arm64.whl.metadata (60 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.9/60.9 kB 2.2 MB/s eta 0:00:00
Collecting packaging (from torch-mlir)
Downloading packaging-24.0-py3-none-any.whl.metadata (3.2 kB)
INFO: pip is looking at multiple versions of torch-mlir to determine which version is compatible with other requirements. This could take a while.
ERROR: Ignored the following versions that require a different python version: 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11
ERROR: Could not find a version that satisfies the requirement torch==2.2.0.dev20231204 (from torch-mlir) (from versions: 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.2.0, 2.2.1, 2.2.2, 2.3.0)
ERROR: No matching distribution found for torch==2.2.0.dev20231204
rm: .use-iree: No such file or directory
Installing https://nod-ai.github.io/SRT/pip-release-links.html...
Looking in links: https://nod-ai.github.io/SRT/pip-release-links.html
Collecting iree-compiler==20231212.*
Downloading https://github.com/nod-ai/SRT/releases/download/candidate-20231212.612/iree_compiler-20231212.612-cp311-cp311-macosx_13_0_universal2.whl (54.4 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.4/54.4 MB 7.8 MB/s eta 0:00:00
Collecting iree-runtime==20231212.*
Downloading https://github.com/nod-ai/SRT/releases/download/candidate-20231212.612/iree_runtime-20231212.612-cp311-cp311-macosx_13_0_universal2.whl (5.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.3/5.3 MB 4.8 MB/s eta 0:00:00
INFO: pip is looking at multiple versions of iree-compiler to determine which version is compatible with other requirements. This could take a while.
ERROR: Could not find a version that satisfies the requirement numpy (from iree-compiler) (from versions: none)
ERROR: No matching distribution found for numpy
Looking in links: package-index-torch-mlir.html, https://nod-ai.github.io/SRT/pip-release-links.html
Obtaining file:///Users/test/SHARK
Installing build dependencies ... error
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [20 lines of output]
Looking in links: package-index-torch-mlir.html, https://nod-ai.github.io/SRT/pip-release-links.html
Collecting setuptools>=42
Using cached setuptools-69.5.1-py3-none-any.whl.metadata (6.2 kB)
Collecting wheel
Using cached wheel-0.43.0-py3-none-any.whl.metadata (2.2 kB)
Collecting packaging
Using cached packaging-24.0-py3-none-any.whl.metadata (3.2 kB)
Collecting numpy>=1.22.4
Using cached numpy-1.26.4-cp311-cp311-macosx_11_0_arm64.whl.metadata (114 kB)
Collecting torch-mlir==20231210.*
Downloading https://github.com/llvm/torch-mlir/releases/download/snapshot-20231210.1048/torch_mlir-20231210.1048-cp311-cp311-macosx_11_0_universal2.whl (205.9 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 205.9/205.9 MB 7.2 MB/s eta 0:00:00
Collecting iree-compiler==20231212.*
Using cached https://github.com/nod-ai/SRT/releases/download/candidate-20231212.612/iree_compiler-20231212.612-cp311-cp311-macosx_13_0_universal2.whl (54.4 MB)
Collecting iree-runtime==20231212.*
Using cached https://github.com/nod-ai/SRT/releases/download/candidate-20231212.612/iree_runtime-20231212.612-cp311-cp311-macosx_13_0_universal2.whl (5.3 MB)
INFO: pip is looking at multiple versions of torch-mlir to determine which version is compatible with other requirements. This could take a while.
ERROR: Ignored the following versions that require a different python version: 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11
ERROR: Could not find a version that satisfies the requirement torch==2.2.0.dev20231204 (from torch-mlir) (from versions: 2.0.0, 2.0.1, 2.1.0, 2.1.1, 2.1.2, 2.2.0, 2.2.1, 2.2.2, 2.3.0)
ERROR: No matching distribution found for torch==2.2.0.dev20231204
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Collecting git+https://github.com/Xilinx/brevitas.git@dev
Cloning https://github.com/Xilinx/brevitas.git (to revision dev) to /private/var/folders/pd/wz86cn1s08n1zxs3rz7wjt2h0000gn/T/pip-req-build-y__oy1ci
Running command git clone --filter=blob:none --quiet https://github.com/Xilinx/brevitas.git /private/var/folders/pd/wz86cn1s08n1zxs3rz7wjt2h0000gn/T/pip-req-build-y__oy1ci
Running command git checkout -b dev --track origin/dev
Switched to a new branch 'dev'
branch 'dev' set up to track 'origin/dev'.
Resolved https://github.com/Xilinx/brevitas.git to commit 564f64ad04ec2c87f0ec76482915ac501f57f7dd
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Collecting dependencies==2.0.1 (from brevitas==0.10.3.dev46+g564f64a)
Using cached dependencies-2.0.1-py2.py3-none-any.whl.metadata (3.9 kB)
Collecting packaging (from brevitas==0.10.3.dev46+g564f64a)
Using cached packaging-24.0-py3-none-any.whl.metadata (3.2 kB)
Requirement already satisfied: setuptools in ./shark1.venv/lib/python3.11/site-packages (from brevitas==0.10.3.dev46+g564f64a) (65.5.0)
Collecting sympy (from brevitas==0.10.3.dev46+g564f64a)
Using cached sympy-1.12-py3-none-any.whl.metadata (12 kB)
Collecting torch>=1.9.1 (from brevitas==0.10.3.dev46+g564f64a)
Using cached torch-2.3.0-cp311-none-macosx_11_0_arm64.whl.metadata (26 kB)
Collecting typing-extensions>=3.7.4 (from brevitas==0.10.3.dev46+g564f64a)
Using cached typing_extensions-4.11.0-py3-none-any.whl.metadata (3.0 kB)
Collecting unfoldNd (from brevitas==0.10.3.dev46+g564f64a)
Using cached unfoldNd-0.2.1-py3-none-any.whl.metadata (1.6 kB)
Collecting filelock (from torch>=1.9.1->brevitas==0.10.3.dev46+g564f64a)
Downloading filelock-3.14.0-py3-none-any.whl.metadata (2.8 kB)
Collecting networkx (from torch>=1.9.1->brevitas==0.10.3.dev46+g564f64a)
Using cached networkx-3.3-py3-none-any.whl.metadata (5.1 kB)
Collecting jinja2 (from torch>=1.9.1->brevitas==0.10.3.dev46+g564f64a)
Using cached Jinja2-3.1.3-py3-none-any.whl.metadata (3.3 kB)
Collecting fsspec (from torch>=1.9.1->brevitas==0.10.3.dev46+g564f64a)
Using cached fsspec-2024.3.1-py3-none-any.whl.metadata (6.8 kB)
Collecting mpmath>=0.19 (from sympy->brevitas==0.10.3.dev46+g564f64a)
Using cached mpmath-1.3.0-py3-none-any.whl.metadata (8.6 kB)
Collecting numpy (from unfoldNd->brevitas==0.10.3.dev46+g564f64a)
Using cached numpy-1.26.4-cp311-cp311-macosx_11_0_arm64.whl.metadata (114 kB)
Collecting MarkupSafe>=2.0 (from jinja2->torch>=1.9.1->brevitas==0.10.3.dev46+g564f64a)
Using cached MarkupSafe-2.1.5-cp311-cp311-macosx_10_9_universal2.whl.metadata (3.0 kB)
Using cached dependencies-2.0.1-py2.py3-none-any.whl (15 kB)
Using cached torch-2.3.0-cp311-none-macosx_11_0_arm64.whl (61.0 MB)
Using cached typing_extensions-4.11.0-py3-none-any.whl (34 kB)
Using cached packaging-24.0-py3-none-any.whl (53 kB)
Using cached sympy-1.12-py3-none-any.whl (5.7 MB)
Using cached unfoldNd-0.2.1-py3-none-any.whl (16 kB)
Using cached mpmath-1.3.0-py3-none-any.whl (536 kB)
Downloading filelock-3.14.0-py3-none-any.whl (12 kB)
Using cached fsspec-2024.3.1-py3-none-any.whl (171 kB)
Using cached Jinja2-3.1.3-py3-none-any.whl (133 kB)
Using cached networkx-3.3-py3-none-any.whl (1.7 MB)
Using cached numpy-1.26.4-cp311-cp311-macosx_11_0_arm64.whl (14.0 MB)
Using cached MarkupSafe-2.1.5-cp311-cp311-macosx_10_9_universal2.whl (18 kB)
Building wheels for collected packages: brevitas
Building wheel for brevitas (pyproject.toml) ... done
Created wheel for brevitas: filename=brevitas-0.10.3.dev46+g564f64a-py3-none-any.whl size=619464 sha256=f5442a574b59e273f04b8d2c4825337b5e295306e675645fd8609c64def78f71
Stored in directory: /private/var/folders/pd/wz86cn1s08n1zxs3rz7wjt2h0000gn/T/pip-ephem-wheel-cache-vzzkfwl3/wheels/01/1b/67/184c34b69cc8b91baecb28323b775fbbf6e2f98f9a67411374
Successfully built brevitas
Installing collected packages: mpmath, typing-extensions, sympy, packaging, numpy, networkx, MarkupSafe, fsspec, filelock, dependencies, jinja2, torch, unfoldNd, brevitas
Successfully installed MarkupSafe-2.1.5 brevitas-0.10.3.dev46+g564f64a dependencies-2.0.1 filelock-3.14.0 fsspec-2024.3.1 jinja2-3.1.3 mpmath-1.3.0 networkx-3.3 numpy-1.26.4 packaging-24.0 sympy-1.12 torch-2.3.0 typing-extensions-4.11.0 unfoldNd-0.2.1
Before running examples activate venv with:
source shark1.venv/bin/activate
test@Tests-Mac-mini SHARK % source shark1.venv/bin/activate
(shark1.venv) test@Tests-Mac-mini SHARK % cd apps/stable_diffusion/web
(shark1.venv) test@Tests-Mac-mini web % python3 index.py
Traceback (most recent call last):
File "/Users/test/SHARK/apps/stable_diffusion/web/index.py", line 5, in
import apps.stable_diffusion.web.utils.app as app
ModuleNotFoundError: No module named 'apps'
(shark1.venv) test@Tests-Mac-mini web % `

Any clues? Seems like two things were not installed from the requirements. Maybe that's the reason its having the issue?

@Striker770
Copy link
Author

@gpetters94 Any clue friend? I do have python 3.11 installed. What could be wrong here?

@gpetters94
Copy link
Contributor

@gpetters94 Any clue friend? I do have python 3.11 installed. What could be wrong here?

I suspect it's our install script being broken for MacOS, I'll test it out and get a fix out soon.

@Striker770
Copy link
Author

@gpetters94 Any clue friend? I do have python 3.11 installed. What could be wrong here?

I suspect it's our install script being broken for MacOS, I'll test it out and get a fix out soon.

@gpetters94 Sounds good. Please let me know when its ready. Been waiting to try this for months!

@Striker770
Copy link
Author

@gpetters94 Has the script updated for macOS?

@Striker770
Copy link
Author

@monorimet Do you have any clue regarding this issue?

@Striker770
Copy link
Author

Hello @gpetters94 and @monorimet Have you guys updated the script for the issue now?

@Striker770
Copy link
Author

Hello @gpetters94 Any update yet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants