diplomacy_cicero icon indicating copy to clipboard operation
diplomacy_cicero copied to clipboard

Undefined Reference Errors when running make

Open CodeNinja98 opened this issue 2 years ago • 3 comments

Using Debian Linux. Followed install instructions, but on running make am getting a bunch of undefined reference errors as follows:

[ 83%] Built target gmock_main [ 91%] Linking CXX shared module /home/[username]/diplomacy_cicero/fairdiplomacy/selfplay/rela.cpython-37m-x86_64-linux-gnu.so [100%] Linking CXX executable prioritized_replay_test /usr/bin/ld: /opt/conda/envs/cicero2/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyUnicode_InternFromString' /usr/bin/ld: /opt/conda/envs/cicero2/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to PyInstanceMethod_Type' /usr/bin/ld: /opt/conda/envs/cicero2/lib/python3.7/site-packages/torch/lib/libtorch_python.so: undefined reference to `PyDict_DelItemString'

Have also tested this on several other machines/configurations with the same results.

CodeNinja98 avatar Dec 22 '22 20:12 CodeNinja98

For now, I would suggest commenting out the selfplay target in the Makefile. Everything except self-play RL should still work.

@akhti can take a look when back from vacation.

adamlerer avatar Dec 26 '22 16:12 adamlerer

For now, I would suggest commenting out the selfplay target in the Makefile. Everything except self-play RL should still work.

@akhti can take a look when back from vacation.

Thank you! This workaround does appear to work for now, we are currently having some issues with missing includes when we run it with the example command:

python run.py --adhoc --cfg conf/c01_ag_cmp/cmp.prototxt Iagent_one=agents/bqre1p_parlai_20220819_cicero_2.prototxt Iagent_six=agents/ablations/cicero_imitation_only.prototxt power_one=TURKEY

but are working on resolving those.

CodeNinja98 avatar Dec 26 '22 23:12 CodeNinja98

Is this fixed?

akhti avatar Feb 08 '23 16:02 akhti