libgraph_tool

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

libgraph_tool

Rui Carvalho
Sorry to post again :)

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.

Many thanks again,
Rui


Reply | Threaded
Open this post in threaded view
|

Re: libgraph_tool

Tiago de Paula Peixoto
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 <[hidden email]>


signature.asc (370 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: libgraph_tool

Rui Carvalho
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: [hidden email] [mailto:[hidden email]] 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 <[hidden email]>



Reply | Threaded
Open this post in threaded view
|

Re: libgraph_tool

Tiago de Paula Peixoto
On 12/21/2007 06:57 PM, Rui Carvalho wrote:
> Hi Tiago,
>
> Sorry for my late reply, but I only got the chance to try it now and
> it works :)

Great. ;-)
 
> 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?

In principle yes, if one links to a static version of libgomp (GCC's
implementation of openmp) that works. But note that there's yet a much
more severe problem with openmp and GCC:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33361

This bug actually causes GCC to crash when compiling graph-tool... I
guess openmp is still a quite young addition to GCC and it needs to
stabilize a bit.

Cheers,
Tiago

--
Tiago de Paula Peixoto <[hidden email]>