Hi Tamas,

Thanks for your help. I did need upgrade to using the python.org installer (not 
from source). Is there a way to trick the installer into using this (e.g., what 
is the installer looking for to see if this is an apple provided python).

I haven't installed igraph before this and don't see older igraph associated C 
files anywhere on my hard drives added before yesterday. If tried using 
alternative GCC compilers (4.0 vs. 4.2) and ARCHFLAGS='-arch i386 -arch x86_64' 
when running setup.py.

Thanks,
Nathan

> #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).
Chances are that you have installed Python on your own (either by downloading 
an installer from python.org, or compiling it yourself). The installers we 
provide on PyPI work with the version of Python that is bundled with the 
operating system by Apple. Can you please confirm that you are indeed trying to 
install igraph into a custom Python installation and not the default one 
provided by Apple?

> #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?
This is confusing. If the C libraries were installed in 
/usr/local/Cellar/igraph/0.6/include/igraph, then why does the compiler refer 
to include files in /opt/local/include/igraph? Do you have any "old", leftover 
igraph installation on your machine that the compiler could be picking up 
instead of the include files in /usr/local? If so, please delete the igraph 
includes from /opt/local/include and any leftover igraph libraries from 
/opt/local/lib and try again.

All the best,
Tamas


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

Reply via email to