Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Installation problems
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Johan  
View profile   Translate to Translated (View Original)
 More options Sep 30 2010, 4:35 am
From: Johan <charls...@gmail.com>
Date: Thu, 30 Sep 2010 01:35:29 -0700 (PDT)
Local: Thurs, Sep 30 2010 4:35 am
Subject: Installation problems
Hi,

Not sure if this is the correct forum but I'm having some problems
installing pygraphviz that I hope you can help me with.

When I run python setup.py install I get the result:

error: command 'gcc' failed with exit status 1

together with a lot of compile errors in pygraphviz/graphviz_wrap.c
such as:

pygraphviz/graphviz_wrap.c:5266: error: ‘Swig_var_Agdirected_get’
undeclared (first use in this function)
pygraphviz/graphviz_wrap.c:5266: error: ‘Swig_var_Agdirected_set’
undeclared (first use in this function)

My system is a Red Hat Enterprise Linux Server release 5.4 (Tikanga)
with Python 2.4.
Graphviz is installed with the following packages (without problems):
graphviz-2.26.3-1.el5.x86_64.rpm
graphviz-devel-2.26.3-1.el5.x86_64.rpm
graphviz-python-2.26.3-1.el5.x86_64.rpm

What simple mistake am I making?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Aric Hagberg  
View profile  
 More options Sep 30 2010, 5:53 am
From: Aric Hagberg <ahagb...@gmail.com>
Date: Thu, 30 Sep 2010 03:53:26 -0600
Local: Thurs, Sep 30 2010 5:53 am
Subject: Re: [pygraphviz-discuss] Installation problems

It's hard to tell without the entire error message.  But maybe you are missing
python-devel?

Aric


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Johan Karlsson  
View profile  
 More options Sep 30 2010, 6:42 am
From: Johan Karlsson <charls...@gmail.com>
Date: Thu, 30 Sep 2010 12:42:55 +0200
Local: Thurs, Sep 30 2010 6:42 am
Subject: Re: [pygraphviz-discuss] Installation problems

Yep... that seems to be the simple mistake despite that I was sure I
installed it last week.

Thanks!

2010/9/30 Aric Hagberg <ahagb...@gmail.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
martin  
View profile  
 More options Nov 24 2010, 2:39 am
From: martin <martin.hobelsber...@las3.de>
Date: Tue, 23 Nov 2010 23:39:43 -0800 (PST)
Local: Wed, Nov 24 2010 2:39 am
Subject: Re: Installation problems
Hi,

i have a similar problem (trying to install pygraphviz on ubuntu).

Here is the error message:

las3@las3-Ubuntu:~/Downloads/pygraphviz-1.0$ python3 setup.py install
Trying pkg-config
library_path=b''
include_path=b'/usr/include/graphviz'
running install
running build
running build_py
running build_ext
building 'pygraphviz._graphviz' extension
gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -
Ib'/usr/include/graphviz' -I/usr/include/python3.1 -c pygraphviz/
graphviz_wrap.c -o build/temp.linux-x86_64-3.1/pygraphviz/
graphviz_wrap.o
pygraphviz/graphviz_wrap.c: In function ‘SWIG_Python_AddErrorMsg’:
pygraphviz/graphviz_wrap.c:862: warning: implicit declaration of
function ‘PyString_AsString’
pygraphviz/graphviz_wrap.c: In function ‘PySwigClientData_New’:
pygraphviz/graphviz_wrap.c:1253: warning: implicit declaration of
function ‘PyClass_Check’
pygraphviz/graphviz_wrap.c: In function ‘PySwigObject_format’:
pygraphviz/graphviz_wrap.c:1326: warning: implicit declaration of
function ‘PyString_FromString’
pygraphviz/graphviz_wrap.c:1326: warning: initialization makes pointer
from integer without a cast
pygraphviz/graphviz_wrap.c:1328: warning: implicit declaration of
function ‘PyString_Format’
pygraphviz/graphviz_wrap.c:1328: warning: assignment makes pointer
from integer without a cast
pygraphviz/graphviz_wrap.c: In function ‘PySwigObject_repr’:
pygraphviz/graphviz_wrap.c:1358: warning: implicit declaration of
function ‘PyString_FromFormat’
pygraphviz/graphviz_wrap.c:1358: warning: initialization makes pointer
from integer without a cast
pygraphviz/graphviz_wrap.c:1366: warning: implicit declaration of
function ‘PyString_ConcatAndDel’
pygraphviz/graphviz_wrap.c: In function ‘PySwigObject_print’:
pygraphviz/graphviz_wrap.c:1380: warning: passing argument 1 of
‘fputs’ makes pointer from integer without a cast
/usr/include/stdio.h:682: note: expected ‘const char * __restrict__’
but argument is of type ‘int’
pygraphviz/graphviz_wrap.c: In function ‘PySwigObject_str’:
pygraphviz/graphviz_wrap.c:1393: warning: return makes pointer from
integer without a cast
pygraphviz/graphviz_wrap.c: In function ‘_PySwigObject_type’:
pygraphviz/graphviz_wrap.c:1590: warning: initialization from
incompatible pointer type
pygraphviz/graphviz_wrap.c:1591: warning: initialization from
incompatible pointer type
pygraphviz/graphviz_wrap.c:1594: warning: initialization from
incompatible pointer type
pygraphviz/graphviz_wrap.c:1595: warning: initialization from
incompatible pointer type
pygraphviz/graphviz_wrap.c:1602: error: ‘coercion’ undeclared (first
use in this function)
pygraphviz/graphviz_wrap.c:1602: error: (Each undeclared identifier is
reported only once
pygraphviz/graphviz_wrap.c:1602: error: for each function it appears
in.)
pygraphviz/graphviz_wrap.c:1602: error: expected ‘}’ before numeric
constant
pygraphviz/graphviz_wrap.c:1622: warning: missing braces around
initializer
pygraphviz/graphviz_wrap.c:1622: warning: (near initialization for
‘tmp.ob_base.ob_base’)
pygraphviz/graphviz_wrap.c:1624: warning: initialization makes integer
from pointer without a cast
pygraphviz/graphviz_wrap.c:1627: warning: initialization from
incompatible pointer type
pygraphviz/graphviz_wrap.c:1628: warning: initialization from
incompatible pointer type
pygraphviz/graphviz_wrap.c:1632: warning: initialization from
incompatible pointer type
pygraphviz/graphviz_wrap.c:1635: error: ‘cmpfunc’ undeclared (first
use in this function)
pygraphviz/graphviz_wrap.c:1635: error: expected ‘}’ before
‘PySwigObject_compare’
pygraphviz/graphviz_wrap.c:1682: error: ‘PyTypeObject’ has no member
named ‘ob_type’
pygraphviz/graphviz_wrap.c:1584: warning: unused variable
‘PySwigObject_as_number’
pygraphviz/graphviz_wrap.c:1582: warning: unused variable
‘swigobject_doc’
pygraphviz/graphviz_wrap.c: In function ‘PySwigPacked_repr’:
pygraphviz/graphviz_wrap.c:1731: warning: return makes pointer from
integer without a cast
pygraphviz/graphviz_wrap.c:1733: warning: return makes pointer from
integer without a cast
pygraphviz/graphviz_wrap.c: In function ‘PySwigPacked_str’:
pygraphviz/graphviz_wrap.c:1742: warning: return makes pointer from
integer without a cast
pygraphviz/graphviz_wrap.c:1744: warning: return makes pointer from
integer without a cast
pygraphviz/graphviz_wrap.c: In function ‘_PySwigPacked_type’:
pygraphviz/graphviz_wrap.c:1789: warning: missing braces around
initializer
pygraphviz/graphviz_wrap.c:1789: warning: (near initialization for
‘tmp.ob_base.ob_base’)
pygraphviz/graphviz_wrap.c:1791: warning: initialization makes integer
from pointer without a cast
pygraphviz/graphviz_wrap.c:1794: warning: initialization from
incompatible pointer type
pygraphviz/graphviz_wrap.c:1795: warning: initialization from
incompatible pointer type
pygraphviz/graphviz_wrap.c:1796: warning: initialization from
incompatible pointer type
pygraphviz/graphviz_wrap.c:1798: error: ‘cmpfunc’ undeclared (first
use in this function)
pygraphviz/graphviz_wrap.c:1798: error: expected ‘}’ before
‘PySwigPacked_compare’
pygraphviz/graphviz_wrap.c:1845: error: ‘PyTypeObject’ has no member
named ‘ob_type’
pygraphviz/graphviz_wrap.c:1783: warning: unused variable
‘swigpacked_doc’
pygraphviz/graphviz_wrap.c: In function ‘_SWIG_This’:
pygraphviz/graphviz_wrap.c:1890: warning: return makes pointer from
integer without a cast
pygraphviz/graphviz_wrap.c: In function ‘SWIG_Python_GetSwigThis’:
pygraphviz/graphviz_wrap.c:1910: warning: implicit declaration of
function ‘PyInstance_Check’
pygraphviz/graphviz_wrap.c:1911: warning: implicit declaration of
function ‘_PyInstance_Lookup’
pygraphviz/graphviz_wrap.c:1911: warning: assignment makes pointer
from integer without a cast
pygraphviz/graphviz_wrap.c: In function
‘SWIG_Python_NewShadowInstance’:
pygraphviz/graphviz_wrap.c:2141: warning: implicit declaration of
function ‘PyInstance_NewRaw’
pygraphviz/graphviz_wrap.c:2141: warning: assignment makes pointer
from integer without a cast
pygraphviz/graphviz_wrap.c: In function ‘SWIG_Python_SetModule’:
pygraphviz/graphviz_wrap.c:2322: warning: implicit declaration of
function ‘Py_InitModule’
pygraphviz/graphviz_wrap.c:2323: warning: initialization makes pointer
from integer without a cast
pygraphviz/graphviz_wrap.c: In function ‘SWIG_Python_TypeQuery’:
pygraphviz/graphviz_wrap.c:2343: warning: initialization makes pointer
from integer without a cast
pygraphviz/graphviz_wrap.c: In function ‘SWIG_Python_TypeError’:
pygraphviz/graphviz_wrap.c:2432: warning: initialization makes pointer
from integer without a cast
pygraphviz/graphviz_wrap.c: At top level:
pygraphviz/graphviz_wrap.c:2519: fatal error: cgraph.h: No such file
or directory
compilation terminated.
error: command 'gcc' failed with exit status 1

i have installed everything successfully with python2.7 but now i
wanted to install it with python3.1.
I also have python-dev installed.

las3@las3-Ubuntu:~/Downloads/pygraphviz-1.0$ sudo apt-get install
python3.1-dev
[sudo] password for las3:
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3.1-dev is already the newest version.

any idea how i can get this working? I recently switched from python
2.x to 3.x because the graph generation (post in networkx about huge
graph) is much faster (from 14 hours with 2.x to 1,6 hours with python
3.1!)

thanks a lot

Martin

On Sep 30, 10:53 am, Aric Hagberg <ahagb...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Aric Hagberg  
View profile  
 More options Nov 24 2010, 7:49 am
From: Aric Hagberg <ahagb...@gmail.com>
Date: Wed, 24 Nov 2010 05:49:13 -0700
Local: Wed, Nov 24 2010 7:49 am
Subject: Re: [pygraphviz-discuss] Re: Installation problems

On Wed, Nov 24, 2010 at 12:39 AM, martin <martin.hobelsber...@las3.de> wrote:
> pygraphviz/graphviz_wrap.c:2519: fatal error: cgraph.h: No such file
> or directory
> compilation terminated.
> error: command 'gcc' failed with exit status 1

For some reason the setup isn't finding cgraph.h (in libgraphviz-dev).
But PyGraphviz doesn't work with Python3 so you wouldn't get much
farther anyway I suspect.

I personally don't have any plans to port PyGraphviz to Python3.

> any idea how i can get this working? I recently switched from python> 2.x to 3.x because the graph generation (post in networkx about huge
> graph) is much faster (from 14 hours with 2.x to 1,6 hours with python
> 3.1!)

What is the issue here?  Maybe we can fix that.

Aric


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
martin  
View profile  
 More options Nov 24 2010, 2:48 pm
From: martin <martin.hobelsber...@las3.de>
Date: Wed, 24 Nov 2010 11:48:08 -0800 (PST)
Local: Wed, Nov 24 2010 2:48 pm
Subject: Re: Installation problems
HA, that explains a lot. :)

well, it was just another try to dump my graph to the harddisk
somehow.

As i wrote in the networkx group i construct a pretty huge graph (50k
nodes and 19mio edges, with node labels (pagerank,class attribute) and
edge labels (weight and a list to which i append strings iteratively
(for certain nodes that are used together in the same context) while
the graph is constructed...)).

This graph will (or should) serve as input for the algorithm i
constructed (recombinative simulated annealing). I am no expert on
python (started for this project with it) but i got everything working
fine with dummy data. To iteratively fill the graph with data it took
about 14 hours with python 2.7. I tried python 3.1 and now the graph
is finished in around one and a half hours (by finished i mean it is
in the memory. 11gig of ram is used). I tried to dump it to the
harddisk (with pickle, as text file with dot) but it didn´t work out.
It  seems pickle can´t handle so much data.

i also tried the persistent shelve (thanks so much for providing it)
but after around one third of the graph (which took 11 hours) the
graph.db file was already 31 gig big on my harddisk. I am not sure
why. Maybe the shelve has so much overhead? Or i just implemented it
wrong. Anyway this did´t work out as well. :)

So i was quite happy after the 1.5 hours with python 3.1 (because i
think even if i could have dumped the graph to the disk to load it
would have taken almost the same amount of time). With pygraphviz i
just wanted to give the write_dot another try with python 3.1.

So i think the only solution for now is to buy more ram so that i can
work on the graph in the memory (i try to recombine nodes regarding
edge labels against a pareto front). :)

Thanks for the work you put in networkx. Without it i wouldn´t be as
far as i am right now with my solution! :)

Greetings

Martin

On Nov 24, 1:49 pm, Aric Hagberg <ahagb...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Aric Hagberg  
View profile  
 More options Nov 25 2010, 9:06 am
From: Aric Hagberg <ahagb...@gmail.com>
Date: Thu, 25 Nov 2010 07:06:54 -0700
Local: Thurs, Nov 25 2010 9:06 am
Subject: Re: [pygraphviz-discuss] Re: Installation problems

On Wed, Nov 24, 2010 at 12:48 PM, martin <martin.hobelsber...@las3.de> wrote:
> As i wrote in the networkx group i construct a pretty huge graph (50k
> nodes and 19mio edges, with node labels (pagerank,class attribute) and
> edge labels (weight and a list to which i append strings iteratively
> (for certain nodes that are used together in the same context) while
> the graph is constructed...)).

> fine with dummy data. To iteratively fill the graph with data it took
> about 14 hours with python 2.7. I tried python 3.1 and now the graph
> is finished in around one and a half hours (by finished i mean it is
> in the memory. 11gig of ram is used). I tried to dump it to the
> harddisk (with pickle, as text file with dot) but it didn´t work out.
> It  seems pickle can´t handle so much data.

This seems like some IO issue with Python2.7.
How are you reading the data?

> i also tried the persistent shelve (thanks so much for providing it)
> but after around one third of the graph (which took 11 hours) the
> graph.db file was already 31 gig big on my harddisk. I am not sure
> why. Maybe the shelve has so much overhead? Or i just implemented it
> wrong. Anyway this did´t work out as well. :)

> So i was quite happy after the 1.5 hours with python 3.1 (because i
> think even if i could have dumped the graph to the disk to load it
> would have taken almost the same amount of time). With pygraphviz i
> just wanted to give the write_dot another try with python 3.1.

You probably don't want to write such a huge dot file anyway.

One option if you have enough memory is to use  some remote object
package like Pyro http://www.xs4all.nl/~irmen/pyro3/ so you can load
the data in a process that runs permanently and use other Python
processes to manipulate it.

Aric


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
nishant kashyap  
View profile  
 More options Sep 29 2012, 6:46 pm
From: nishant kashyap <nishantkshyp2...@gmail.com>
Date: Sat, 29 Sep 2012 15:46:19 -0700 (PDT)
Local: Sat, Sep 29 2012 6:46 pm
Subject: Re: Installation problems

Hey Martin, Did you find any answer of this problem, i am facing this too.
Using ubuntu 10.10, python 2.6 .


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »