sage5.5 build error 10.8.2

56 views
Skip to first unread message

Ben Hutz

unread,
Jan 9, 2013, 1:45:32 PM1/9/13
to sage-...@googlegroups.com
I am on OSX 10.8.2 and just installed the new Xcode 4.5.2

I had the same problem with mercurial as encountered in https://groups.google.com/forum/?fromgroups=#!searchin/sage-devel/10.8$20build$20cython/sage-devel/kfXamuej_Gs/kLUoIxrQnYMJ

and the suggested fix worked. Now it has failed to build cython-0.17pre.  Here is the output from that package:

====================================================
Extracting package /Applications/sage-5.5/spkg/standard/cython-0.17pre.spkg
-rw-r--r--@ 1 bhutz  admin  551594 Jul 25 10:46 /Applications/sage-5.5/spkg/standard/cython-0.17pre.spkg
Finished extraction
****************************************************
Host system:
Darwin bhutz103-206.cst.fit.edu 12.2.0 Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64
****************************************************
C compiler: gcc
C compiler version:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/Applications/sage-5.5/local/libexec/gcc/x86_64-apple-darwin12.2.0/4.6.3/lto-wrapper
Target: x86_64-apple-darwin12.2.0
Configured with: ../src/configure --prefix=/Applications/sage-5.5/local --with-local-prefix=/Applications/sage-5.5/local --with-gmp=/Applications/sage-5.5/local --with-mpfr=/Applications/sage-5.5/local --with-mpc=/Applications/sage-5.5/local --with-system-zlib --disable-multilib 
Thread model: posix
gcc version 4.6.3 (GCC)
****************************************************
Compiling module Cython.Plex.Scanners ...

ERROR: No module named _scproxy

Extension module compilation failed, looks like Cython cannot run
properly on this system.  To work around this, pass the option
"--no-cython-compile".  This will install a pure Python version of
Cython without compiling its own sources.

Traceback (most recent call last):
  File "setup.py", line 271, in <module>
    compile_cython_modules(cython_profile, cython_compile_more, cython_with_refnanny)
  File "setup.py", line 215, in compile_cython_modules
    result = compile(pyx_source_file)
  File "/Applications/sage-5.5/spkg/build/cython-0.17pre/src/Cython/Compiler/Main.py", line 589, in compile
    return compile_single(source, options, full_module_name)
  File "/Applications/sage-5.5/spkg/build/cython-0.17pre/src/Cython/Compiler/Main.py", line 534, in compile_single
    return run_pipeline(source, options, full_module_name)
  File "/Applications/sage-5.5/spkg/build/cython-0.17pre/src/Cython/Compiler/Main.py", line 389, in run_pipeline
    import Pipeline
  File "/Applications/sage-5.5/spkg/build/cython-0.17pre/src/Cython/Compiler/Pipeline.py", line 7, in <module>
    from Visitor import CythonTransform
  File "/Applications/sage-5.5/spkg/build/cython-0.17pre/src/Cython/Compiler/Visitor.py", line 8, in <module>
    import ExprNodes
  File "/Applications/sage-5.5/spkg/build/cython-0.17pre/src/Cython/Compiler/ExprNodes.py", line 10110, in <module>
    "CythonFunction", context=vars(Naming))
  File "/Applications/sage-5.5/spkg/build/cython-0.17pre/src/Cython/Compiler/Code.py", line 241, in load
    return cls(**kwargs)
  File "/Applications/sage-5.5/spkg/build/cython-0.17pre/src/Cython/Compiler/Code.py", line 395, in __init__
    proto = sub_tempita(proto, context, file, name)
  File "/Applications/sage-5.5/spkg/build/cython-0.17pre/src/Cython/Compiler/Code.py", line 390, in sub_tempita
    from Cython.Tempita import sub
  File "/Applications/sage-5.5/spkg/build/cython-0.17pre/src/Cython/Tempita/__init__.py", line 34, in <module>
    import cgi
  File "/Applications/sage-5.5/local/lib/python/cgi.py", line 40, in <module>
    import urllib
  File "/Applications/sage-5.5/local/lib/python/urllib.py", line 1379, in <module>
    from _scproxy import _get_proxy_settings, _get_proxies
ImportError: No module named _scproxy
Error installing Cython

real    0m0.544s
user    0m0.260s
sys    0m0.048s
************************************************************************
Error installing package cython-0.17pre
************************************************************************
Please email sage-devel (http://groups.google.com/group/sage-devel)
explaining the problem and including the relevant part of the log file
  /Applications/sage-5.5/spkg/logs/cython-0.17pre.log
Describe your computer, operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/Applications/sage-5.5/spkg/build/cython-0.17pre and type 'make' or whatever is appropriate.
Instead, the following commands setup all environment variables
correctly and load a subshell for you to debug the error:
  (cd '/Applications/sage-5.5/spkg/build/cython-0.17pre' && '/Applications/sage-5.5/sage' -sh)
When you are done debugging, you can type "exit" to leave the subshell.
************************************************************************
make[2]: *** [installed/cython-0.17pre] Error 1
make[1]: *** [all] Error 2

John H Palmieri

unread,
Jan 9, 2013, 1:54:37 PM1/9/13
to sage-...@googlegroups.com


On Wednesday, January 9, 2013 10:45:32 AM UTC-8, Ben Hutz wrote:
I am on OSX 10.8.2 and just installed the new Xcode 4.5.2

I had the same problem with mercurial as encountered in https://groups.google.com/forum/?fromgroups=#!searchin/sage-devel/10.8$20build$20cython/sage-devel/kfXamuej_Gs/kLUoIxrQnYMJ

and the suggested fix worked. Now it has failed to build cython-0.17pre.  Here is the output from that package:

 
ERROR: No module named _scproxy


I think I've seen this before. Probably the Python package didn't actually install completely; it probably has some error or warning message about _scproxy. Is that right?

Did you install the command line tools for the new Xcode? (I'm not sure what else to suggest.)

--
John

Volker Braun

unread,
Jan 9, 2013, 2:03:38 PM1/9/13
to sage-...@googlegroups.com
This is http://trac.sagemath.org/13898. The following workaround should help to get around Apple's broken headers:

CFLAGS="-DOS_OBJECT_USE_OBJC=0"
export CFLAGS
make

Ben Hutz

unread,
Jan 9, 2013, 3:11:43 PM1/9/13
to sage-...@googlegroups.com
Opps. I didn't realize I had to re-install those as well.

Now, to ask dumb question. I installed them and tried to build again, to get the same error. Do I need to delete the partial build and start over now that I've installed the tools?

Ben Hutz

unread,
Jan 9, 2013, 3:13:46 PM1/9/13
to sage-...@googlegroups.com
This doesn't work for my cython error. (The error in my first post is what I get after trying that)

Volker Braun

unread,
Jan 9, 2013, 3:26:07 PM1/9/13
to sage-...@googlegroups.com
You need to rebuild from scratch, the real error was during the Python compilation.

Ben Hutz

unread,
Jan 11, 2013, 10:29:54 AM1/11/13
to sage-...@googlegroups.com
Thanks. It succeeded after I forced a rebuild on python.
Reply all
Reply to author
Forward
0 new messages