Don't activate anaconda in the first place, or deactivate it (source 
deactivate)



On Monday, January 30, 2017 at 5:44:57 PM UTC+1, sbacelar wrote:
>
> What can I do to run sage? If I activate a Python 2.7 environment in 
> Anaconda, it doesn't work.
>
> On Monday, January 30, 2017 at 3:46:14 PM UTC, Volker Braun wrote:
>>
>> Sage assumes that the default python is python 2.x, which is what Apple 
>> ships...
>>
>>
>>
>> On Monday, January 30, 2017 at 4:32:13 PM UTC+1, sbacelar wrote:
>>>
>>> I am trying to install SageMath 7.5.1 on my MacBook Pro with 
>>> macOS 10.12.2. 
>>> I don't know if it matters but I am using Python from Anaconda 
>>> distribution.
>>> After opening the dmg file, this is what I get:
>>>
>>> MacBook-Pro-de-Sergio:~ sergiobacelar$ 
>>> '/Applications/SageMath-7.5.1.app/Contents/Resources/sage/sage' --
>>> notebook=sagenb
>>>
>>>  
>>>
>>> Fatal Python error: Py_Initialize: unable to load the file system codec 
>>>
>>>   File 
>>> "/Applications/SageMath-7.5.1.app/Contents/Resources/sage/local/lib/python/encodings/__init__.py"
>>> , line 123 
>>>
>>>     raise CodecRegistryError,\ 
>>>
>>>                             ^ 
>>>
>>> SyntaxError: invalid syntax 
>>>
>>>
>>>  
>>>
>>> Current thread 0x00007fffefff43c0 (most recent call first): 
>>>
>>> /Applications/SageMath-7.5.1.app/Contents/Resources/sage/sage: line 130: 
>>> 23627 Abort trap: 6           "$SAGE_ROOT/relocate-once.py" 
>>>
>>> Traceback (most recent call last): 
>>>
>>>   File 
>>> "/Applications/SageMath-7.5.1.app/Contents/Resources/sage/src/bin/sage-notebook"
>>> , line 7, in <module> 
>>>
>>>     import argparse 
>>>
>>>   File 
>>> "/Applications/SageMath-7.5.1.app/Contents/Resources/sage/local/lib/python/argparse.py"
>>> , line 85, in <module> 
>>>
>>>     import collections as _collections 
>>>
>>>   File 
>>> "/Applications/SageMath-7.5.1.app/Contents/Resources/sage/local/lib/python/collections.py"
>>> , line 21, in <module> 
>>>
>>>     from operator import itemgetter as _itemgetter, eq as _eq 
>>>
>>> ImportError: dlopen(/Applications/SageMath-7.5.1.app/Contents/Resources/
>>> sage/local/lib/python2.7/lib-dynload/operator.so, 2): Symbol not found: 
>>> __PyUnicodeUCS4_AsDefaultEncodedString 
>>>
>>>   Referenced from: /Applications/SageMath-7.5.1.app/Contents/Resources/
>>> sage/local/lib/python2.7/lib-dynload/operator.so 
>>>
>>>   Expected in: flat namespace 
>>>
>>>  in /Applications/SageMath-7.5.1.app/Contents/Resources/sage/local/lib/
>>> python2.7/lib-dynload/operator.so
>>>
>>>
>>>

-- 
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 sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
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