My mistake, actually there is (somehow I don't remember trying to install
igraph before) an igraph folder that was in:
I deleted it and was able to install igraph using pip install. However,
when I try to start igraph in python I do get the following error:
import igraph
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/igraph/__init__.py",
line 34, in <module>
from igraph._igraph import *
ImportError:
dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/igraph/_igraph.so,
2): Symbol not found: _igraph_warning_handler_ignore
Referenced from:
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/igraph/_igraph.so
Expected in: flat namespace
in
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/igraph/_igraph.so
Thanks,
Nathan
On Thu, Feb 14, 2013 at 8:52 PM, Nathan Salomonis <[email protected]>wrote:
> Hi all,
>
>
>
> I have been trying hard to get igraph installed for my Mac 10.6.8 in
> python 2.7. Python was upgraded from Python 2.6. I have a lot of
> dependencies installed for 2.7 so I would like to keep it. For igraph, so
> for I have tried:
>
>
>
> 1) Attempting to run the igraph installer for Mac python 2.7
>
> 2) Run from source code or pip install following homebrew installation
> of the igraph C components
>
>
>
> #1 ----------------------------
>
> The installer option fails at the Destination Select window with the
> statement:
>
> “Python-igraph 0.6 can’t be installed on this disk. python-igraph requires
> Apple Python 2.7 to install”
>
>
>
> Python 2.7 is the default version (not sure how to direct the installer to
> this – ideal solution).
>
>
>
> #2 ----------------------------
>
> The C libraries were installed in:
> /usr/local/Cellar/igraph/0.6/include/igraph (sym linked from
> /usr/local/include/). The error I get is:
>
> ….
>
> /opt/local/include/igraph/attributes.h:326: error: expected declaration
> specifiers or ‘...’ before ‘igraph_strvector_t’
>
> /opt/local/include/igraph/attributes.h:344: error: expected ‘;’, ‘,’ or
> ‘)’ before ‘*’ token
>
> /opt/local/include/igraph/attributes.h:348: error: expected ‘;’, ‘,’ or
> ‘)’ before ‘*’ token
>
> lipo: can't figure out the architecture type of:
> /var/folders/VR/VRc6OFUIGsS6cupB0zstt++++TI/-Tmp-//ccTla49z.out
>
> error: command 'gcc-4.2' failed with exit status 1
>
>
>
> I have tried gcc-4.0 and re-installing gcc-4.2 but to no avail. I haven’t
> had this issue with other python easy_install or similar applications with
> C components.
>
>
>
> Any help you can provide would be very appreciated. The other solutions I
> have followed up on have not been successful (always come back to the gcc
> error).
>
>
>
> Thank you!
>
>
> Best,
>
> Nathan
>
_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help