There is a way to configure Sage to use any Python3, e.g. to use
python3.8 (assuming this is how your Python 3.8 executable
is called)

./configure --with-python=python3.8

(and then of course you'd have to rebuild all the python packages of Sage)

Needless to say, modifying /usr/bin/python3 is not a good idea - as
you discovered.

HTH
Dima

On Sun, Jan 3, 2021 at 10:12 AM Günter Rote <roteguen...@gmail.com> wrote:
>
> I am posting config.log.
>
> (I had linked /usr/bin/python3 to /usr/bin/python3.8, and then the sage build 
> went through without problems.
> But then I ran into a different problem: I could not open a terminal window. 
> After a frightening hour, I
> discovered the reason: /usr/bin/gnome-terminal could not find some library on 
> line 8:
> #!/usr/bin/python3
>
> import string
> import subprocess
> import sys
> import random
>
> from argparse import ArgumentParser, SUPPRESS
> from gi.repository import GLib, Gio
> ...
>
> Now I have switched back /usr/bin/python3 to /usr/bin/python3.6, but now sage 
> won't build any more.
>
>
> Matthias Koeppe schrieb am Samstag, 2. Januar 2021 um 19:55:15 UTC+1:
>>
>> On Saturday, January 2, 2021 at 9:45:58 AM UTC-8 roteg...@gmail.com wrote:
>>>
>>> Error building package python3-3.8.5
>>> [...]
>>>
>>>
>>> I downloaded today the Branch "develop"
>>> I am running under
>>> Ubuntu 18.04
>>>
>>> Could not make sage.
>>
>>
>> From the log:
>>
>> *** WARNING: renaming "readline" since importing it failed: 
>> /home/rote/Dokumente/sage/local/lib/libreadline.so.8: undefined symbol: UP 
>> Python build finished successfully! The necessary bits to build these 
>> optional modules were not found: _dbm _gdbm _tkinter To find the necessary 
>> bits, look in setup.py in detect_modules() for the module's name. The 
>> following modules found by detect_modules() in setup.py, have been built by 
>> the Makefile instead, as configured by the Setup files: _abc atexit pwd time 
>> Following modules built successfully but were removed because they could not 
>> be imported: readline running build_scripts creating build/scripts-3.8 
>> copying and adjusting 
>> /home/rote/Dokumente/sage/local/var/tmp/sage/build/python3-3.8.5/src/Tools/scripts/pydoc3
>>  -> build/scripts-3.8 copying and adjusting 
>> /home/rote/Dokumente/sage/local/var/tmp/sage/build/python3-3.8.5/src/Tools/scripts/idle3
>>  -> build/scripts-3.8 copying and adjusting 
>> /home/rote/Dokumente/sage/local/var/tmp/sage/build/python3-3.8.5/src/Tools/scripts/2to3
>>  -> build/scripts-3.8 changing mode of build/scripts-3.8/pydoc3 from 644 to 
>> 755 changing mode of build/scripts-3.8/idle3 from 644 to 755 changing mode 
>> of build/scripts-3.8/2to3 from 644 to 755 renaming build/scripts-3.8/pydoc3 
>> to build/scripts-3.8/pydoc3.8 renaming build/scripts-3.8/idle3 to 
>> build/scripts-3.8/idle3.8 renaming build/scripts-3.8/2to3 to 
>> build/scripts-3.8/2to3-3.8 Testing importing of various modules... ctypes 
>> module imported OK math module imported OK hashlib module imported OK crypt 
>> module imported OK Traceback (most recent call last): File "<string>", line 
>> 1, in <module> ModuleNotFoundError: No module named 'readline' readline 
>> module failed to import socket module imported OK zlib module imported OK 
>> sqlite3 module imported OK Error: One or more modules failed to import.
>>
>> This might be a problem with ncurses.
>>
>>> (I have python 3.8.0 installed anyway, but sage wants to install its own 
>>> more recent version, apparently.)
>>
>>
>> Please post config.log, which will also explain why system python 3.8 was 
>> not accepted by Sage.
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-devel+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-devel/b0395701-5f00-4f34-ba4b-99c0cc7e973an%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CAAWYfq3oDvYar44AgN5ZLsnO4Qm0%2BM9XWd0B0m%2BOqvcxVQSmfw%40mail.gmail.com.

Reply via email to