igraph-help
[Top][All Lists]
Advanced

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

[igraph] Re: igraph-help Digest, Vol 41, Issue 2


From: Raul Guerra
Subject: [igraph] Re: igraph-help Digest, Vol 41, Issue 2
Date: Thu, 3 Dec 2009 02:58:38 -0500

I ran ez_setup.py and then in the terminal I ran $easy_install python_igraph , but instead of getting igraph installed I got


MacBook-Pro:Python easy_install coloch$ sudo easy_install python_igraph
Searching for python-igraph
Reading http://pypi.python.org/simple/python_igraph/
Best match: python-igraph 0.5.2
Downloading http://pypi.python.org/packages/source/p/python-igraph/python-igraph-0.5.2.tar.gz#md5=d7c94b8823407a95d8113cbf907c5c56
Processing python-igraph-0.5.2.tar.gz
Running python-igraph-0.5.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ZuqCsY/python-igraph-0.5.2/egg-dist-tmp-RY0T2f
Include path: /usr/include /usr/local/include
Library path:
warning: no files found matching 'test.py'
In file included from src/arpackobject.c:24:
src/arpackobject.h:28:27: error: igraph/arpack.h: No such file or directory
In file included from src/arpackobject.h:29,
                 from src/arpackobject.c:24:
src/graphobject.h:28:27: error: igraph/igraph.h: No such file or directory
In file included from src/arpackobject.h:29,
                 from src/arpackobject.c:24:
src/graphobject.h:42: error: expected specifier-qualifier-list before ‘igraph_t’
In file included from src/arpackobject.c:24:
src/arpackobject.h:43: error: expected specifier-qualifier-list before ‘igraph_arpack_options_t’
src/arpackobject.h:54: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/arpackobject.c: In function ‘igraphmodule_ARPACKOptions_new’:
src/arpackobject.c:48: warning: implicit declaration of function ‘igraph_arpack_options_init’
src/arpackobject.c:48: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:49: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params_out’
src/arpackobject.c: In function ‘igraphmodule_ARPACKOptions_getattr’:
src/arpackobject.c:72: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params_out’
src/arpackobject.c:75: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params_out’
src/arpackobject.c:77: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:77: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:80: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:82: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:84: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:86: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:88: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:91: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:93: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:95: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:97: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:99: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:101: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params_out’
src/arpackobject.c:103: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params_out’
src/arpackobject.c:105: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params_out’
src/arpackobject.c:107: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params_out’
src/arpackobject.c:109: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params_out’
src/arpackobject.c:111: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params_out’
src/arpackobject.c: In function ‘igraphmodule_ARPACKOptions_setattr’:
src/arpackobject.c:132: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:143: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:143: error: ‘igraph_real_t’ undeclared (first use in this function)
src/arpackobject.c:143: error: (Each undeclared identifier is reported only once
src/arpackobject.c:143: error: for each function it appears in.)
src/arpackobject.c:143: error: expected ‘;’ before ‘PyInt_AsLong’
src/arpackobject.c:145: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:145: error: expected ‘;’ before ‘PyFloat_AsDouble’
src/arpackobject.c: At top level:
src/arpackobject.c:159: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
In file included from src/arpackobject.c:24:
src/arpackobject.h:28:27: error: igraph/arpack.h: No such file or directory
In file included from src/arpackobject.h:29,
                 from src/arpackobject.c:24:
src/graphobject.h:28:27: error: igraph/igraph.h: No such file or directory
In file included from src/arpackobject.h:29,
                 from src/arpackobject.c:24:
src/graphobject.h:42: error: expected specifier-qualifier-list before ‘igraph_t’
In file included from src/arpackobject.c:24:
src/arpackobject.h:43: error: expected specifier-qualifier-list before ‘igraph_arpack_options_t’
src/arpackobject.h:54: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/arpackobject.c: In function ‘igraphmodule_ARPACKOptions_new’:
src/arpackobject.c:48: warning: implicit declaration of function ‘igraph_arpack_options_init’
src/arpackobject.c:48: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:49: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params_out’
src/arpackobject.c: In function ‘igraphmodule_ARPACKOptions_getattr’:
src/arpackobject.c:72: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params_out’
src/arpackobject.c:75: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params_out’
src/arpackobject.c:77: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:77: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:80: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:82: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:84: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:86: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:88: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:91: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:93: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:95: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:97: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:99: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:101: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params_out’
src/arpackobject.c:103: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params_out’
src/arpackobject.c:105: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params_out’
src/arpackobject.c:107: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params_out’
src/arpackobject.c:109: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params_out’
src/arpackobject.c:111: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params_out’
src/arpackobject.c: In function ‘igraphmodule_ARPACKOptions_setattr’:
src/arpackobject.c:132: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:143: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:143: error: ‘igraph_real_t’ undeclared (first use in this function)
src/arpackobject.c:143: error: (Each undeclared identifier is reported only once
src/arpackobject.c:143: error: for each function it appears in.)
src/arpackobject.c:143: error: expected ‘;’ before ‘PyInt_AsLong’
src/arpackobject.c:145: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:145: error: expected ‘;’ before ‘PyFloat_AsDouble’
src/arpackobject.c: At top level:
src/arpackobject.c:159: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
In file included from src/arpackobject.c:24:
src/arpackobject.h:28:27: error: igraph/arpack.h: No such file or directory
In file included from src/arpackobject.h:29,
                 from src/arpackobject.c:24:
src/graphobject.h:28:27: error: igraph/igraph.h: No such file or directory
In file included from src/arpackobject.h:29,
                 from src/arpackobject.c:24:
src/graphobject.h:42: error: expected specifier-qualifier-list before ‘igraph_t’
In file included from src/arpackobject.c:24:
src/arpackobject.h:43: error: expected specifier-qualifier-list before ‘igraph_arpack_options_t’
src/arpackobject.h:54: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
src/arpackobject.c: In function ‘igraphmodule_ARPACKOptions_new’:
src/arpackobject.c:48: warning: implicit declaration of function ‘igraph_arpack_options_init’
src/arpackobject.c:48: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:49: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params_out’
src/arpackobject.c: In function ‘igraphmodule_ARPACKOptions_getattr’:
src/arpackobject.c:72: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params_out’
src/arpackobject.c:75: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params_out’
src/arpackobject.c:77: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:77: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:80: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:82: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:84: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:86: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:88: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:91: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:93: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:95: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:97: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:99: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:101: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params_out’
src/arpackobject.c:103: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params_out’
src/arpackobject.c:105: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params_out’
src/arpackobject.c:107: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params_out’
src/arpackobject.c:109: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params_out’
src/arpackobject.c:111: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params_out’
src/arpackobject.c: In function ‘igraphmodule_ARPACKOptions_setattr’:
src/arpackobject.c:132: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:143: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:143: error: ‘igraph_real_t’ undeclared (first use in this function)
src/arpackobject.c:143: error: (Each undeclared identifier is reported only once
src/arpackobject.c:143: error: for each function it appears in.)
src/arpackobject.c:143: error: expected ‘;’ before ‘PyInt_AsLong’
src/arpackobject.c:145: error: ‘igraphmodule_ARPACKOptionsObject’ has no member named ‘params’
src/arpackobject.c:145: error: expected ‘;’ before ‘PyFloat_AsDouble’
src/arpackobject.c: At top level:
src/arpackobject.c:159: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
lipo: can't open input file: /var/tmp//cc4Siar9.out (No such file or directory)
error: Setup script exited with error: command 'gcc-4.2' failed with exit status 1

Any ideas?

Raul
On Wed, Dec 2, 2009 at 12:01 PM, <address@hidden> wrote:
Send igraph-help mailing list submissions to
       address@hidden

To subscribe or unsubscribe via the World Wide Web, visit
       http://lists.nongnu.org/mailman/listinfo/igraph-help
or, via email, send a message with subject or body 'help' to
       address@hidden

You can reach the person managing the list at
       address@hidden

When replying, please edit your Subject line so it is more specific
than "Re: Contents of igraph-help digest..."


Today's Topics:

  1. Installing igraph on Mac OSX snow leopart (Raul Guerra)
  2. Re: Installing igraph on Mac OSX snow leopart (Tamas Nepusz)


----------------------------------------------------------------------

Message: 1
Date: Tue, 1 Dec 2009 17:07:22 -0500
From: Raul Guerra <address@hidden>
Subject: [igraph] Installing igraph on Mac OSX snow leopart
To: address@hidden
Message-ID:
       <address@hidden>
Content-Type: text/plain; charset="iso-8859-1"

Hi, I have the Mac OSX snow leopard. I downloaded the .dmg file from the
igraph website. I installed it, and if I run in my terminal the command
igraph then it opens a python interpreter and igraph works. However, if I
open python and write import igraph, then it does not work. Any ideas? I
really need to get it working.

When I type igraph I get the following

igraph 0.5.2 running inside Python 2.5.4 (r254:67916, Jul  7 2009,
23:51:24)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)

it runs Python 2.5.4. However, if I run python and then import igraph, I get
the following.

Python 2.6.1 (r261:67515, Jul  7 2009, 23:51:51)
[GCC 4.2.1 (Apple Inc. build 5646)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import igraph
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
ImportError: No module named igraph

Notice that the python I am running is 2.6.1.

How do I make igraph work for python 2.6?

Thank you,

Raul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.gnu.org/pipermail/igraph-help/attachments/20091201/815a0276/attachment.html

------------------------------

Message: 2
Date: Tue, 1 Dec 2009 23:14:37 +0000
From: Tamas Nepusz <address@hidden>
Subject: Re: [igraph] Installing igraph on Mac OSX snow leopart
To: Help for igraph users <address@hidden>
Message-ID: <address@hidden>
Content-Type: text/plain; charset=us-ascii

Dear Raul,

The OS X installer for igraph was created at the time when the most recent version of OS X was Leopard. Leopard contains Python 2.5 by default, hence the installer installs igraph for Python 2.5. The Python framework was upgraded to 2.6 in Snow Leopard, but the installer still installs igraph for Python 2.5, that's why you cannot make it work from the command line. You have two options here:

1. From the command line, launch Python by typing python2.5  . This way you get access to the older Python 2.5 distribution where you can use igraph.

2. Recompile the Python extension of igraph for Python 2.6. The easiest way is by using easy_install:

easy_install python_igraph

You'll need the easy_install script if you don't have it already; you can get it here:

http://peak.telecommunity.com/dist/ez_setup.py

You'll also need the XCode Developer Tools since easy_install will compile the Python extension from the C source code.

--
Tamas





------------------------------

_______________________________________________
igraph-help mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/igraph-help


End of igraph-help Digest, Vol 41, Issue 2
******************************************


reply via email to

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