On 12/17/2007 11:34 PM, Rui Carvalho wrote:
Sorry to post again :)
Post as many times as you want! :)
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 :)
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
-----Original Message----- From: graph-tool-bounces@forked.de [mailto:graph-tool-bounces@forked.de] On Behalf Of Tiago de Paula Peixoto Sent: 18 December 2007 02:19 To: Main discussion list for the graph-tool project Subject: Re: [graph-tool] libgraph_tool
On 12/17/2007 11:34 PM, Rui Carvalho wrote:
Sorry to post again :)
Post as many times as you want! :)
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
-- Tiago de Paula Peixoto tiago@forked.de