facebookresearch / hanabi_SAD

Simplified Action Decoder for Deep Multi-Agent Reinforcement Learning
Other
96 stars 35 forks source link

ImportError: undefined symbol: _ZNK19hanabi_learning_env10HanabiGame10ParametersEv #4

Closed ZishunYu closed 4 years ago

ZishunYu commented 4 years ago

Hi, Hengyuan

I am sorry to bother you but I encounter an import error when I tried to run a trained model.

image

I tried to do some search and find some solution but didn't get my issue solved. It seems that the error code is saying that the symbol is undefined in the .so file

But when I do nm -g hanalearn.cpython-37m-x86_64-linux-gnu.so | grep _ZNK19hanabi_learning_env10HanabiGame10ParametersEv I get image

I am using a different g++ and CUDA version g++/gcc 5 and CUDA 9.0 same pytorch version (1.3.0)

I understand this might be caused by different g++/gcc version but currently I don't want to upgrade my CUDA (which not compatible with higher g++/gcc). Hence, I am trying to seek some help to fix this without upgrading if possible.

Thank you very much, ZIshun

hengyuan-hu commented 4 years ago

It is highly likely to be a compiler related error. You may try a different compiler and see if you can successfully import the module to decide whether it worth changing the cuda version afterwards.

ZishunYu commented 4 years ago

Thanks for your advice. It seems that I have to upgrade CUDA anyway otherwise I cannot compile with GCC/G++ 7.