Installing igraph to use on FreeCAD

Floriane B flo.bru447 at gmail.com
Fri Jul 3 11:34:02 PDT 2015


Dear all,

Me again ! I'm trying to install iGraph to use on FreeCAD's python console.
When asking the question on the dedicated forum, I got the following answer:

Open terminal and type.

CODE: SELECT ALL
<http://forum.freecadweb.org/viewtopic.php?f=22&t=11605&p=93620#>
port install py27-igraph
or

CODE: SELECT ALL
<http://forum.freecadweb.org/viewtopic.php?f=22&t=11605&p=93620#>
sudo port install py27-igraph

I installed igraph using Macports, and it is now available for me to use on
the default python interface of my computer, Python 2.7.5.
However, when I try to import iGraph in the python console in FreeCAD
(which has solely the same version), I got the following error:

Traceback (most recent call last):
  File "<input>", line 1, in <module>
ImportError: No module named igraph


So my question is : is it possible to use MacPorts to install iGraph, but
to choose on which python console ?
The different versions are as follow.

In FreeCAD:
Python 2.7.5 (default, Jan 20 2014, 20:59:17)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin

Default Python:
Python 2.7.5 (default, Mar  9 2014, 22:15:05)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin

Do you have any idea on how I could reach that goal ?
Thank you very much in advance !

Floriane
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-users/attachments/20150703/6824fc5d/attachment.html>


More information about the macports-users mailing list