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

[BUG] Fresh install uses NumPy 2, which isn't supported by PyTorch 2.2 #494

Closed
sdatkinson opened this issue Oct 13, 2024 · 0 comments · Fixed by #496
Closed

[BUG] Fresh install uses NumPy 2, which isn't supported by PyTorch 2.2 #494

sdatkinson opened this issue Oct 13, 2024 · 0 comments · Fixed by #496
Labels
bug Something isn't working priority:high Prioritize

Comments

@sdatkinson
Copy link
Owner

Workaround

Use NumPy 1, e.g.

$ pip install "numpy<2"

Issue

  • macOS, Intel chip

  • Fresh install of Miniconda version

  • conda list and pip list:

(base) steve@Stevens-MacBook-Pro-2 ~ % conda list
# packages in environment at /Users/steve/opt/miniconda3:
#
# Name                    Version                   Build  Channel
anaconda-anon-usage       0.4.4           py312hfb7c958_100  
archspec                  0.2.3              pyhd3eb1b0_0  
boltons                   23.0.0          py312hecd8cb5_0  
brotli-python             1.0.9           py312hcec6c5f_8  
bzip2                     1.0.8                h6c40b1e_6  
c-ares                    1.19.1               h6c40b1e_0  
ca-certificates           2024.7.2             hecd8cb5_0  
certifi                   2024.7.4        py312hecd8cb5_0  
cffi                      1.16.0          py312h6c40b1e_1  
charset-normalizer        3.3.2              pyhd3eb1b0_0  
conda                     24.7.1          py312hecd8cb5_0  
conda-content-trust       0.2.0           py312hecd8cb5_1  
conda-libmamba-solver     24.7.0             pyhd3eb1b0_0  
conda-package-handling    2.3.0           py312hecd8cb5_0  
conda-package-streaming   0.10.0          py312hecd8cb5_0  
cryptography              42.0.5          py312h30e54ef_1  
distro                    1.9.0           py312hecd8cb5_0  
expat                     2.6.2                hcec6c5f_0  
fmt                       9.1.0                ha357a0b_1  
frozendict                2.4.2           py312hecd8cb5_0  
icu                       73.1                 hcec6c5f_0  
idna                      3.7             py312hecd8cb5_0  
jsonpatch                 1.33            py312hecd8cb5_1  
jsonpointer               2.1                pyhd3eb1b0_0  
krb5                      1.20.1               h428f121_1  
libarchive                3.6.2                h29ab7a1_3  
libcurl                   8.7.1                hf20ceda_0  
libcxx                    14.0.6               h9765a3e_0  
libedit                   3.1.20230828         h6c40b1e_0  
libev                     4.33                 h9ed2024_1  
libffi                    3.4.4                hecd8cb5_1  
libiconv                  1.16                 h6c40b1e_3  
libmamba                  1.5.8                h258a794_2  
libmambapy                1.5.8           py312h8c3233a_2  
libnghttp2                1.57.0               h9beae6a_0  
libsolv                   0.7.24               hfff2838_1  
libssh2                   1.11.0               hf20ceda_0  
libxml2                   2.10.4               h45904e2_2  
lz4-c                     1.9.4                hcec6c5f_1  
menuinst                  2.1.2           py312hecd8cb5_0  
ncurses                   6.4                  hcec6c5f_0  
openssl                   3.0.14               h46256e1_0  
packaging                 24.1            py312hecd8cb5_0  
pcre2                     10.42                h9b97e30_1  
pip                       24.2            py312hecd8cb5_0  
platformdirs              3.10.0          py312hecd8cb5_0  
pluggy                    1.0.0           py312hecd8cb5_1  
pybind11-abi              5                    hd3eb1b0_0  
pycosat                   0.6.6           py312h6c40b1e_1  
pycparser                 2.21               pyhd3eb1b0_0  
pysocks                   1.7.1           py312hecd8cb5_0  
python                    3.12.4               hcd54a6c_1  
python.app                3               py312h6c40b1e_0  
readline                  8.2                  hca72f7f_0  
reproc                    14.2.4               hcec6c5f_2  
reproc-cpp                14.2.4               hcec6c5f_2  
requests                  2.32.3          py312hecd8cb5_0  
ruamel.yaml               0.17.21         py312h6c40b1e_0  
setuptools                72.1.0          py312hecd8cb5_0  
sqlite                    3.45.3               h6c40b1e_0  
tk                        8.6.14               h4d00af3_0  
tqdm                      4.66.4          py312h8e4b320_0  
truststore                0.8.0           py312hecd8cb5_0  
tzdata                    2024a                h04d1e81_0  
urllib3                   2.2.2           py312hecd8cb5_0  
wheel                     0.43.0          py312hecd8cb5_0  
xz                        5.4.6                h6c40b1e_1  
yaml-cpp                  0.8.0                hcec6c5f_1  
zlib                      1.2.13               h4b97444_1  
zstandard                 0.22.0          py312h2d76c9a_0  
zstd                      1.5.5                hc035e20_2 
(base) steve@Stevens-MacBook-Pro-2 ~ % pip list
Package                 Version
----------------------- --------
anaconda-anon-usage     0.4.4
archspec                0.2.3
boltons                 23.0.0
Brotli                  1.0.9
certifi                 2024.7.4
cffi                    1.16.0
charset-normalizer      3.3.2
conda                   24.7.1
conda-content-trust     0.2.0
conda-libmamba-solver   24.7.0
conda-package-handling  2.3.0
conda_package_streaming 0.10.0
cryptography            42.0.5
distro                  1.9.0
frozendict              2.4.2
idna                    3.7
jsonpatch               1.33
jsonpointer             2.1
libmambapy              1.5.8
menuinst                2.1.2
packaging               24.1
pip                     24.2
platformdirs            3.10.0
pluggy                  1.0.0
pycosat                 0.6.6
pycparser               2.21
PySocks                 1.7.1
requests                2.32.3
ruamel.yaml             0.17.21
setuptools              72.1.0
tqdm                    4.66.4
truststore              0.8.0
urllib3                 2.2.2
wheel                   0.43.0
zstandard               0.22.0

So I don't see numpy

  • pip install neural-amp-modeler
(base) steve@Stevens-MacBook-Pro-2 ~ % pip install neural-amp-modeler
Collecting neural-amp-modeler
  Downloading neural_amp_modeler-0.10.0-py3-none-any.whl.metadata (581 bytes)
Collecting auraloss==0.3.0 (from neural-amp-modeler)
  Downloading auraloss-0.3.0-py3-none-any.whl.metadata (7.5 kB)
Collecting matplotlib (from neural-amp-modeler)
  Downloading matplotlib-3.9.2-cp312-cp312-macosx_10_12_x86_64.whl.metadata (11 kB)
Collecting numpy (from neural-amp-modeler)
  Downloading numpy-2.1.2-cp312-cp312-macosx_14_0_x86_64.whl.metadata (60 kB)
Collecting onnx (from neural-amp-modeler)
  Downloading onnx-1.17.0-cp312-cp312-macosx_12_0_universal2.whl.metadata (16 kB)
Collecting onnxruntime (from neural-amp-modeler)
  Downloading onnxruntime-1.19.2-cp312-cp312-macosx_11_0_universal2.whl.metadata (4.5 kB)
Collecting pydantic>=2.0.0 (from neural-amp-modeler)
  Downloading pydantic-2.9.2-py3-none-any.whl.metadata (149 kB)
Collecting pytorch-lightning (from neural-amp-modeler)
  Downloading pytorch_lightning-2.4.0-py3-none-any.whl.metadata (21 kB)
Collecting scipy (from neural-amp-modeler)
  Downloading scipy-1.14.1-cp312-cp312-macosx_14_0_x86_64.whl.metadata (60 kB)
Collecting sounddevice (from neural-amp-modeler)
  Downloading sounddevice-0.5.1-py3-none-macosx_10_6_x86_64.macosx_10_6_universal2.whl.metadata (1.4 kB)
Collecting tensorboard (from neural-amp-modeler)
  Downloading tensorboard-2.18.0-py3-none-any.whl.metadata (1.6 kB)
Collecting torch (from neural-amp-modeler)
  Downloading torch-2.2.2-cp312-none-macosx_10_9_x86_64.whl.metadata (25 kB)
Collecting transformers>=4 (from neural-amp-modeler)
  Downloading transformers-4.45.2-py3-none-any.whl.metadata (44 kB)
Requirement already satisfied: tqdm in ./opt/miniconda3/lib/python3.12/site-packages (from neural-amp-modeler) (4.66.4)
Collecting wavio>=0.0.5 (from neural-amp-modeler)
  Downloading wavio-0.0.9-py3-none-any.whl.metadata (5.7 kB)
Collecting annotated-types>=0.6.0 (from pydantic>=2.0.0->neural-amp-modeler)
  Downloading annotated_types-0.7.0-py3-none-any.whl.metadata (15 kB)
Collecting pydantic-core==2.23.4 (from pydantic>=2.0.0->neural-amp-modeler)
  Downloading pydantic_core-2.23.4-cp312-cp312-macosx_10_12_x86_64.whl.metadata (6.6 kB)
Collecting typing-extensions>=4.6.1 (from pydantic>=2.0.0->neural-amp-modeler)
  Downloading typing_extensions-4.12.2-py3-none-any.whl.metadata (3.0 kB)
Collecting filelock (from transformers>=4->neural-amp-modeler)
  Downloading filelock-3.16.1-py3-none-any.whl.metadata (2.9 kB)
Collecting huggingface-hub<1.0,>=0.23.2 (from transformers>=4->neural-amp-modeler)
  Downloading huggingface_hub-0.25.2-py3-none-any.whl.metadata (13 kB)
Requirement already satisfied: packaging>=20.0 in ./opt/miniconda3/lib/python3.12/site-packages (from transformers>=4->neural-amp-modeler) (24.1)
Collecting pyyaml>=5.1 (from transformers>=4->neural-amp-modeler)
  Downloading PyYAML-6.0.2-cp312-cp312-macosx_10_9_x86_64.whl.metadata (2.1 kB)
Collecting regex!=2019.12.17 (from transformers>=4->neural-amp-modeler)
  Downloading regex-2024.9.11-cp312-cp312-macosx_10_9_x86_64.whl.metadata (40 kB)
Requirement already satisfied: requests in ./opt/miniconda3/lib/python3.12/site-packages (from transformers>=4->neural-amp-modeler) (2.32.3)
Collecting safetensors>=0.4.1 (from transformers>=4->neural-amp-modeler)
  Downloading safetensors-0.4.5-cp312-cp312-macosx_10_12_x86_64.whl.metadata (3.8 kB)
Collecting tokenizers<0.21,>=0.20 (from transformers>=4->neural-amp-modeler)
  Downloading tokenizers-0.20.1-cp312-cp312-macosx_10_12_x86_64.whl.metadata (6.7 kB)
Collecting contourpy>=1.0.1 (from matplotlib->neural-amp-modeler)
  Downloading contourpy-1.3.0-cp312-cp312-macosx_10_9_x86_64.whl.metadata (5.4 kB)
Collecting cycler>=0.10 (from matplotlib->neural-amp-modeler)
  Downloading cycler-0.12.1-py3-none-any.whl.metadata (3.8 kB)
Collecting fonttools>=4.22.0 (from matplotlib->neural-amp-modeler)
  Downloading fonttools-4.54.1-cp312-cp312-macosx_10_13_universal2.whl.metadata (163 kB)
Collecting kiwisolver>=1.3.1 (from matplotlib->neural-amp-modeler)
  Downloading kiwisolver-1.4.7-cp312-cp312-macosx_10_9_x86_64.whl.metadata (6.3 kB)
Collecting pillow>=8 (from matplotlib->neural-amp-modeler)
  Downloading pillow-10.4.0-cp312-cp312-macosx_10_10_x86_64.whl.metadata (9.2 kB)
Collecting pyparsing>=2.3.1 (from matplotlib->neural-amp-modeler)
  Downloading pyparsing-3.2.0-py3-none-any.whl.metadata (5.0 kB)
Collecting python-dateutil>=2.7 (from matplotlib->neural-amp-modeler)
  Downloading python_dateutil-2.9.0.post0-py2.py3-none-any.whl.metadata (8.4 kB)
Collecting protobuf>=3.20.2 (from onnx->neural-amp-modeler)
  Downloading protobuf-5.28.2-cp38-abi3-macosx_10_9_universal2.whl.metadata (592 bytes)
Collecting coloredlogs (from onnxruntime->neural-amp-modeler)
  Downloading coloredlogs-15.0.1-py2.py3-none-any.whl.metadata (12 kB)
Collecting flatbuffers (from onnxruntime->neural-amp-modeler)
  Downloading flatbuffers-24.3.25-py2.py3-none-any.whl.metadata (850 bytes)
Collecting sympy (from onnxruntime->neural-amp-modeler)
  Downloading sympy-1.13.3-py3-none-any.whl.metadata (12 kB)
Collecting fsspec>=2022.5.0 (from fsspec[http]>=2022.5.0->pytorch-lightning->neural-amp-modeler)
  Downloading fsspec-2024.9.0-py3-none-any.whl.metadata (11 kB)
Collecting torchmetrics>=0.7.0 (from pytorch-lightning->neural-amp-modeler)
  Downloading torchmetrics-1.4.3-py3-none-any.whl.metadata (19 kB)
Collecting lightning-utilities>=0.10.0 (from pytorch-lightning->neural-amp-modeler)
  Downloading lightning_utilities-0.11.7-py3-none-any.whl.metadata (5.2 kB)
Collecting networkx (from torch->neural-amp-modeler)
  Downloading networkx-3.4.1-py3-none-any.whl.metadata (6.3 kB)
Collecting jinja2 (from torch->neural-amp-modeler)
  Downloading jinja2-3.1.4-py3-none-any.whl.metadata (2.6 kB)
Requirement already satisfied: CFFI>=1.0 in ./opt/miniconda3/lib/python3.12/site-packages (from sounddevice->neural-amp-modeler) (1.16.0)
Collecting absl-py>=0.4 (from tensorboard->neural-amp-modeler)
  Downloading absl_py-2.1.0-py3-none-any.whl.metadata (2.3 kB)
Collecting grpcio>=1.48.2 (from tensorboard->neural-amp-modeler)
  Downloading grpcio-1.66.2-cp312-cp312-macosx_10_9_universal2.whl.metadata (3.9 kB)
Collecting markdown>=2.6.8 (from tensorboard->neural-amp-modeler)
  Downloading Markdown-3.7-py3-none-any.whl.metadata (7.0 kB)
Requirement already satisfied: setuptools>=41.0.0 in ./opt/miniconda3/lib/python3.12/site-packages (from tensorboard->neural-amp-modeler) (72.1.0)
Collecting six>1.9 (from tensorboard->neural-amp-modeler)
  Downloading six-1.16.0-py2.py3-none-any.whl.metadata (1.8 kB)
Collecting tensorboard-data-server<0.8.0,>=0.7.0 (from tensorboard->neural-amp-modeler)
  Downloading tensorboard_data_server-0.7.2-py3-none-macosx_10_9_x86_64.whl.metadata (1.1 kB)
Collecting werkzeug>=1.0.1 (from tensorboard->neural-amp-modeler)
  Downloading werkzeug-3.0.4-py3-none-any.whl.metadata (3.7 kB)
Requirement already satisfied: pycparser in ./opt/miniconda3/lib/python3.12/site-packages (from CFFI>=1.0->sounddevice->neural-amp-modeler) (2.21)
Collecting aiohttp!=4.0.0a0,!=4.0.0a1 (from fsspec[http]>=2022.5.0->pytorch-lightning->neural-amp-modeler)
  Downloading aiohttp-3.10.10-cp312-cp312-macosx_10_9_x86_64.whl.metadata (7.6 kB)
Collecting MarkupSafe>=2.1.1 (from werkzeug>=1.0.1->tensorboard->neural-amp-modeler)
  Downloading MarkupSafe-3.0.1-cp312-cp312-macosx_10_13_universal2.whl.metadata (4.0 kB)
Collecting humanfriendly>=9.1 (from coloredlogs->onnxruntime->neural-amp-modeler)
  Downloading humanfriendly-10.0-py2.py3-none-any.whl.metadata (9.2 kB)
Requirement already satisfied: charset-normalizer<4,>=2 in ./opt/miniconda3/lib/python3.12/site-packages (from requests->transformers>=4->neural-amp-modeler) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in ./opt/miniconda3/lib/python3.12/site-packages (from requests->transformers>=4->neural-amp-modeler) (3.7)
Requirement already satisfied: urllib3<3,>=1.21.1 in ./opt/miniconda3/lib/python3.12/site-packages (from requests->transformers>=4->neural-amp-modeler) (2.2.2)
Requirement already satisfied: certifi>=2017.4.17 in ./opt/miniconda3/lib/python3.12/site-packages (from requests->transformers>=4->neural-amp-modeler) (2024.7.4)
Collecting mpmath<1.4,>=1.1.0 (from sympy->onnxruntime->neural-amp-modeler)
  Downloading mpmath-1.3.0-py3-none-any.whl.metadata (8.6 kB)
Collecting aiohappyeyeballs>=2.3.0 (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>=2022.5.0->pytorch-lightning->neural-amp-modeler)
  Downloading aiohappyeyeballs-2.4.3-py3-none-any.whl.metadata (6.1 kB)
Collecting aiosignal>=1.1.2 (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>=2022.5.0->pytorch-lightning->neural-amp-modeler)
  Downloading aiosignal-1.3.1-py3-none-any.whl.metadata (4.0 kB)
Collecting attrs>=17.3.0 (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>=2022.5.0->pytorch-lightning->neural-amp-modeler)
  Downloading attrs-24.2.0-py3-none-any.whl.metadata (11 kB)
Collecting frozenlist>=1.1.1 (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>=2022.5.0->pytorch-lightning->neural-amp-modeler)
  Downloading frozenlist-1.4.1-cp312-cp312-macosx_10_9_x86_64.whl.metadata (12 kB)
Collecting multidict<7.0,>=4.5 (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>=2022.5.0->pytorch-lightning->neural-amp-modeler)
  Downloading multidict-6.1.0-cp312-cp312-macosx_10_9_x86_64.whl.metadata (5.0 kB)
Collecting yarl<2.0,>=1.12.0 (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>=2022.5.0->pytorch-lightning->neural-amp-modeler)
  Downloading yarl-1.15.2-cp312-cp312-macosx_10_13_x86_64.whl.metadata (56 kB)
Collecting propcache>=0.2.0 (from yarl<2.0,>=1.12.0->aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>=2022.5.0->pytorch-lightning->neural-amp-modeler)
  Downloading propcache-0.2.0-cp312-cp312-macosx_10_13_x86_64.whl.metadata (7.7 kB)
Downloading neural_amp_modeler-0.10.0-py3-none-any.whl (235 kB)
Downloading auraloss-0.3.0-py3-none-any.whl (15 kB)
Downloading pydantic-2.9.2-py3-none-any.whl (434 kB)
Downloading pydantic_core-2.23.4-cp312-cp312-macosx_10_12_x86_64.whl (1.9 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.9/1.9 MB 11.1 MB/s eta 0:00:00
Downloading transformers-4.45.2-py3-none-any.whl (9.9 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.9/9.9 MB 13.7 MB/s eta 0:00:00
Downloading numpy-2.1.2-cp312-cp312-macosx_14_0_x86_64.whl (6.6 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.6/6.6 MB 9.9 MB/s eta 0:00:00
Downloading wavio-0.0.9-py3-none-any.whl (9.5 kB)
Downloading matplotlib-3.9.2-cp312-cp312-macosx_10_12_x86_64.whl (7.9 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.9/7.9 MB 12.7 MB/s eta 0:00:00
Downloading onnx-1.17.0-cp312-cp312-macosx_12_0_universal2.whl (16.7 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 16.7/16.7 MB 11.9 MB/s eta 0:00:00
Downloading onnxruntime-1.19.2-cp312-cp312-macosx_11_0_universal2.whl (16.8 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 16.8/16.8 MB 12.6 MB/s eta 0:00:00
Downloading pytorch_lightning-2.4.0-py3-none-any.whl (815 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 815.2/815.2 kB 8.5 MB/s eta 0:00:00
Downloading torch-2.2.2-cp312-none-macosx_10_9_x86_64.whl (150.8 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 150.8/150.8 MB 13.3 MB/s eta 0:00:00
Downloading scipy-1.14.1-cp312-cp312-macosx_14_0_x86_64.whl (25.6 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 25.6/25.6 MB 12.6 MB/s eta 0:00:00
Downloading sounddevice-0.5.1-py3-none-macosx_10_6_x86_64.macosx_10_6_universal2.whl (107 kB)
Downloading tensorboard-2.18.0-py3-none-any.whl (5.5 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.5/5.5 MB 13.5 MB/s eta 0:00:00
Downloading absl_py-2.1.0-py3-none-any.whl (133 kB)
Downloading annotated_types-0.7.0-py3-none-any.whl (13 kB)
Downloading contourpy-1.3.0-cp312-cp312-macosx_10_9_x86_64.whl (267 kB)
Downloading cycler-0.12.1-py3-none-any.whl (8.3 kB)
Downloading fonttools-4.54.1-cp312-cp312-macosx_10_13_universal2.whl (2.8 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.8/2.8 MB 11.8 MB/s eta 0:00:00
Downloading fsspec-2024.9.0-py3-none-any.whl (179 kB)
Downloading grpcio-1.66.2-cp312-cp312-macosx_10_9_universal2.whl (10.8 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 10.8/10.8 MB 14.5 MB/s eta 0:00:00
Downloading huggingface_hub-0.25.2-py3-none-any.whl (436 kB)
Downloading kiwisolver-1.4.7-cp312-cp312-macosx_10_9_x86_64.whl (65 kB)
Downloading lightning_utilities-0.11.7-py3-none-any.whl (26 kB)
Downloading Markdown-3.7-py3-none-any.whl (106 kB)
Downloading pillow-10.4.0-cp312-cp312-macosx_10_10_x86_64.whl (3.5 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.5/3.5 MB 12.8 MB/s eta 0:00:00
Downloading protobuf-5.28.2-cp38-abi3-macosx_10_9_universal2.whl (414 kB)
Downloading pyparsing-3.2.0-py3-none-any.whl (106 kB)
Downloading python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
Downloading PyYAML-6.0.2-cp312-cp312-macosx_10_9_x86_64.whl (183 kB)
Downloading regex-2024.9.11-cp312-cp312-macosx_10_9_x86_64.whl (288 kB)
Downloading safetensors-0.4.5-cp312-cp312-macosx_10_12_x86_64.whl (392 kB)
Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Downloading tensorboard_data_server-0.7.2-py3-none-macosx_10_9_x86_64.whl (4.8 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.8/4.8 MB 13.8 MB/s eta 0:00:00
Downloading tokenizers-0.20.1-cp312-cp312-macosx_10_12_x86_64.whl (2.7 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.7/2.7 MB 9.8 MB/s eta 0:00:00
Downloading torchmetrics-1.4.3-py3-none-any.whl (869 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 869.5/869.5 kB 8.5 MB/s eta 0:00:00
Downloading typing_extensions-4.12.2-py3-none-any.whl (37 kB)
Downloading werkzeug-3.0.4-py3-none-any.whl (227 kB)
Downloading coloredlogs-15.0.1-py2.py3-none-any.whl (46 kB)
Downloading filelock-3.16.1-py3-none-any.whl (16 kB)
Downloading flatbuffers-24.3.25-py2.py3-none-any.whl (26 kB)
Downloading jinja2-3.1.4-py3-none-any.whl (133 kB)
Downloading networkx-3.4.1-py3-none-any.whl (1.7 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.7/1.7 MB 10.9 MB/s eta 0:00:00
Downloading sympy-1.13.3-py3-none-any.whl (6.2 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 6.2/6.2 MB 14.5 MB/s eta 0:00:00
Downloading aiohttp-3.10.10-cp312-cp312-macosx_10_9_x86_64.whl (395 kB)
Downloading humanfriendly-10.0-py2.py3-none-any.whl (86 kB)
Downloading MarkupSafe-3.0.1-cp312-cp312-macosx_10_13_universal2.whl (14 kB)
Downloading mpmath-1.3.0-py3-none-any.whl (536 kB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 536.2/536.2 kB 5.2 MB/s eta 0:00:00
Downloading aiohappyeyeballs-2.4.3-py3-none-any.whl (14 kB)
Downloading aiosignal-1.3.1-py3-none-any.whl (7.6 kB)
Downloading attrs-24.2.0-py3-none-any.whl (63 kB)
Downloading frozenlist-1.4.1-cp312-cp312-macosx_10_9_x86_64.whl (53 kB)
Downloading multidict-6.1.0-cp312-cp312-macosx_10_9_x86_64.whl (29 kB)
Downloading yarl-1.15.2-cp312-cp312-macosx_10_13_x86_64.whl (88 kB)
Downloading propcache-0.2.0-cp312-cp312-macosx_10_13_x86_64.whl (46 kB)
Installing collected packages: mpmath, flatbuffers, typing-extensions, tensorboard-data-server, sympy, six, safetensors, regex, pyyaml, pyparsing, protobuf, propcache, pillow, numpy, networkx, multidict, MarkupSafe, markdown, kiwisolver, humanfriendly, grpcio, fsspec, frozenlist, fonttools, filelock, cycler, attrs, annotated-types, aiohappyeyeballs, absl-py, yarl, werkzeug, wavio, sounddevice, scipy, python-dateutil, pydantic-core, onnx, lightning-utilities, jinja2, huggingface-hub, contourpy, coloredlogs, aiosignal, torch, tokenizers, tensorboard, pydantic, onnxruntime, matplotlib, aiohttp, transformers, torchmetrics, auraloss, pytorch-lightning, neural-amp-modeler
Successfully installed MarkupSafe-3.0.1 absl-py-2.1.0 aiohappyeyeballs-2.4.3 aiohttp-3.10.10 aiosignal-1.3.1 annotated-types-0.7.0 attrs-24.2.0 auraloss-0.3.0 coloredlogs-15.0.1 contourpy-1.3.0 cycler-0.12.1 filelock-3.16.1 flatbuffers-24.3.25 fonttools-4.54.1 frozenlist-1.4.1 fsspec-2024.9.0 grpcio-1.66.2 huggingface-hub-0.25.2 humanfriendly-10.0 jinja2-3.1.4 kiwisolver-1.4.7 lightning-utilities-0.11.7 markdown-3.7 matplotlib-3.9.2 mpmath-1.3.0 multidict-6.1.0 networkx-3.4.1 neural-amp-modeler-0.10.0 numpy-2.1.2 onnx-1.17.0 onnxruntime-1.19.2 pillow-10.4.0 propcache-0.2.0 protobuf-5.28.2 pydantic-2.9.2 pydantic-core-2.23.4 pyparsing-3.2.0 python-dateutil-2.9.0.post0 pytorch-lightning-2.4.0 pyyaml-6.0.2 regex-2024.9.11 safetensors-0.4.5 scipy-1.14.1 six-1.16.0 sounddevice-0.5.1 sympy-1.13.3 tensorboard-2.18.0 tensorboard-data-server-0.7.2 tokenizers-0.20.1 torch-2.2.2 torchmetrics-1.4.3 transformers-4.45.2 typing-extensions-4.12.2 wavio-0.0.9 werkzeug-3.0.4 yarl-1.15.2

You can see the numpy download and install above. This causes problems with PyTorch (Issue is noted in pytorch/pytorch#107302):

(base) steve@Stevens-MacBook-Pro-2 ~ % nam

A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.1.2 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.

If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.

Traceback (most recent call last):  File "/Users/steve/opt/miniconda3/bin/nam", line 5, in <module>
    from nam.cli import nam_gui
  File "/Users/steve/opt/miniconda3/lib/python3.12/site-packages/nam/__init__.py", line 23, in <module>
    from . import data  # noqa F401
  File "/Users/steve/opt/miniconda3/lib/python3.12/site-packages/nam/data.py", line 19, in <module>
    import torch
  File "/Users/steve/opt/miniconda3/lib/python3.12/site-packages/torch/__init__.py", line 1477, in <module>
    from .functional import *  # noqa: F403
  File "/Users/steve/opt/miniconda3/lib/python3.12/site-packages/torch/functional.py", line 9, in <module>
    import torch.nn.functional as F
  File "/Users/steve/opt/miniconda3/lib/python3.12/site-packages/torch/nn/__init__.py", line 1, in <module>
    from .modules import *  # noqa: F403
  File "/Users/steve/opt/miniconda3/lib/python3.12/site-packages/torch/nn/modules/__init__.py", line 35, in <module>
    from .transformer import TransformerEncoder, TransformerDecoder, \
  File "/Users/steve/opt/miniconda3/lib/python3.12/site-packages/torch/nn/modules/transformer.py", line 20, in <module>
    device: torch.device = torch.device(torch._C._get_default_device()),  # torch.device('cpu'),
/Users/steve/opt/miniconda3/lib/python3.12/site-packages/torch/nn/modules/transformer.py:20: UserWarning: Failed to initialize NumPy: _ARRAY_API not found (Triggered internally at /Users/runner/work/pytorch/pytorch/pytorch/torch/csrc/utils/tensor_numpy.cpp:84.)
  device: torch.device = torch.device(torch._C._get_default_device()),  # torch.device('cpu'),
Strong hash: 36cd1af62985c2fac3e654333e36431e
Validating data...
Strong hash: 36cd1af62985c2fac3e654333e36431e
Delay based on average is 1
After aplying safety factor of 1, the final delay is 0
Set latency to recommended 0
V3 checks...
Replicate ESR is 0.00007053.
Now training /Users/steve/src/neural-amp-modeler/data/tutorial/output.wav
Strong hash: 36cd1af62985c2fac3e654333e36431e
Delay based on average is 1
After aplying safety factor of 1, the final delay is 0
Plotting the latency for manual inspection...
Set latency to recommended 0
V3 checks...
Replicate ESR is 0.00007053.
-Checks passed
WARNING: No GPU was found. Training will be very slow!
Starting training. It's time to kick ass and chew bubblegum!
GPU available: False, used: False
TPU available: False, using: 0 TPU cores
HPU available: False, using: 0 HPUs

  | Name | Type    | Params | Mode 
-----------------------------------------
0 | _net | WaveNet | 841    | train
-----------------------------------------
841       Trainable params
0         Non-trainable params
841       Total params
0.003     Total estimated model params size (MB)
111       Modules in train mode
0         Modules in eval mode
Epoch 0: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 1001/1001 [00:49<00:00, 20.04it/s, v_num=9]Exception in Tkinter callback                                                                                                                                                                    
Traceback (most recent call last):
  File "/Users/steve/opt/miniconda3/lib/python3.12/tkinter/__init__.py", line 1968, in __call__
    return self.func(*args)
           ^^^^^^^^^^^^^^^^
  File "/Users/steve/opt/miniconda3/lib/python3.12/site-packages/nam/train/gui/__init__.py", line 684, in _train
    self._train2()
  File "/Users/steve/opt/miniconda3/lib/python3.12/site-packages/nam/train/gui/__init__.py", line 704, in _train2
    train_output = core.train(
                   ^^^^^^^^^^^
  File "/Users/steve/opt/miniconda3/lib/python3.12/site-packages/nam/train/core.py", line 1447, in train
    trainer.fit(model, train_dataloader, val_dataloader)
  File "/Users/steve/opt/miniconda3/lib/python3.12/site-packages/pytorch_lightning/trainer/trainer.py", line 538, in fit
    call._call_and_handle_interrupt(
  File "/Users/steve/opt/miniconda3/lib/python3.12/site-packages/pytorch_lightning/trainer/call.py", line 47, in _call_and_handle_interrupt
    return trainer_fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/steve/opt/miniconda3/lib/python3.12/site-packages/pytorch_lightning/trainer/trainer.py", line 574, in _fit_impl
    self._run(model, ckpt_path=ckpt_path)
  File "/Users/steve/opt/miniconda3/lib/python3.12/site-packages/pytorch_lightning/trainer/trainer.py", line 981, in _run
    results = self._run_stage()
              ^^^^^^^^^^^^^^^^^
  File "/Users/steve/opt/miniconda3/lib/python3.12/site-packages/pytorch_lightning/trainer/trainer.py", line 1025, in _run_stage
    self.fit_loop.run()
  File "/Users/steve/opt/miniconda3/lib/python3.12/site-packages/pytorch_lightning/loops/fit_loop.py", line 206, in run
    self.on_advance_end()
  File "/Users/steve/opt/miniconda3/lib/python3.12/site-packages/pytorch_lightning/loops/fit_loop.py", line 378, in on_advance_end
    call._call_callback_hooks(trainer, "on_train_epoch_end", monitoring_callbacks=True)
  File "/Users/steve/opt/miniconda3/lib/python3.12/site-packages/pytorch_lightning/trainer/call.py", line 218, in _call_callback_hooks
    fn(trainer, trainer.lightning_module, *args, **kwargs)
  File "/Users/steve/opt/miniconda3/lib/python3.12/site-packages/pytorch_lightning/callbacks/model_checkpoint.py", line 325, in on_train_epoch_end
    self._save_topk_checkpoint(trainer, monitor_candidates)
  File "/Users/steve/opt/miniconda3/lib/python3.12/site-packages/pytorch_lightning/callbacks/model_checkpoint.py", line 385, in _save_topk_checkpoint
    self._save_monitor_checkpoint(trainer, monitor_candidates)
  File "/Users/steve/opt/miniconda3/lib/python3.12/site-packages/pytorch_lightning/callbacks/model_checkpoint.py", line 705, in _save_monitor_checkpoint
    self._update_best_and_save(current, trainer, monitor_candidates)
  File "/Users/steve/opt/miniconda3/lib/python3.12/site-packages/pytorch_lightning/callbacks/model_checkpoint.py", line 757, in _update_best_and_save
    self._save_checkpoint(trainer, filepath)
  File "/Users/steve/opt/miniconda3/lib/python3.12/site-packages/nam/train/core.py", line 1224, in _save_checkpoint
    nam_model.export(
  File "/Users/steve/opt/miniconda3/lib/python3.12/site-packages/nam/models/exportable.py", line 66, in export
    model_dict = self._get_export_dict()
                 ^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/steve/opt/miniconda3/lib/python3.12/site-packages/nam/models/_base.py", line 81, in _get_export_dict
    d = super()._get_export_dict()
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/steve/opt/miniconda3/lib/python3.12/site-packages/nam/models/exportable.py", line 157, in _get_export_dict
    "weights": self._export_weights().tolist(),
               ^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/steve/opt/miniconda3/lib/python3.12/site-packages/nam/models/wavenet.py", line 429, in _export_weights
    return self._net.export_weights()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/steve/opt/miniconda3/lib/python3.12/site-packages/nam/models/wavenet.py", line 322, in export_weights
    return weights.detach().cpu().numpy()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Numpy is not available
@sdatkinson sdatkinson added bug Something isn't working unread This issue is new and hasn't been seen by the maintainers yet priority:low Low-priority issues priority:high Prioritize and removed unread This issue is new and hasn't been seen by the maintainers yet priority:low Low-priority issues labels Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority:high Prioritize
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant