Comment 3 for bug 824440

Revision history for this message
Olivier Tilloy (osomon) wrote :

Hi Vincent,

The first important thing to check is whether your version of boost-python is compiled against python 3.
On my Ubuntu Natty box, libboost-python1.42.0 installs the following files:

    /usr/lib/libboost_python-py27.so.1.42.0
    /usr/lib/libboost_python-py26.so.1.42.0

I guess a version compiled against py3k would exhibit it in the name of the .so file.
I just checked http://www.archlinux.org/packages/extra/i686/boost-libs/ and the package contains /usr/lib/libboost_python3.so.1.47.0, so it looks like it’s going to work!

Now, I’m pretty sure that scons won’t run with python3, but it shouldn’t be a problem in itself, we can modify src/SConscript to hardcode the compilation flags to point to python3 instead of the current version in use by scons.

In src/SConscript, there are references to get_python_inc and get_python_lib, you will need to replace those code by hardcoded values that you will obtain from executing them in a python3 shell.

Please let me know if this helps, or the problems you encounter, I’ll gladly help. Having pyexiv2 work with py3k would be awesome!

Note that as far as I can tell the default version of Python in Ubuntu Oneiric is still 2.7.