How can I resolve this error? Maybe the error related to the numpy version?

2023-11-27 20:40:23.080476: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library ‘libcudart.so.11.0’; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory
2023-11-27 20:40:23.080505: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
2023-11-27 20:40:43.037607: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library ‘libcuda.so.1’; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory
2023-11-27 20:40:43.037647: W tensorflow/stream_executor/cuda/cuda_driver.cc:269] failed call to cuInit: UNKNOWN ERROR (303)
RuntimeError: module compiled against API version 0xf but this version of numpy is 0xe
RUNNING QMIX
Traceback (most recent call last):
File “/home/liyi/og-marl-main/examples/baselines/benchmark_smac.py”, line 291, in
app.run(main)
File “/home/liyi/.conda/envs/smacv1/lib/python3.9/site-packages/absl/app.py”, line 308, in run
_run_main(main, args)
File “/home/liyi/.conda/envs/smacv1/lib/python3.9/site-packages/absl/app.py”, line 254, in _run_main
sys.exit(main(argv))
File “/home/liyi/og-marl-main/examples/baselines/benchmark_smac.py”, line 285, in main
system.run_offline(
File “/home/liyi/og-marl-main/og_marl/systems/iql/system_builder.py”, line 363, in run_offline
dataset = MAOfflineDataset(
File “/home/liyi/og-marl-main/og_marl/offline_tools/offline_dataset.py”, line 49, in init
self._no_repeat_dataset = filename_dataset.interleave(
File “/home/liyi/.conda/envs/smacv1/lib/python3.9/site-packages/tensorflow/python/data/ops/dataset_ops.py”, line 2183, in interleave
return ParallelInterleaveDataset(
File “/home/liyi/.conda/envs/smacv1/lib/python3.9/site-packages/tensorflow/python/data/ops/dataset_ops.py”, line 5368, in init
self._map_func = structured_function.StructuredFunctionWrapper(
File “/home/liyi/.conda/envs/smacv1/lib/python3.9/site-packages/tensorflow/python/data/ops/structured_function.py”, line 271, in init
self._function = fn_factory()
File “/home/liyi/.conda/envs/smacv1/lib/python3.9/site-packages/tensorflow/python/eager/function.py”, line 3070, in get_concrete_function
graph_function = self._get_concrete_function_garbage_collected(
File “/home/liyi/.conda/envs/smacv1/lib/python3.9/site-packages/tensorflow/python/eager/function.py”, line 3036, in _get_concrete_function_garbage_collected
graph_function, _ = self._maybe_define_function(args, kwargs)
File “/home/liyi/.conda/envs/smacv1/lib/python3.9/site-packages/tensorflow/python/eager/function.py”, line 3292, in _maybe_define_function
graph_function = self._create_graph_function(args, kwargs)
File “/home/liyi/.conda/envs/smacv1/lib/python3.9/site-packages/tensorflow/python/eager/function.py”, line 3130, in _create_graph_function
func_graph_module.func_graph_from_py_func(
File “/home/liyi/.conda/envs/smacv1/lib/python3.9/site-packages/tensorflow/python/framework/func_graph.py”, line 1161, in func_graph_from_py_func
func_outputs = python_func(*func_args, **func_kwargs)
File “/home/liyi/.conda/envs/smacv1/lib/python3.9/site-packages/tensorflow/python/data/ops/structured_function.py”, line 248, in wrapped_fn
ret = wrapper_helper(*args)
File “/home/liyi/.conda/envs/smacv1/lib/python3.9/site-packages/tensorflow/python/data/ops/structured_function.py”, line 177, in wrapper_helper
ret = autograph.tf_convert(self._func, ag_ctx)(*nested_args)
File “/home/liyi/.conda/envs/smacv1/lib/python3.9/site-packages/tensorflow/python/autograph/impl/api.py”, line 692, in wrapper
raise e.ag_error_metadata.to_exception(e)
TypeError: in user code:

File "/home/liyi/og-marl-main/og_marl/offline_tools/offline_dataset.py", line 50, in None  *
    )

TypeError: The `filenames` argument must contain `tf.string` elements. Got `tf.float32` elements.

And I have tried to modify the numpy version, but the numpy version only seems to be 1.21.6.
scipy 1.11.4 requires numpy<1.28.0,>=1.21.6; id-mava 0.1.3 requires numpy~=1.21.4;
Could not find a version that satisfies the requirement numpy==1.21.7 (from versions: 1.3.0, 1.4.1, 1.5.0, 1.5.1 1.6.0, 1.6.1, 1.6.2, 1.7.0, 1.7.1, 1.7.2, 1.8.0 comes with that, version 1.8.1, 1.8.2, 1.9.0, 1.9.1, 1.9.2, 1.9.3, 1.10.0 post2, 1.10.1 1.10.2, 1.10.4, 1.11.0, 1.11.1, 1.11.2, 1.11.3, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 1.13.3, 1.14.0, 1.14.1 1.14.2, 1.14.3 1.14.4, 1.14.5, 1.14.6, 1.15.0, 1.15.1, 1.15.2, 1.15.3, 1.15.4, 1.16.0, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5 1.16.6, 1.17.0 1.17.1, 1.17.2, 1.17.3, 1.17.4, 1.17.5, 1.18.0, 1.18.1, 1.18.2, 1.18.3, 1.18.4, 1.18.5, 1.19.0, 1.19.1 1.19.2, 1.19.3 1.19.4, 1.19.5, 1.20.0, 1.20.1, 1.20.2, 1.20.3, 1.21.0, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6 1.22.0, 1.22.1 1.22.2, 1.22.3, 1.22.4, 1.23.0 rc1, 1.23.0 rc2, 1.23.0 rc3, 1.23.0, 1.23.1, 1.23.2, 1.23.3, 1.23.4 1.23.5, 1.24.0 rc1, 1.24.0 rc2, 1.24.0, 1.24.1, 1.24.2, 1.24.3, 1.24.4, 1.25.0 rc1, 1.25.0, 1.25.1, 1.25.2 1.26.0 b1, 1.26.0 rc1, 1.26.0 1.26.1 1.26.2)

And there are my pachages

packages in environment at /home/liyi/.conda/envs/smacv1:

Name Version Build Channel

_libgcc_mutex 0.1 main
_openmp_mutex 5.1 1_gnu
absl-py 2.0.0 pypi_0 pypi
appdirs 1.4.4 pypi_0 pypi
arrow 1.3.0 pypi_0 pypi
astunparse 1.6.3 pypi_0 pypi
attrs 23.1.0 pypi_0 pypi
boto3 1.29.6 pypi_0 pypi
botocore 1.32.6 pypi_0 pypi
box2d-py 2.3.8 pypi_0 pypi
bravado 11.0.3 pypi_0 pypi
bravado-core 6.1.0 pypi_0 pypi
ca-certificates 2023.08.22 h06a4308_0
cachetools 5.3.2 pypi_0 pypi
certifi 2023.11.17 pypi_0 pypi
charset-normalizer 3.3.2 pypi_0 pypi
chex 0.1.7 pypi_0 pypi
click 8.1.7 pypi_0 pypi
cloudpickle 3.0.0 pypi_0 pypi
contourpy 1.2.0 pypi_0 pypi
cudatoolkit 11.3.1 h2bc3f7f_2
cudnn 8.2.1 cuda11.3_0
cycler 0.12.1 pypi_0 pypi
dataclasses 0.6 pypi_0 pypi
decorator 5.1.1 pypi_0 pypi
deepdiff 6.7.1 pypi_0 pypi
dm-acme 0.4.0 pypi_0 pypi
dm-env 1.6 pypi_0 pypi
dm-env-rpc 1.1.6 pypi_0 pypi
dm-launchpad 0.5.0 pypi_0 pypi
dm-reverb 0.7.3 pypi_0 pypi
dm-sonnet 2.0.1 pypi_0 pypi
dm-tree 0.1.8 pypi_0 pypi
docker-pycreds 0.4.0 pypi_0 pypi
enum34 1.1.10 pypi_0 pypi
flatbuffers 23.5.26 pypi_0 pypi
fonttools 4.45.1 pypi_0 pypi
fqdn 1.5.1 pypi_0 pypi
future 0.18.3 pypi_0 pypi
gast 0.5.4 pypi_0 pypi
gitdb 4.0.11 pypi_0 pypi
gitpython 3.1.40 pypi_0 pypi
google-auth 2.23.4 pypi_0 pypi
google-auth-oauthlib 0.4.6 pypi_0 pypi
google-pasta 0.2.0 pypi_0 pypi
googleapis-common-protos 1.61.0 pypi_0 pypi
grpcio 1.59.3 pypi_0 pypi
gym 0.23.0 pypi_0 pypi
gym-notices 0.0.8 pypi_0 pypi
h5py 3.10.0 pypi_0 pypi
id-mava 0.1.3 pypi_0 pypi
idna 3.6 pypi_0 pypi
immutabledict 4.0.0 pypi_0 pypi
importlib-metadata 6.8.0 pypi_0 pypi
importlib-resources 6.1.1 pypi_0 pypi
isoduration 20.11.0 pypi_0 pypi
jax 0.4.13 pypi_0 pypi
jaxlib 0.4.13 pypi_0 pypi
jmespath 1.0.1 pypi_0 pypi
jsonpointer 2.4 pypi_0 pypi
jsonref 1.1.0 pypi_0 pypi
jsonschema 4.20.0 pypi_0 pypi
jsonschema-specifications 2023.11.1 pypi_0 pypi
keras 2.8.0 pypi_0 pypi
keras-preprocessing 1.1.2 pypi_0 pypi
kiwisolver 1.4.5 pypi_0 pypi
ld_impl_linux-64 2.38 h1181459_1
libclang 16.0.6 pypi_0 pypi
libffi 3.3 he6710b0_2
libgcc-ng 11.2.0 h1234567_1
libgomp 11.2.0 h1234567_1
libstdcxx-ng 11.2.0 h1234567_1
markdown 3.5.1 pypi_0 pypi
markupsafe 2.1.3 pypi_0 pypi
matplotlib 3.8.2 pypi_0 pypi
ml-dtypes 0.3.1 pypi_0 pypi
mock 5.1.0 pypi_0 pypi
monotonic 1.6 pypi_0 pypi
mpyq 0.2.5 pypi_0 pypi
msgpack 1.0.7 pypi_0 pypi
ncurses 6.4 h6a678d5_0
neptune-client 0.16.2 pypi_0 pypi
numpy 1.21.6 pypi_0 pypi
oauthlib 3.2.2 pypi_0 pypi
og-marl 0.0.1 dev_0
openssl 1.1.1w h7f8727e_0
opt-einsum 3.3.0 pypi_0 pypi
ordered-set 4.1.0 pypi_0 pypi
packaging 23.2 pypi_0 pypi
pandas 2.0.3 pypi_0 pypi
pillow 10.1.0 pypi_0 pypi
pip 23.3.1 py39h06a4308_0
portpicker 1.6.0 pypi_0 pypi
protobuf 3.20.2 pypi_0 pypi
psutil 5.9.6 pypi_0 pypi
pyasn1 0.5.1 pypi_0 pypi
pyasn1-modules 0.3.0 pypi_0 pypi
pygame 2.5.2 pypi_0 pypi
pyjwt 2.8.0 pypi_0 pypi
pyparsing 3.1.1 pypi_0 pypi
pysc2 4.0.0 pypi_0 pypi
python 3.9.0 hdb3f193_2
python-dateutil 2.8.2 pypi_0 pypi
pytz 2023.3.post1 pypi_0 pypi
pyyaml 6.0.1 pypi_0 pypi
readline 8.2 h5eee18b_0
referencing 0.31.0 pypi_0 pypi
requests 2.31.0 pypi_0 pypi
requests-oauthlib 1.3.1 pypi_0 pypi
rfc3339-validator 0.1.4 pypi_0 pypi
rfc3987 1.3.8 pypi_0 pypi
rpds-py 0.13.1 pypi_0 pypi
rsa 4.9 pypi_0 pypi
s2clientprotocol 5.0.12.91115.0 pypi_0 pypi
s2protocol 5.0.12.91115.0 pypi_0 pypi
s3transfer 0.7.0 pypi_0 pypi
scipy 1.11.4 pypi_0 pypi
seaborn 0.13.0 pypi_0 pypi
sentry-sdk 1.37.1 pypi_0 pypi
setproctitle 1.3.3 pypi_0 pypi
setuptools 68.0.0 py39h06a4308_0
simplejson 3.19.2 pypi_0 pypi
six 1.16.0 pypi_0 pypi
sk-video 1.1.10 pypi_0 pypi
smac 1.0.0 pypi_0 pypi
smmap 5.0.1 pypi_0 pypi
sqlite 3.41.2 h5eee18b_0
swagger-spec-validator 3.0.3 pypi_0 pypi
swig 4.1.1.post0 pypi_0 pypi
tabulate 0.9.0 pypi_0 pypi
tensorboard 2.8.0 pypi_0 pypi
tensorboard-data-server 0.6.1 pypi_0 pypi
tensorboard-plugin-wit 1.8.1 pypi_0 pypi
tensorflow-estimator 2.8.0 pypi_0 pypi
tensorflow-gpu 2.8.1 pypi_0 pypi
tensorflow-io 0.27.0 pypi_0 pypi
tensorflow-io-gcs-filesystem 0.27.0 pypi_0 pypi
tensorflow-probability 0.15.0 pypi_0 pypi
termcolor 2.3.0 pypi_0 pypi
tk 8.6.12 h1ccaba5_0
toolz 0.12.0 pypi_0 pypi
trfl 1.2.0 pypi_0 pypi
types-python-dateutil 2.8.19.14 pypi_0 pypi
typing-extensions 4.8.0 pypi_0 pypi
tzdata 2023.3 pypi_0 pypi
uri-template 1.3.0 pypi_0 pypi
urllib3 1.26.18 pypi_0 pypi
wandb 0.16.0 pypi_0 pypi
webcolors 1.13 pypi_0 pypi
websocket-client 1.6.4 pypi_0 pypi
werkzeug 3.0.1 pypi_0 pypi
wheel 0.41.2 py39h06a4308_0
wrapt 1.16.0 pypi_0 pypi
xz 5.4.2 h5eee18b_0
zipp 3.17.0 pypi_0 pypi
zlib 1.2.13 h5eee18b_0

Hi @864700254, For the packages list i can see that you are using tensorflow 2.8.

As per test build configuration the CUDA and cuDNN supported are 11.2 and 8.1 respectively. But i can see you are using the cuDNN 8.2 and CUDA 11.3. Could you please try to install the supported versions. Thank You.

Thank you very much for your reply, but I installed cuda on the server without sudo permission, so I can only use conda install to install it. The official website of anaconda does not have these versions you mentioned. Maybe I’ll have to give up using a code framework that includes tensorflow
However, I found that some people can run through the code with these versions, perhaps I also need to configure some additional environment paths?
Thanks again for your reply

And I don’t know if “RuntimeError: module compiled against API version 0xf but this version of numpy is 0xe” has more impact, causing the error "TypeError: The filenames argument must contain tf.string elements. Got tf.float32 elements.”