gym-doom icon indicating copy to clipboard operation
gym-doom copied to clipboard

doom_py pointing to libboost-python27

Open HariAarthi opened this issue 7 years ago • 1 comments

Hi,

On running the following code : import doom_py from doom_py.vizdoom import *

I see the below error.

ImportError: /usr/lib/x86_64-linux-gnu/libboost_python-py27.so.1.58.0: undefined symbol: PyClass_Type

Is this my configuration related error? Should this be pointed to python 3.6? I am using Ubuntu 16.04

HariAarthi avatar Feb 08 '18 11:02 HariAarthi

I ran into this issue when installing doom_py using python3.6. The cmake file seems to look for libboost_python-py36 which doesnt exist. One work around is to symlink py34 libboost suggested here

cd /usr/lib/x86_64-linux-gnu/ # or cd /usr/lib 
sudo ln -s libboost_python-py34.so libboost_python3.so

Now clean your build and reinstall

pip uninstall doom_py
python setup.py clean
python setup.py build
# you should see in the build ..  'Found the following Boost libraries: ..'
pip install -e .

See if it works python -c 'import doom_py'

minyoungg avatar Apr 16 '18 13:04 minyoungg