I'm trying to install python-chess
package to Python 3.3 on Ubuntu 13.04.
Here is a link to github (https://github.com/niklasf/python-chess), it is also possible to install it using pip
.
When I install it to Python 2.7 (with pip
or with setup.py
from source code), everything works well, but when I try to install it to Python 3.3 with pip3
or running setup.py
with python3
, it seems to work well, but when I actually try to import it in python 3.3 interpreter, I get the following:
>>> import chess
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.3/dist-packages/python_chess-0.0.4-py3.3-linux-i686.egg/chess/__init__.py", line 30, in <module>
from libchess import START_FEN
ImportError: /usr/lib/libboost_python-py27.so.1.53.0: undefined symbol: PyClass_Type
>>>
It seems from this message, that the library is trying to use boost-python
for Python 2.7, even though it was built and then installed with Python 3.3. I have boost-python
package installed for both Python 2.7 and Python 3.3, so what I think I need is a way to let this library use /usr/lib/libboost_python-py33.so.1.53.0
file.
How can I achieve this? Or maybe my conclusion is wrong, and in that case, how do I really fix this problem?