Anyone could install cx_Freeze on Anaconda3 on Yosemite?

Regards,
Samuel

On 02/04/2015 07:12 PM, Thomas Kluyver wrote:
OK, I think someone more familiar with the way C compilation works than me will 
need to tackle that.

On 4 February 2015 at 01:19, Bancal Samuel <samuel.ban...@epfl.ch 
<mailto:samuel.ban...@epfl.ch>> wrote:

    Hi,

    Good point, but after a check it's Anaconda's :
    $ which pip
    /users/bancal/anaconda/bin/pip

    Python header files are located here :
    $ python3-config --include
    -I/Users/bancal/anaconda/include/python3.4m 
-I/Users/bancal/anaconda/include/python3.4m

    I tried to force with CPATH:
    export CPATH=/Users/bancal/anaconda/include/python3.4m

    But Installation log ~/.pip/pip.log gives exactly the same output (here all 
mentions of gcc) :
        gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall 
-Wstrict-prototypes -I/Users/bancal/anaconda/include -arch x86_64 
-I/Users/bancal/anaconda/include/python3.4m -c source/util.c -o 
build/temp.macosx-10.5-x86_64-3.4/source/util.o
        gcc -bundle -undefined dynamic_lookup -L/Users/bancal/anaconda/lib 
-arch x86_64 build/temp.macosx-10.5-x86_64-3.4/source/util.o 
-L/Users/bancal/anaconda/lib -o 
build/lib.macosx-10.5-x86_64-3.4/cx_Freeze/util.so
        gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall 
-Wstrict-prototypes -I/Users/bancal/anaconda/include -arch x86_64 
-Ibuild/temp.macosx-10.5-x86_64-3.4 -I/Users/bancal/anaconda/include/python3.4m 
-c source/bases/Console.c -o 
build/temp.macosx-10.5-x86_64-3.4/source/bases/Console.o
        gcc -arch x86_64 
build/temp.macosx-10.5-x86_64-3.4/source/bases/Console.o 
-L/Users/bancal/anaconda/lib -o 
build/lib.macosx-10.5-x86_64-3.4/cx_Freeze/bases/Console -s
        error: command 'gcc' failed with exit status 1
    gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes 
-I/Users/bancal/anaconda/include -arch x86_64 
-I/Users/bancal/anaconda/include/python3.4m -c source/util.c -o 
build/temp.macosx-10.5-x86_64-3.4/source/util.o
    gcc -bundle -undefined dynamic_lookup -L/Users/bancal/anaconda/lib -arch 
x86_64 build/temp.macosx-10.5-x86_64-3.4/source/util.o 
-L/Users/bancal/anaconda/lib -o 
build/lib.macosx-10.5-x86_64-3.4/cx_Freeze/util.so
    gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes 
-I/Users/bancal/anaconda/include -arch x86_64 
-Ibuild/temp.macosx-10.5-x86_64-3.4 -I/Users/bancal/anaconda/include/python3.4m 
-c source/bases/Console.c -o 
build/temp.macosx-10.5-x86_64-3.4/source/bases/Console.o
    gcc -arch x86_64 build/temp.macosx-10.5-x86_64-3.4/source/bases/Console.o 
-L/Users/bancal/anaconda/lib -o 
build/lib.macosx-10.5-x86_64-3.4/cx_Freeze/bases/Console -s
    error: command 'gcc' failed with exit status 1

    I tried to find the undefined symbols into the header files ... with no 
luck :
    $ grep -r _PyDict_New /Users/bancal/anaconda/include/python3.4m
    /Users/bancal/anaconda/include/python3.4m/dictobject.h:PyDictKeysObject 
*_PyDict_NewKeysForClass(void);
    /Users/bancal/anaconda/include/python3.4m/dictobject.h:PyAPI_FUNC(PyObject 
*) _PyDict_NewPresized(Py_ssize_t minused);
    $ grep -r _PyDict_SetItemStrin /Users/bancal/anaconda/include/python3.4m
    [nothing]

    Does that mean that some header files are missing to install cx_Freeze?

    Samuel


    On 02/03/2015 06:14 PM, Thomas Kluyver wrote:
    On 3 February 2015 at 08:27, Bancal Samuel <samuel.ban...@epfl.ch 
<mailto:samuel.ban...@epfl.ch>> wrote:

        ld: symbol(s) not found for architecture x86_64
        clang: error: linker command failed with exit code 1 (use -v to see 
invocation)
        error: command 'gcc' failed with exit status 1

        It's not really clear to me ... am I missing some requirements?


    That looks like it's failing to find the Python header files. Are you sure 
that the pip you're using is the one that's part of Anaconda? Do 'which pip' at 
the command line to see where it's located.

    Thomas

    
------------------------------------------------------------------------------
    Dive into the World of Parallel Programming. The Go Parallel Website,
    sponsored by Intel and developed in partnership with Slashdot Media, is your
    hub for all things parallel software development, from weekly thought
    leadership blogs to news, videos, case studies, tutorials and more. Take a
    look and join the conversation now. http://goparallel.sourceforge.net/
    _______________________________________________
    cx-freeze-users mailing list
    cx-freeze-users@lists.sourceforge.net 
<mailto:cx-freeze-users@lists.sourceforge.net>
    https://lists.sourceforge.net/lists/listinfo/cx-freeze-users




------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/


_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

--
Samuel Bancal
ENAC-IT
EPFL

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

Reply via email to