On Wednesday, August 10, 2016 at 9:22:46 AM UTC+1, Dima Pasechnik wrote:
>
>
>
> On Wednesday, August 10, 2016 at 9:13:14 AM UTC+1, The Geeko wrote:
>>
>> I just encountered this problem.... sage -i py3 ( to install python3)... 
>> broke my whole system... Is there a single "undo" operation so that I can 
>> return to my working copy?
>>
>
> do you mean 
>
> sage -i python3 
>

this breaks sage, as it makes the symbolic link 'python' to point to 
'python3' in SAGE_LOCAL/bin.
To fix, it suffices to make it point to python2 instead:

cd SAGE_ROOT # where your Sage is installed
cd local/bin
ln -sf python2 python

Then everything works as before
(and you may also use python3 script from 'sage -sh')

Perhaps a proper fix would be to leave python symbolic link as it is.

Dima


> IMHO Sage does not have a package named py3
>  
>  
>
>>
>> On Wednesday, October 21, 2015 at 6:30:31 AM UTC-5, Emmanuel Charpentier 
>> wrote:
>>>
>>> This is probably related to Trac#18521 
>>> <http://trac.sagemath.org/ticket/18521>, but on Linux (Debian testing) 
>>> : Installing the optional python3 package breaks my Sage installation. 
>>> After installing it, I get :
>>>
>>> charpent@SAP5057241:~$ sage
>>> /usr/local/sage/src/bin/sage-env : ligne 423 :  3485 
>>> Abandon                 "$SAGE_ROOT/local/bin/python" -c 'import 
>>> pkg_resources; pkg_resources.get_distribution("matplotlib").version' 2> 
>>> /dev/null
>>> ┌────────────────────────────────────────────────────────────────────┐
>>> │ SageMath Version 6.9, Release Date: 2015-10-10                     │
>>> │ Type "notebook()" for the browser-based notebook interface.        │
>>> │ Type "help()" for help.                                            │
>>> └────────────────────────────────────────────────────────────────────┘
>>> Fatal Python error: Py_Initialize: Unable to get the locale encoding
>>>   File "/usr/local/sage/local/lib/python/encodings/__init__.py", line 123
>>>     raise CodecRegistryError,\
>>>                             ^
>>> SyntaxError: invalid syntax
>>> /usr/local/sage/src/bin/sage : ligne 388 :  3493 Abandon                 
>>> sage-location
>>>
>>> After this, my Sage installation is broken real good : I can't even make
>>> ...
>>>
>>> Shouldn't we displace python3 in "experimental" packages ?
>>>
>>> HTH,
>>>
>>> --
>>> Emmanuel Charpentier
>>>
>>>

-- 
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