[email protected] wrote:
> The server of Sage 7.3 for Mac OS 10.11.6  (the app version) will not
> start! 

Smells like some system python3 is called instead of Sage's python2
(hence the SyntaxError).

There are at least two similar issues on ask.sagemath.org, one of them
[1] suggesting to manually change your PATH environment variable before
calling 'sage'.  (On the other hand, I can hardly imagine such an old
bug would still exist...)

The other one [2] suggests that your OS (or probably that of the
buildbot creating the binary distribution) is not up-to-date.  This
*may* include your version of Xcode, but I don't really know.


-leif


[1] http://ask.sagemath.org/question/8531/install-problem-app-on-mac-os-x/

[2] http://ask.sagemath.org/question/34548/sage-on-macbookair/


> Here is the  error report from the Terminal:
> 
> --------------------------------------------------------------------------------------------------------------------
> 
> Last login: Wed Aug 24 12:07:55 on console
> DT-319195-MTH:~ amarzullo$
> '/Applications/SageMath-7.3.app/Contents/Resources/sage/sage'
> --notebook=sagenb Fatal Python error: Py_Initialize: unable to load the
> file system codec
> 
> File
> "/Applications/SageMath-7.3.app/Contents/Resources/sage/local/lib/python/encodings/__init__.py",
> line 123 raise CodecRegistryError,\
> 
> ^ SyntaxError: invalid syntax
> 
> Current thread 0x00007fff7a084000 (most recent call first):
> /Applications/SageMath-7.3.app/Contents/Resources/sage/sage: line 130:
> 1300 Abort trap: 6 Traceback (most recent call last):
> 
> "$SAGE_ROOT/relocate-once.py"
> 
> File
> "/Applications/SageMath-7.3.app/Contents/Resources/sage/src/bin/sage-notebook",
> line 7, in <module> import argparse
> 
> File
> "/Applications/SageMath-7.3.app/Contents/Resources/sage/local/lib/python/argparse.py",
> line 85, in <module> import collections as _collections
> 
> File
> "/Applications/SageMath-7.3.app/Contents/Resources/sage/local/lib/python/collections.py",
> line 9, in <module> from operator import itemgetter as _itemgetter, eq
> as _eq
> 
> ImportError:
> dlopen(/Applications/SageMath-7.3.app/Contents/Resources/sage/local/lib/python2.7/lib-dynload/operator.so,
> 2): Symbol not found: __PyUnicodeUCS4 _AsDefaultEncodedString
> 
> Referenced from:
> /Applications/SageMath-7.3.app/Contents/Resources/sage/local/lib/python2.7/lib-dynload/operator.so
> 
> 
> Expected in: flat namespace
> in
> /Applications/SageMath-7.3.app/Contents/Resources/sage/local/lib/python2.7/lib-dynload/operator.so
> 
> 
> DT-319195-MTH:~ amarzullo$
> .app/Contents/Resources/sage/local/lib/python2.7/lib-dynload/operator.so
> -bash:
> .app/Contents/Resources/sage/local/lib/python2.7/lib-dynload/operator.so: No
> such file or directory
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> 
> 
> Note: I had to download the app DMG  version of Sage 7.3 several times
> before it would copy without giving error messages about the file being
> corrupted!
> 
> 
> I am using a Mid 2012 iMac i5, 20 GB of ram with Mac OS 10.11.6.
> 
> Any ideas?
> 
> Regards,
> 
> Adam Hausknecht


-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to