I have read all of the other posts about this, but I am already using numpy 1.26.4. I have a conda venv and here is the error:
Python 3.10.13 | packaged by conda-forge | (main, Dec 23 2023, 15:36:39) [GCC 12.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
import torch
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.0 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 "<stdin>", line 1, in <module>
File "/home/dave/.local/lib/python3.10/site-packages/torch/__init__.py", line 1382, in <module>
from .functional import * # noqa: F403
File "/home/dave/.local/lib/python3.10/site-packages/torch/functional.py", line 7, in <module>
import torch.nn.functional as F
File "/home/dave/.local/lib/python3.10/site-packages/torch/nn/__init__.py", line 1, in <module>
from .modules import * # noqa: F403
File "/home/dave/.local/lib/python3.10/site-packages/torch/nn/modules/__init__.py", line 35, in <module>
from .transformer import TransformerEncoder, TransformerDecoder, \
File "/home/dave/.local/lib/python3.10/site-packages/torch/nn/modules/transformer.py", line 20, in <module>
device: torch.device = torch.device(torch._C._get_default_device()), # torch.device('cpu'),
/home/dave/.local/lib/python3.10/site-packages/torch/nn/modules/transformer.py:20: UserWarning: Failed to initialize NumPy: _ARRAY_API not found (Triggered internally at ../torch/csrc/utils/tensor_numpy.cpp:84.)
device: torch.device = torch.device(torch._C._get_default_device()), # torch.device('cpu'),
Here is the conda listing:
Name Version Build Channel
_libgcc_mutex 0.1 conda_forge conda-forge
_openmp_mutex 4.5 2_kmp_llvm conda-forge
aiohttp 3.9.5 py310h5eee18b_0
aiosignal 1.2.0 pyhd3eb1b0_0
annotated-types 0.6.0 py310h06a4308_0
anyio 4.2.0 py310h06a4308_0
async-timeout 4.0.3 py310h06a4308_0
attrs 23.1.0 py310h06a4308_0
aws-c-auth 0.7.22 h96bc93b_2 conda-forge
aws-c-cal 0.6.14 h88a6e22_1 conda-forge
aws-c-common 0.9.19 h4ab18f5_0 conda-forge
aws-c-compression 0.2.18 h83b837d_6 conda-forge
aws-c-event-stream 0.4.2 ha47c788_12 conda-forge
aws-c-http 0.8.1 h29d6fba_17 conda-forge
aws-c-io 0.14.8 h21d4f22_5 conda-forge
aws-c-mqtt 0.10.4 h759edc4_4 conda-forge
aws-c-s3 0.5.9 h594631b_3 conda-forge
aws-c-sdkutils 0.1.16 h83b837d_2 conda-forge
aws-checksums 0.1.18 h83b837d_6 conda-forge
aws-crt-cpp 0.26.9 he3a8b3b_0 conda-forge
aws-sdk-cpp 1.11.329 hba8bd5f_3 conda-forge
blas 1.0 openblas
brotli-python 1.0.9 py310h6a678d5_8
bzip2 1.0.8 h5eee18b_6
c-ares 1.28.1 hd590300_0 conda-forge
ca-certificates 2024.7.4 hbcca054_0 conda-forge
certifi 2024.7.4 pyhd8ed1ab_0 conda-forge
charset-normalizer 2.0.4 pyhd3eb1b0_0
colorama 0.4.6 pyhd8ed1ab_0 conda-forge
cuda-cudart 12.5.82 he02047a_0 conda-forge
cuda-cudart_linux-64 12.5.82 h85509e4_0 conda-forge
cuda-nvrtc 12.5.82 he02047a_0 conda-forge
cuda-nvtx 12.5.82 he02047a_0 conda-forge
cuda-version 12.5 hd4f0392_3 conda-forge
cudnn 8.9.7.29 h092f7fd_3 conda-forge
dataclasses-json 0.6.5 py310h06a4308_0
datasets 2.20.0 pyhd8ed1ab_0 conda-forge
dill 0.3.8 pyhd8ed1ab_0 conda-forge
exceptiongroup 1.2.0 py310h06a4308_0
filelock 3.15.4 pyhd8ed1ab_0 conda-forge
frozenlist 1.4.0 py310h5eee18b_0
fsspec 2024.5.0 pyhff2d567_0 conda-forge
gflags 2.2.2 he1b5a44_1004 conda-forge
glog 0.7.1 hbabe93e_0 conda-forge
gmp 6.3.0 hac33072_2 conda-forge
gmpy2 2.1.5 py310hc7909c9_1 conda-forge
greenlet 3.0.1 py310h6a678d5_0
huggingface_hub 0.23.4 pyhd8ed1ab_0 conda-forge
icu 73.2 h59595ed_0 conda-forge
idna 3.7 py310h06a4308_0
jinja2 3.1.4 pyhd8ed1ab_0 conda-forge
jsonpatch 1.33 py310h06a4308_1
jsonpointer 2.1 pyhd3eb1b0_0
keyutils 1.6.1 h166bdaf_0 conda-forge
krb5 1.21.3 h659f571_0 conda-forge
langchain 0.2.7 pyhd8ed1ab_0 conda-forge
langchain-community 0.2.6 pyhd8ed1ab_0 conda-forge
langchain-core 0.2.11 pyhd8ed1ab_0 conda-forge
langchain-experimental 0.0.62 pyhd8ed1ab_0 conda-forge
langchain-text-splitters 0.2.2 pyhd8ed1ab_0 conda-forge
langsmith 0.1.84 pyhd8ed1ab_0 conda-forge
ld_impl_linux-64 2.38 h1181459_1
libabseil 20240116.2 cxx17_h59595ed_0 conda-forge
libarrow 16.1.0 hcb6531f_6_cpu conda-forge
libarrow-acero 16.1.0 hac33072_6_cpu conda-forge
libarrow-dataset 16.1.0 hac33072_6_cpu conda-forge
libarrow-substrait 16.1.0 h7e0c224_6_cpu conda-forge
libblas 3.9.0 16_linux64_openblas conda-forge
libbrotlicommon 1.1.0 hd590300_1 conda-forge
libbrotlidec 1.1.0 hd590300_1 conda-forge
libbrotlienc 1.1.0 hd590300_1 conda-forge
libcblas 3.9.0 16_linux64_openblas conda-forge
libcrc32c 1.1.2 h9c3ff4c_0 conda-forge
libcublas 12.5.3.2 he02047a_0 conda-forge
libcufft 11.2.3.61 he02047a_0 conda-forge
libcurand 10.3.6.82 he02047a_0 conda-forge
libcurl 8.8.0 hca28451_1 conda-forge
libcusolver 11.6.3.83 he02047a_0 conda-forge
libcusparse 12.5.1.3 he02047a_0 conda-forge
libedit 3.1.20230828 h5eee18b_0
libev 4.33 hd590300_2 conda-forge
libevent 2.1.12 hf998b51_1 conda-forge
libffi 3.4.4 h6a678d5_1
libgcc-ng 14.1.0 h77fa898_0 conda-forge
libgfortran-ng 11.2.0 h00389a5_1
libgfortran5 11.2.0 h1234567_1
libgomp 14.1.0 h77fa898_0 conda-forge
libgoogle-cloud 2.24.0 h2736e30_0 conda-forge
libgoogle-cloud-storage 2.24.0 h3d9a0c8_0 conda-forge
libgrpc 1.62.2 h15f2491_0 conda-forge
libhwloc 2.11.0 default_h5622ce7_1000 conda-forge
libiconv 1.17 hd590300_2 conda-forge
liblapack 3.9.0 16_linux64_openblas conda-forge
libmagma 2.7.2 h173bb3b_2 conda-forge
libmagma_sparse 2.7.2 h173bb3b_3 conda-forge
libnghttp2 1.58.0 h47da74e_1 conda-forge
libnsl 2.0.1 hd590300_0 conda-forge
libnvjitlink 12.5.82 he02047a_0 conda-forge
libopenblas 0.3.21 h043d6bf_0
libparquet 16.1.0 h6a7eafb_6_cpu conda-forge
libpq 16.3 ha72fbe1_0 conda-forge
libprotobuf 4.25.3 h08a7969_0 conda-forge
libre2-11 2023.09.01 h5a48ba9_2 conda-forge
libsqlite 3.46.0 hde9e2c9_0 conda-forge
libssh2 1.11.0 h0841786_0 conda-forge
libstdcxx-ng 14.1.0 hc0a3c3a_0 conda-forge
libthrift 0.19.0 hb90f79a_1 conda-forge
libtorch 2.3.1 cuda120_h2b0da52_300 conda-forge
libutf8proc 2.8.0 h166bdaf_0 conda-forge
libuuid 2.38.1 h0b41bf4_0 conda-forge
libuv 1.48.0 hd590300_0 conda-forge
libxcrypt 4.4.36 hd590300_1 conda-forge
libxml2 2.12.7 hc051c1a_1 conda-forge
libzlib 1.2.13 h4ab18f5_6 conda-forge
llvm-openmp 18.1.7 ha31de31_0 conda-forge
lz4-c 1.9.4 hcb278e6_0 conda-forge
markupsafe 2.1.5 py310h2372a71_0 conda-forge
marshmallow 3.19.0 py310h06a4308_0
mkl 2023.2.0 h84fe81f_50496 conda-forge
mpc 1.3.1 hfe3b2da_0 conda-forge
mpfr 4.2.1 h9458935_1 conda-forge
mpmath 1.3.0 pyhd8ed1ab_0 conda-forge
multidict 6.0.4 py310h5eee18b_0
multiprocess 0.70.16 py310h2372a71_0 conda-forge
mypy_extensions 1.0.0 py310h06a4308_0
nccl 2.22.3.1 hbc370b7_0 conda-forge
ncurses 6.4 h6a678d5_0
networkx 3.3 pyhd8ed1ab_1 conda-forge
numpy 1.26.4 py310heeff2f4_0
numpy-base 1.26.4 py310h8a23956_0
openssl 3.3.1 h4ab18f5_1 conda-forge
orc 2.0.1 h17fec99_1 conda-forge
orjson 3.9.15 py310h97a8848_0
packaging 23.2 py310h06a4308_0
pandas 2.2.2 py310hf9f9076_1 conda-forge
pip 24.0 py310h06a4308_0
psycopg2 2.9.9 py310h275853b_0 conda-forge
pyarrow 16.1.0 py310h17c5347_1 conda-forge
pyarrow-core 16.1.0 py310h6f79a3a_1_cpu conda-forge
pyarrow-hotfix 0.6 pyhd8ed1ab_0 conda-forge
pybind11 2.13.1 py310h25c7140_0 conda-forge
pybind11-global 2.13.1 py310h25c7140_0 conda-forge
pydantic 2.5.3 py310h06a4308_0
pydantic-core 2.14.6 py310hb02cf49_0
pysocks 1.7.1 py310h06a4308_0
python 3.10.13 hd12c33a_1_cpython conda-forge
python-dateutil 2.9.0 pyhd8ed1ab_0 conda-forge
python-tzdata 2024.1 pyhd8ed1ab_0 conda-forge
python-xxhash 3.4.1 py310h2372a71_0 conda-forge
python_abi 3.10 2_cp310 conda-forge
pytorch 2.3.1 cuda120_py310h2c91c31_300 conda-forge
pytz 2024.1 pyhd8ed1ab_0 conda-forge
pyyaml 6.0.1 py310h5eee18b_0
re2 2023.09.01 h7f4b329_2 conda-forge
readline 8.2 h5eee18b_0
regex 2024.5.15 py310hc51659f_0 conda-forge
requests 2.32.2 py310h06a4308_0
s2n 1.4.15 he19d79f_0 conda-forge
safetensors 0.4.3 py310hcb5633a_0 conda-forge
setuptools 69.5.1 py310h06a4308_0
six 1.16.0 pyh6c4a22f_0 conda-forge
sleef 3.5.1 h9b69904_2 conda-forge
snappy 1.2.1 ha2e4443_0 conda-forge
sniffio 1.3.0 py310h06a4308_0
sqlalchemy 2.0.30 py310h5eee18b_0
sqlite 3.45.3 h5eee18b_0
sympy 1.12.1 pypyh2585a3b_103 conda-forge
tbb 2021.12.0 h434a139_2 conda-forge
tenacity 8.2.2 py310h06a4308_0
tk 8.6.14 h39e8969_0
tokenizers 0.19.1 py310h320607d_0 conda-forge
tqdm 4.66.4 pyhd8ed1ab_0 conda-forge
transformers 4.42.3 pyhd8ed1ab_0 conda-forge
typing-extensions 4.11.0 py310h06a4308_0
typing_extensions 4.11.0 py310h06a4308_0
typing_inspect 0.9.0 py310h06a4308_0
tzdata 2024a h04d1e81_0
urllib3 2.2.2 py310h06a4308_0
wheel 0.43.0 py310h06a4308_0
xxhash 0.8.2 hd590300_0 conda-forge
xz 5.4.6 h5eee18b_1
yaml 0.2.5 h7b6447c_0
yarl 1.9.3 py310h5eee18b_0
zlib 1.2.13 h4ab18f5_6 conda-forge
zstd 1.5.6 ha6fb4c9_0 conda-forge
Does anyone have any suggestions on how to correct this issue? In addition, pybind is already version 2.13.1 Is there something I am missing or are there some other modules I need to upgrade/downgrade? The listing above is all that is installed in this environment.
Thank You!