igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] Python Interface to igraph (0.6 Bzr)


From: Gábor Csárdi
Subject: Re: [igraph] Python Interface to igraph (0.6 Bzr)
Date: Wed, 14 Jan 2009 18:42:37 +0100

It seems to me that this is a rather new bug. :) Actually it is not
even a bug, in the development branch the Python interface sometime
lags behind a bit, because I don't update it at all, and Tamas updates
it only some days later, after our changes in the C core have
stabilized.

Replacing the below mentioned lines with

  if (weights && igraph_vector_min(weights) < 0)
    e = igraph_shortest_paths_bellman_ford(&self->g, &res, vs,
igraph_vss_all(), weights, mode);
  else
    e = igraph_shortest_paths_dijkstra(&self->g, &res, vs,
igraph_vss_all(), weights, mode);

should solve the problem. I have committed this to Launchpad, so if
you do a 'bzr pull' that should be fine. (There might be others,
though.)

Thanks for the report,
Gabor

On Wed, Jan 14, 2009 at 6:04 PM, Chris Wj <address@hidden> wrote:
> I am compiling/installing igraph 0.6 bzr python module and got this error
> that seems to be an old bug:
>
> python setup.py install
> ...
>
> gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
> -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fPIC -I/usr/include/igraph
> -I/usr/local/include/igraph -I/usr/include/python2.4 -c src/graphobject.c -o
> build/temp.linux-i686-2.4/src/graphobject.o
> src/graphobject.c: In function 'igraphmodule_Graph_shortest_paths':
> src/graphobject.c:3596: error: incompatible type for argument 4 of
> 'igraph_shortest_paths_bellman_ford'
> src/graphobject.c:3596: error: incompatible type for argument 5 of
> 'igraph_shortest_paths_bellman_ford'
> src/graphobject.c:3596: error: too few arguments to function
> 'igraph_shortest_paths_bellman_ford'
> src/graphobject.c:3598: error: incompatible type for argument 4 of
> 'igraph_shortest_paths_dijkstra'
> src/graphobject.c:3598: error: incompatible type for argument 5 of
> 'igraph_shortest_paths_dijkstra'
> src/graphobject.c:3598: error: too few arguments to function
> 'igraph_shortest_paths_dijkstra'
> error: command 'gcc' failed with exit status 1
>
> I am compiling on CentOS Linux 5.2 32-bit and I compiled and installed the C
> library successfully.
>
>
> Previous thread:
>
>> I tried your suggestion after realizing that the test suite was failing.
>> But here is what I get:
>>
>> Oh, I think that's a bug related to the x86_64 architecture (the same
>> error was reported to me a few weeks ago). The patch is already in the 0.4
>> tree but I did not make a new release since then. Are you able to recompile
>> igraph if I send you a patched graphobject.c?
>>
>> Best,
>> --
>> T.
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help
>
>



-- 
Gabor Csardi <address@hidden>     UNIL DGM




reply via email to

[Prev in Thread] Current Thread [Next in Thread]