No usable boost::python found -- but

Hi,

I'm trying to install graph-tool, but when running the configure script am
getting this error
"configure: error: No usable boost::python found"

However I installed boost and went through the necessary steps to compile
the boost-python portion of the library. The procedure to compile the
boost-python portion of the library ends with a test, and this test is
passed with no errors. All went as expected with boost and seemed right.

I think I might know why the configure script might not be finding the
boost library, though not sure what to do about it.

I'm running Ubuntu 12.04, which comes with python2.7. However, I have
installed the enthought python distribution, and this is what I associated
boost-python to during its compilation. My guess is that this might have
to do with the configure script finding the python that came bundled with
my Ubuntu distribution, and not the Enthought python to which boost-python
is associated.

Would anyone be able to advise on how to proceed? Is there a way to tell
it the path to the correct python installation?

I also tried installing using apt-get. The installation seems to go well,
but it associates to the version of python that came with my Ubuntu
distribution, not Enthought python. I don't believe I can alter the
behavior of apt-get.

I need this to work with my Enthought python. Any hints would be much
appreciated.

Regards,

attachment.html (1.47 KB)

Hi there,

I'm running Ubuntu 12.04, which comes with python2.7. However, I have
installed the enthought python distribution, and this is what I
associated boost-python to during its compilation. My guess is that
this might have to do with the configure script finding the python
that came bundled with my Ubuntu distribution, and not the Enthought
python to which boost-python is associated.

I guess your enthought python does not precede the default python in
your path. I guess all you have to do is inform the configure script
which python it should use:

    ./configure PYTHON="/path/to/your/python/interpreter"

I also tried installing using apt-get. The installation seems to go
well, but it associates to the version of python that came with my
Ubuntu distribution, not Enthought python. I don't believe I can
alter the behavior of apt-get.

No you can't. Although, if thy python versions are compatible, you can
just add the default python module path to entought's python, which
should allow it to import your system's modules, including graph-tool.

Cheers,
Tiago

Hi thanks for the reply!

Actually my enthought python does precede the default python in my PATH.
But I think the problem is not related to python per se, but to the
installation of the Boost library. The symptom is that while running
./configure (with or without the PYTHON option) config runs until it prints
out "configure: error: No usable boost::python found". Because of the
possible confusion between python installations I was inclined to believe
it was a problem finding the correct python. I should say that when
compiling Boost.Python, I did specifiy the enthought python as provided by
its options, and its own testing went ok.

But no matter: I used apt-get and just included the site-packages dir for
my default python install in the sys.path of my preferred python install.
Works!

Thanks for you help!
Edward.

attachment.html (2.94 KB)