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
******************************************