sage 9.0 build failed : Error building package python3-3.7.3.p1

44 views
Skip to first unread message

souvik kapri

unread,
Mar 5, 2020, 12:40:51 AM3/5/20
to sage-devel
Hi,
I have a problem building sage from source files. It says that :

Package 'python3' is currently not installed
No legacy uninstaller found for 'python3'; nothing to do
Configuring python3-3.7.3.p1
configure: WARNING: unrecognized options: --disable-maintainer-mode, --disable-dependency-tracking
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for python3.7... no
checking for python3... on

I have Ubuntu 16.04 and I have python 3.7.6 installed. I have tried changing the symbolic links to other python versions like 3.5 and 3.6 but this error persists.
I have attached the corresponding log file,
Thanks in advance
python3-3.7.3.p1.log
config.log

Dima Pasechnik

unread,
Mar 5, 2020, 2:53:30 AM3/5/20
to sage-devel
At this point Sage is building its own python.
(we are working on its ability to use system's python, but it is not there yet)
So there's nothing wrong here - except that it fails.

--
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/902d5f96-7672-4fff-9d52-7f276cac743d%40googlegroups.com.

Dima Pasechnik

unread,
Mar 5, 2020, 3:17:54 AM3/5/20
to sage-devel
The problem can be seen at the end of the python log:

ModuleNotFoundError: No module named 'readline'
readline module failed to import
socket module imported OK
Error: One or more modules failed to import.


Please install system package libreadline-dev
(i.e., run "sudo apt-get install libreadline-dev")
This seems to be missing in our installation manual, will be fixed.

then run

make ncurses-clean readline-clean
./configure
make

souvik kapri

unread,
Mar 5, 2020, 3:49:58 AM3/5/20
to sage-devel
I did run the above commands, but the error still persists:

ModuleNotFoundError: No module named 'readline'
readline module failed to import
socket module imported OK
Error: One or more modules failed to import.



Dima Pasechnik

unread,
Mar 5, 2020, 3:59:07 AM3/5/20
to sage-devel
post the latest config.log please
> --
> 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/dff5bafc-5d3b-42ff-b982-bf01c6d2816a%40googlegroups.com.

souvik kapri

unread,
Mar 5, 2020, 4:57:13 AM3/5/20
to sage-devel
The config file.

On Thursday, March 5, 2020 at 2:29:07 PM UTC+5:30, Dima Pasechnik wrote:
post the latest config.log please

On Thu, Mar 5, 2020 at 8:50 AM souvik kapri <souvikk...@gmail.com> wrote:
>
> I did run the above commands, but the error still persists:
>
> ModuleNotFoundError: No module named 'readline'
> readline module failed to import
> socket module imported OK
> Error: One or more modules failed to import.
>
>
>
> On Thursday, March 5, 2020 at 11:10:51 AM UTC+5:30, souvik kapri wrote:
>>
>> Hi,
>> I have a problem building sage from source files. It says that :
>>
>> Package 'python3' is currently not installed
>> No legacy uninstaller found for 'python3'; nothing to do
>> Configuring python3-3.7.3.p1
>> configure: WARNING: unrecognized options: --disable-maintainer-mode, --disable-dependency-tracking
>> checking build system type... x86_64-pc-linux-gnu
>> checking host system type... x86_64-pc-linux-gnu
>> checking for python3.7... no
>> checking for python3... on
>>
>> I have Ubuntu 16.04 and I have python 3.7.6 installed. I have tried changing the symbolic links to other python versions like 3.5 and 3.6 but this error persists.
>> I have attached the corresponding log file,
>> Thanks in advance
>
> --
> 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-...@googlegroups.com.
config.log

Dima Pasechnik

unread,
Mar 5, 2020, 5:04:05 AM3/5/20
to sage-devel
please post the output of
sudo apt-get install libncurses-dev
and
sudo apt-get install libreadline-dev

it appears you have not installed these packages.
> 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/8a9e04f7-cd57-4cbf-aca1-56c3a07a0879%40googlegroups.com.

souvik kapri

unread,
Mar 5, 2020, 5:13:44 AM3/5/20
to sage-devel
The output I received  is : 

$ sudo apt-get install libncurses-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libncurses5-dev' instead of 'libncurses-dev'
The following packages were automatically installed and are no longer required:
  libpython-all-dev libpython-dev libpython2.7-dev libreadline5
  linux-image-4.15.0-66-generic linux-modules-4.15.0-66-generic
  linux-modules-extra-4.15.0-66-generic python-all python-all-dev python-dev
  python-pkg-resources python-setuptools python-wheel python2.7-dev
Use 'sudo apt autoremove' to remove them.
Suggested packages:
  ncurses-doc
The following NEW packages will be installed:
  libncurses5-dev
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 175 kB of archives.
After this operation, 1,060 kB of additional disk space will be used.
Get:1 http://in.archive.ubuntu.com/ubuntu xenial/main amd64 libncurses5-dev amd64 6.0+20160213-1ubuntu1 [175 kB]
Fetched 175 kB in 0s (372 kB/s)         
Selecting previously unselected package libncurses5-dev:amd64.
(Reading database ... 295937 files and directories currently installed.)
Preparing to unpack .../libncurses5-dev_6.0+20160213-1ubuntu1_amd64.deb ...
Unpacking libncurses5-dev:amd64 (6.0+20160213-1ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up libncurses5-dev:amd64 (6.0+20160213-1ubuntu1) ...

$ sudo apt-get install libreadline-dev 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libreadline-dev is already the newest version (6.3-8ubuntu2).
The following packages were automatically installed and are no longer required:
  libpython-all-dev libpython-dev libpython2.7-dev libreadline5
  linux-image-4.15.0-66-generic linux-modules-4.15.0-66-generic
  linux-modules-extra-4.15.0-66-generic python-all python-all-dev python-dev
  python-pkg-resources python-setuptools python-wheel python2.7-dev
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

Dima Pasechnik

unread,
Mar 5, 2020, 5:18:11 AM3/5/20
to sage-devel
Thank you. Now you should be all set.
I forgot that on Ubuntu installation of
libreadline-dev does not trigger the installation of libncurses-dev,
my fault, sorry.
Please try building now. Specifically, run

make ncurses-clean
./configure
make
> 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/7f21ac28-7c1f-4a52-a3f3-11104d2a5eb2%40googlegroups.com.

souvik kapri

unread,
Mar 5, 2020, 9:08:38 AM3/5/20
to sage-devel
Thank You sir, 
I was able to to build sage.
Reply all
Reply to author
Forward
0 new messages