libgraph_tool

Sorry to post again :slight_smile:

Post as many times as you want! :slight_smile:

I'm trying to compile graph-tool on my new desktop. I've downloaded the
development source code and I think (or thought!) I have everything needed
for the install.

Here's what I do logged in as root:
$./autogen.sh
$./configure --disable-visibility
$make
$make install

All seems to work with no visible errors. However, here's what I get when I
type
$graph-tool --help

Traceback (most recent call last):
  File "/usr/local/bin/graph-tool", line 19, in <module>
    from graph_tool import *
  File "/usr/local/lib/python2.5/site-packages/graph_tool.py", line 26, in
<module>
    import libgraph_tool
ImportError: No module named libgraph_tool

I must be making a basic mistake somewhere? I've got python 2.5.1 on an
ubuntu 7.10.

It looks like python is not being able to find the module. I think it's
because /usr/local/lib/python2.5/site-packages is not in python's search
path. I would recommend installing graph-tool in /usr instead of
/usr/local, so you don't have to modify python's search path (which
would be OK also). Do the following:

$ make uninstall (so you don't have old stuff lying around in your
system)
$ ./configure --prefix=/usr --disable-visibility
$ make
$ make install

Tell me if it works.

Cheers,
Tiago

Hi Tiago,

Sorry for my late reply, but I only got the chance to try it now and it works :slight_smile:

One more stupid question: can one use the pre-compiled binaries to bypass the problem with gcc and have multi-threaded parallel algorithm support on graph-tool?

Many thanks,
Rui