Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doom_py pointing to libboost-python27 #26

Open
HariAarthi opened this issue Feb 8, 2018 · 1 comment
Open

doom_py pointing to libboost-python27 #26

HariAarthi opened this issue Feb 8, 2018 · 1 comment

Comments

@HariAarthi
Copy link

HariAarthi commented Feb 8, 2018

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

@minyoungg
Copy link

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants