Python 3.9.2 failing to build

91 views
Skip to first unread message

atg...@gmail.com

unread,
Jun 17, 2021, 2:02:32 PM6/17/21
to sage-devel
Hello all,

When trying to make Sage, I ran into an error where python 3.9.2 won't build correctly. Does anyone know how to solve this?

Attached are the log files. I'm running Ubuntu 20.04.2 LTS.

Thank you,
Alex
python3-3.9.2.log
config.log

Dima Pasechnik

unread,
Jun 17, 2021, 2:47:26 PM6/17/21
to sage-devel, Samuel Lelièvre
I think it's not the 1st time we see a bug report related to readline
on Ubuntu 20.04 LTS.

Please see https://groups.google.com/d/msgid/sage-release/CAEcArF1av5SrGbVdF-pdCSZZ38tYcyxuw9Tj%2BZnGU6iA6w1AqA%40mail.gmail.com

Unfortunately I didn't hear back from Samuel regarding the problem
with Ubuntu 20.04's readline.

Samuel?
> --
> 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+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/6ba44357-8e5d-40d0-823e-f2e3990352ben%40googlegroups.com.

atg...@gmail.com

unread,
Jun 17, 2021, 4:25:39 PM6/17/21
to sage-devel
I tried running
```
$ make -s V=0 readline && make -s V=0 testlong
```
As Samuel suggested, but still had issues. Attached are the log files.

Thanks for the help!
config.log
python3-3.9.2.log

Matthias Koeppe

unread,
Jun 17, 2021, 4:30:57 PM6/17/21
to sage-devel

atg...@gmail.com

unread,
Jun 17, 2021, 8:23:26 PM6/17/21
to sage-devel
That fixed it, thank you!

Samuel Lelièvre

unread,
Jun 18, 2021, 5:20:57 AM6/18/21
to sage-devel
2021-06-17 18:47 UTC, Dima Pasechnik:
>
> I think it's not the 1st time we see a bug report related to readline
> on Ubuntu 20.04 LTS.
>
> Please see https://groups.google.com/g/sage-release/c/wkObkoZQpe4/m/lWDVCrfgAgAJ
>
> Unfortunately I didn't hear back from Samuel regarding the problem
> with Ubuntu 20.04's readline.
>
> Samuel?

Hi Dima, your answer on sage-release helped a lot.
Thanks to you, I was able to get the tests to pass.
I meant to send a reply but got sidetracked, sorry.
Thanks again for your help. --Samuel

Dima Pasechnik

unread,
Jun 18, 2021, 6:29:13 AM6/18/21
to sage-devel
Well, still there is a problem with system readline on Ubunto 20.04, it seems.
What is it?

>
> --
> 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+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CAEcArF2Nz6ETLXgct3yLR3uCurYO581OJBS5qvoSf9Lfhr53mg%40mail.gmail.com.

John Cremona

unread,
Jun 18, 2021, 9:03:15 AM6/18/21
to SAGE devel
On Fri, 18 Jun 2021 at 11:29, Dima Pasechnik <dim...@gmail.com> wrote:
>
> On Fri, Jun 18, 2021 at 10:20 AM Samuel Lelièvre
> <samuel....@gmail.com> wrote:
> >
> > 2021-06-17 18:47 UTC, Dima Pasechnik:
> > >
> > > I think it's not the 1st time we see a bug report related to readline
> > > on Ubuntu 20.04 LTS.
> > >
> > > Please see https://groups.google.com/g/sage-release/c/wkObkoZQpe4/m/lWDVCrfgAgAJ
> > >
> > > Unfortunately I didn't hear back from Samuel regarding the problem
> > > with Ubuntu 20.04's readline.
> > >
> > > Samuel?
> >
> > Hi Dima, your answer on sage-release helped a lot.
> > Thanks to you, I was able to get the tests to pass.
> > I meant to send a reply but got sidetracked, sorry.
> > Thanks again for your help. --Samuel
>
> Well, still there is a problem with system readline on Ubunto 20.04, it seems.
> What is it?

I just built 9.4.beta1 on my ubuntu 20.04 laptop with no trouble,
starting from a 9.3 build I just did "git pull trac develop;
./configure; make".

$ ./sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 9.4.beta1, Release Date: 2021-06-06 │
│ Using Python 3.9.2. Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Warning: this is a prerelease version, and it may be unstable. ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
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+...@googlegroups.com.
> > To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CAEcArF2Nz6ETLXgct3yLR3uCurYO581OJBS5qvoSf9Lfhr53mg%40mail.gmail.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+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CAAWYfq0fqimGhvjDNaZZbziL8GYfZOh7viKfL%2B4sKTyQKpHi%2BA%40mail.gmail.com.

Dima Pasechnik

unread,
Jun 18, 2021, 9:26:13 AM6/18/21
to sage-devel
On Fri, Jun 18, 2021 at 2:03 PM John Cremona <john.c...@gmail.com> wrote:
>
> On Fri, 18 Jun 2021 at 11:29, Dima Pasechnik <dim...@gmail.com> wrote:
> >
> > On Fri, Jun 18, 2021 at 10:20 AM Samuel Lelièvre
> > <samuel....@gmail.com> wrote:
> > >
> > > 2021-06-17 18:47 UTC, Dima Pasechnik:
> > > >
> > > > I think it's not the 1st time we see a bug report related to readline
> > > > on Ubuntu 20.04 LTS.
> > > >
> > > > Please see https://groups.google.com/g/sage-release/c/wkObkoZQpe4/m/lWDVCrfgAgAJ
> > > >
> > > > Unfortunately I didn't hear back from Samuel regarding the problem
> > > > with Ubuntu 20.04's readline.
> > > >
> > > > Samuel?
> > >
> > > Hi Dima, your answer on sage-release helped a lot.
> > > Thanks to you, I was able to get the tests to pass.
> > > I meant to send a reply but got sidetracked, sorry.
> > > Thanks again for your help. --Samuel
> >
> > Well, still there is a problem with system readline on Ubunto 20.04, it seems.
> > What is it?
>
> I just built 9.4.beta1 on my ubuntu 20.04 laptop with no trouble,
> starting from a 9.3 build I just did "git pull trac develop;
> ./configure; make".

a lot depends on the list of packages you have installed.
Could you post the main config.log?


>
> $ ./sage
> ┌────────────────────────────────────────────────────────────────────┐
> │ SageMath version 9.4.beta1, Release Date: 2021-06-06 │
> │ Using Python 3.9.2. Type "help()" for help. │
> └────────────────────────────────────────────────────────────────────┘
> ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
> ┃ Warning: this is a prerelease version, and it may be unstable. ┃
> ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
> 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+...@googlegroups.com.
> > > To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CAEcArF2Nz6ETLXgct3yLR3uCurYO581OJBS5qvoSf9Lfhr53mg%40mail.gmail.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+...@googlegroups.com.
> > To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CAAWYfq0fqimGhvjDNaZZbziL8GYfZOh7viKfL%2B4sKTyQKpHi%2BA%40mail.gmail.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+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CAD0p0K5Dy5dbWX7HDNkHn%2BJYbgNVw3_e4PZm0%2BXkAG%2B8Y78QUA%40mail.gmail.com.

John Cremona

unread,
Jun 18, 2021, 9:53:18 AM6/18/21
to SAGE devel
On Fri, 18 Jun 2021 at 14:26, Dima Pasechnik <dim...@gmail.com> wrote:
>
> On Fri, Jun 18, 2021 at 2:03 PM John Cremona <john.c...@gmail.com> wrote:
> >
> > On Fri, 18 Jun 2021 at 11:29, Dima Pasechnik <dim...@gmail.com> wrote:
> > >
> > > On Fri, Jun 18, 2021 at 10:20 AM Samuel Lelièvre
> > > <samuel....@gmail.com> wrote:
> > > >
> > > > 2021-06-17 18:47 UTC, Dima Pasechnik:
> > > > >
> > > > > I think it's not the 1st time we see a bug report related to readline
> > > > > on Ubuntu 20.04 LTS.
> > > > >
> > > > > Please see https://groups.google.com/g/sage-release/c/wkObkoZQpe4/m/lWDVCrfgAgAJ
> > > > >
> > > > > Unfortunately I didn't hear back from Samuel regarding the problem
> > > > > with Ubuntu 20.04's readline.
> > > > >
> > > > > Samuel?
> > > >
> > > > Hi Dima, your answer on sage-release helped a lot.
> > > > Thanks to you, I was able to get the tests to pass.
> > > > I meant to send a reply but got sidetracked, sorry.
> > > > Thanks again for your help. --Samuel
> > >
> > > Well, still there is a problem with system readline on Ubunto 20.04, it seems.
> > > What is it?
> >
> > I just built 9.4.beta1 on my ubuntu 20.04 laptop with no trouble,
> > starting from a 9.3 build I just did "git pull trac develop;
> > ./configure; make".
>
> a lot depends on the list of packages you have installed.
> Could you post the main config.log?

See attached

>
>
> >
> > $ ./sage
> > ┌────────────────────────────────────────────────────────────────────┐
> > │ SageMath version 9.4.beta1, Release Date: 2021-06-06 │
> > │ Using Python 3.9.2. Type "help()" for help. │
> > └────────────────────────────────────────────────────────────────────┘
> > ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
> > ┃ Warning: this is a prerelease version, and it may be unstable. ┃
> > ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
> > 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+...@googlegroups.com.
> > > > To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CAEcArF2Nz6ETLXgct3yLR3uCurYO581OJBS5qvoSf9Lfhr53mg%40mail.gmail.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+...@googlegroups.com.
> > > To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CAAWYfq0fqimGhvjDNaZZbziL8GYfZOh7viKfL%2B4sKTyQKpHi%2BA%40mail.gmail.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+...@googlegroups.com.
> > To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CAD0p0K5Dy5dbWX7HDNkHn%2BJYbgNVw3_e4PZm0%2BXkAG%2B8Y78QUA%40mail.gmail.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+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CAAWYfq138ajqqPi9uM%2BZSeAE1LpR6yO1TETVH0YHRv-jix5j%3DQ%40mail.gmail.com.
config.log

John Cremona

unread,
Jun 18, 2021, 12:47:21 PM6/18/21
to SAGE devel
Also, 'make ptestlong' gave this:

sage -t --long --warn-long 62.7 --random-seed=0
src/sage/doctest/test.py # 7 doctests failed
sage -t --long --warn-long 62.7 --random-seed=0
src/sage/tests/cmdline.py # 2 doctests failed

and then

=============================================================== ERRORS
================================================================
_________________________________________ ERROR collecting
sage/structure/sage_object_test.py
_________________________________________
ImportError while importing test module
'/home/john/sage/src/sage/structure/sage_object_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
src/sage/structure/sage_object_test.py:3: in <module>
from .sage_object import SageObject
E ImportError: attempted relative import with no known parent package
======================================================= short test
summary info =======================================================
ERROR src/sage/structure/sage_object_test.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error
during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
========================================================== 1 error in
3.81s ===========================================================
make: *** [Makefile:201: ptestlong] Error 1

which seems to show something not working in the test infrastructure.

Dima Pasechnik

unread,
Jun 18, 2021, 1:12:52 PM6/18/21
to sage-devel
You're not using many packages from the system, e.g. you built gmp
(and so everything that depends on it).
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CAD0p0K68ch8NgF%3Dfcwa267EAyrYJeuuffzoFaxCmiMmWqmX%2Bkg%40mail.gmail.com.

Matthias Koeppe

unread,
Jun 18, 2021, 1:42:59 PM6/18/21
to sage-devel
The failures at the end of 'make ptest' ("ERROR collecting sage/structure/sage_object_test.py") come from pytest integration added in Sage 9.3. They can be safely ignored; https://trac.sagemath.org/ticket/31924 tracks the task of fixing some of its issues.
Reply all
Reply to author
Forward
0 new messages