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:
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.
Hi Vincent,
The first important thing to check is whether your version of boost-python is compiled against python 3. python1. 42.0 installs the following files:
On my Ubuntu Natty box, libboost-
/usr/ lib/libboost_ python- py27.so. 1.42.0 lib/libboost_ python- py26.so. 1.42.0
/usr/
I guess a version compiled against py3k would exhibit it in the name of the .so file. 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!
I just checked http://
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.