> configure informs you about the system packages that should be installed.
> It's on the last screen of the configure output.

Would it be too late to fix the issues related to python3-1.0.4 after
'configure' was run?

Any way, this is the last screen of configure output:

config.status: creating convenience symlink venv ->
local/var/lib/sage/venv-python3.10
configure:

    notice: the following SPKGs did not find equivalent system packages:

        arb cddlib ecl eclib flint fplll gc giac lcalc libhomfly linbox
lrcalc pari pari_galdata pari_seadata_small primecount primesieve qhull
singular   4ti2 _recommended coxeter3 gp2c igraph libsemigroups lrslib
pari_elldata pari_galpol pari_nftables pari_seadata polymake

checking for the package system in use... (ignoring conda because no
environment is active) debian
configure:

    hint: installing the following system packages, if not
    already present, is recommended and may avoid having to
    build them (though some may have to be built anyway):

      $ sudo apt-get update
      $ sudo apt-get install  libflint-arb-dev libcdd-dev libcdd-tools ecl
libec-dev eclib-tools libflint-dev libfplll-dev libgc-dev libgiac-dev xcas
lcalc liblfunction-dev libhomfly-dev liblinbox-dev liblrcalc-dev pari-gp2c
libpari-dev pari-doc pari-elldata pari-galdata pari-galpol pari-seadata
libprimesieve-dev libqhull-dev singular singular-doc libsingular4-dev

configure:

    hint: installing the following system packages, if not
    already present, may provide additional optional features:

      $ sudo apt-get update
      $ sudo apt-get install  4ti2 default-jdk libavdevice-dev pari-gp2c
libigraph-dev lrslib polymake libpolymake-dev

configure:

    hint: After installation, re-run configure using:

      $ ./config.status --recheck && ./config.status


On Sat, Apr 9, 2022 at 12:51 PM Matthias Koeppe <matthiaskoe...@gmail.com>
wrote:

> configure informs you about the system packages that should be installed.
> It's on the last screen of the configure output.
>
>
>
> On Saturday, April 9, 2022 at 8:50:01 AM UTC-7 hohoa...@gmail.com wrote:
>
>> $ python
>> Python 3.10.4 (main, Mar 24 2022, 16:12:56) [GCC 9.4.0] on linux
>> Type "help", "copyright", "credits" or "license" for more information.
>>
>> >>> import sqlite3, ctypes, math, hashlib, crypt, socket, zlib,
>> distutils.core, ssl
>> <stdin>:1: DeprecationWarning: The distutils package is deprecated and
>> slated for removal in Python 3.12. Use setuptools or check PEP 632 for
>> potential alternatives
>> Traceback (most recent call last):
>>   File "<stdin>", line 1, in <module>
>> ModuleNotFoundError: No module named 'distutils.core'
>> >>>
>>
>> It looks like 'distutils.core' has been deprecated (and removed from
>> python3.10-dev?)
>>
>> > Use setuptools or check PEP 632 for potential alternatives
>>
>> Should 'setuptools' be installed so that sage will use python-3.10.4 on
>> the system?
>>
>> Thanks for your help
>>
>> Regards,
>>
>> phiho
>>
>>
>> Regards,
>>
>> phiho
>>
>>
>> On Sat, Apr 9, 2022 at 7:37 AM Dima Pasechnik <dim...@gmail.com> wrote:
>>
>>> On Sat, Apr 9, 2022 at 2:14 AM ph h <hohoa...@gmail.com> wrote:
>>> >
>>> >
>>> > >> sudo apt-get install libffi-dev ....
>>> >
>>> > > Thanks, that works.
>>> > But ...
>>> >
>>> > $ python --version
>>> > Python 3.10.4
>>> >
>>> > $ python3 --version
>>> > Python 3.10.4
>>> >
>>> > $ sudo apt-get install python3.10-dev
>>> > Reading package lists... Done
>>> > Building dependency tree
>>> > Reading state information... Done
>>> > python3.10-dev is already the newest version (3.10.4-1+focal1).
>>> > 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
>>> >
>>> > $ sudo apt-get install libffi-dev libbz2-dev bzip2 xz-utils liblzma-dev
>>> > Reading package lists... Done
>>> > Building dependency tree
>>> > Reading state information... Done
>>> > bzip2 is already the newest version (1.0.8-2).
>>> > libbz2-dev is already the newest version (1.0.8-2).
>>> > libffi-dev is already the newest version (3.3-4).
>>> > liblzma-dev is already the newest version (5.2.4-1ubuntu1).
>>> > xz-utils is already the newest version (5.2.4-1ubuntu1).
>>> > 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
>>> >
>>> > $ ls -l logs/pkgs | grep ython
>>> > -rw-rw-rw- 1 hph hph  109867 Apr  8 19:33 cython-0.29.28.log
>>> > -rw-rw-rw- 1 hph hph 1930797 Apr  8 19:24 python3-3.10.3.log
>>> >
>>> > From config.log:
>>> >
>>> > ## -------------------------------------------------------- ##
>>> > ## Checking whether SageMath should install SPKG python3... ##
>>> > ## -------------------------------------------------------- ##
>>> > configure:31722: checking whether any of bzip2 liblzma libffi is
>>> installed as or will be installed as SPKG
>>> > configure:31731: result: no
>>> > configure:31735: checking for python3 >= 3.7.0, < 3.11.0 with modules
>>> sqlite3, ctypes, math, hashlib, crypt, socket, zlib, distutils.core, ssl
>>> > configure:32402: result:
>>> > configure:32426: checking ... whether /usr/bin/python3 is good
>>> > configure:32997: result: no, the version is in the supported range but
>>> cannot import one of the required modules: sqlite3, ctypes, math, hashlib,
>>> crypt, socket, zlib, distutils.core, ssl
>>>
>>> which of these modules is not there?
>>>
>>> start python3 and try running
>>> >>> import sqlite3, ctypes, math, hashlib, crypt, socket, zlib,
>>> distutils.core, ssl
>>>
>>>
>>>
>>> > configure:32426: checking ... whether /bin/python3 is good
>>> > configure:32997: result: no, the version is in the supported range but
>>> cannot import one of the required modules: sqlite3, ctypes, math, hashlib,
>>> crypt, socket, zlib, distutils.core, ssl
>>> > configure:33048: result:
>>> > configure:33052: to try to use a different system python, use
>>> ./configure --with-python=/path/to/python
>>> > configure:33079: no suitable system package found for SPKG python3
>>> > #
>>> >
>>> > Please advise what else needs to be done to fix this issue.
>>> >
>>> > Thank you for your help.
>>> >
>>> > Regards,
>>> >
>>> > phiho
>>> >
>>> >
>>> >
>>> > On Fri, Apr 8, 2022 at 5:57 PM ph h <hohoa...@gmail.com> wrote:
>>> >>
>>> >> Hi,
>>> >>
>>> >> > sudo apt-get install libffi-dev ....
>>> >>
>>> >> Thanks, that works.
>>> >>
>>> >> phiho
>>> >>
>>> >>
>>> >> On Fri, Apr 8, 2022 at 5:18 PM Dima Pasechnik <dim...@gmail.com>
>>> wrote:
>>> >>>
>>> >>>
>>> >>>
>>> >>> On Fri, 8 Apr 2022, 22:06 ph h, <hohoa...@gmail.com> wrote:
>>> >>>>
>>> >>>> Hi,
>>> >>>>
>>> >>>> > Yes, this is needed for Python headers, but still
>>> >>>> > sudo apt-get libffi-dev libbz2-dev bzip2 xz-utils liblzma-dev
>>> openssl libssl-dev
>>> >>>>
>>> >>>> ~/sage-9.6$ sudo apt-get libffi-dev libbz2-dev bzip2 xz-utils
>>> liblzma-dev openssl libssl-dev
>>> >>>> E: Invalid operation libffi-dev
>>> >>>>
>>> >>>> Is something missing on this WSL system?
>>> >>>
>>> >>>
>>> >>> sorry, it should be
>>> >>>
>>> >>> sudo apt-get install libffi-dev ....
>>> >>>
>>> >>>
>>> >>>
>>> >>>
>>> >>>>
>>> >>>> Thank you for your help.
>>> >>>>
>>> >>>> Regards,
>>> >>>>
>>> >>>> phiho
>>> >>>>
>>> >>>>
>>> >>>> On Fri, Apr 8, 2022 at 9:53 AM Dima Pasechnik <dim...@gmail.com>
>>> wrote:
>>> >>>>>
>>> >>>>> On Fri, Apr 8, 2022 at 2:39 PM Vincent Delecroix
>>> >>>>> <20100.d...@gmail.com> wrote:
>>> >>>>> >
>>> >>>>> > You could install the python3-dev Ubuntu package to fix the
>>> issue.
>>> >>>>>
>>> >>>>> Yes, this is needed for Python headers, but still
>>> >>>>>
>>> >>>>> sudo apt-get libffi-dev libbz2-dev bzip2 xz-utils liblzma-dev
>>> openssl libssl-dev
>>> >>>>>
>>> >>>>> might be needed too.
>>> >>>>>
>>> >>>>>
>>> >>>>> >
>>> >>>>> > Le 08/04/2022 à 05:32, 'Nasser M. Abbasi' via sage-devel a écrit
>>> :
>>> >>>>> > > looking at config.log, it rejected the python version Python
>>> 3.10.4 I had
>>> >>>>> > > because of this
>>> >>>>> > >
>>> >>>>> > > ## -------------------------------------------------------- ##
>>> >>>>> > > ## Checking whether SageMath should install SPKG python3... ##
>>> >>>>> > > ## -------------------------------------------------------- ##
>>> >>>>> > > configure:31945: checking whether any of bzip2 liblzma libffi
>>> is installed
>>> >>>>> > > as or will be installed as SPKG
>>> >>>>> > > configure:31954: result: no
>>> >>>>> > > configure:31958: checking for python3 >= 3.7.0, < 3.11.0 with
>>> modules
>>> >>>>> > > sqlite3, ctypes, math, hashlib, crypt, socket, zlib,
>>> distutils.core, ssl
>>> >>>>> > > configure:32625: result:
>>> >>>>> > > configure:32649: checking ... whether /bin/python3 is good
>>> >>>>> > > CC=gcc CXX=g++ -std=gnu++11 conftest_venv/bin/python3
>>> conftest.py --verbose
>>> >>>>> > > build --build-base=conftest.dir
>>> >>>>> > >
>>> /mnt/g/nabbasi/data/CDROM/sagemath/sage-9.6.beta7/conftest.py:1:
>>> >>>>> > > DeprecationWarning: The distutils package is deprecated and
>>> slated for
>>> >>>>> > > removal in Python 3.12. Use setuptools or check PEP 632 for
>>> potential
>>> >>>>> > > alternatives
>>> >>>>> > > from distutils.core import setup
>>> >>>>> > > running build
>>> >>>>> > > running build_ext
>>> >>>>> > > building 'config_check_distutils' extension
>>> >>>>> > > creating conftest.dir
>>> >>>>> > > creating conftest.dir/temp.linux-x86_64-3.10
>>> >>>>> > > gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2
>>> -Wall -g
>>> >>>>> > > -fstack-protector-strong -Wformat -Werror=format-security -g
>>> >>>>> > > -fstack-protector-strong -Wformat -Werror=format-security -fPIC
>>> >>>>> > >
>>> -I/mnt/g/nabbasi/data/CDROM/sagemath/sage-9.6.beta7/conftest_venv/include
>>> >>>>> > > -I/usr/include/python3.10 -c conftest.c -o
>>> >>>>> > > conftest.dir/temp.linux-x86_64-3.10/conftest.o
>>> >>>>> > > conftest.c:75:10: fatal error: Python.h: No such file or
>>> directory
>>> >>>>> > > 75 | #include <Python.h>
>>> >>>>> > > | ^~~~~~~~~~
>>> >>>>> > > compilation terminated.
>>> >>>>> > > error: command '/bin/gcc' failed with exit code 1
>>> >>>>> > > configure:33213: result: no, the version is in the supported
>>> range, and the
>>> >>>>> > > modules can be imported, but distutils cannot build a C
>>> extension
>>> >>>>> > > configure:32649: checking ... whether /usr/bin/python3 is good
>>> >>>>> > > CC=gcc CXX=g++ -std=gnu++11 conftest_venv/bin/python3
>>> conftest.py --verbose
>>> >>>>> > > build --build-base=conftest.dir
>>> >>>>> > >
>>> /mnt/g/nabbasi/data/CDROM/sagemath/sage-9.6.beta7/conftest.py:1:
>>> >>>>> > > DeprecationWarning: The distutils package is deprecated and
>>> slated for
>>> >>>>> > > removal in Python 3.12. Use setuptools or check PEP 632 for
>>> potential
>>> >>>>> > > alternatives
>>> >>>>> > > from distutils.core import setup
>>> >>>>> > > running build
>>> >>>>> > > running build_ext
>>> >>>>> > > building 'config_check_distutils' extension
>>> >>>>> > > creating conftest.dir
>>> >>>>> > > creating conftest.dir/temp.linux-x86_64-3.10
>>> >>>>> > > gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2
>>> -Wall -g
>>> >>>>> > > -fstack-protector-strong -Wformat -Werror=format-security -g
>>> >>>>> > > -fstack-protector-strong -Wformat -Werror=format-security -fPIC
>>> >>>>> > >
>>> -I/mnt/g/nabbasi/data/CDROM/sagemath/sage-9.6.beta7/conftest_venv/include
>>> >>>>> > > -I/usr/include/python3.10 -c conftest.c -o
>>> >>>>> > > conftest.dir/temp.linux-x86_64-3.10/conftest.o
>>> >>>>> > > conftest.c:75:10: fatal error: Python.h: No such file or
>>> directory
>>> >>>>> > > 75 | #include <Python.h>
>>> >>>>> > > | ^~~~~~~~~~
>>> >>>>> > > compilation terminated.
>>> >>>>> > > error: command '/bin/gcc' failed with exit code 1
>>> >>>>> > > configure:33213: result: no, the version is in the supported
>>> range, and the
>>> >>>>> > > modules can be imported, but distutils cannot build a C
>>> extension
>>> >>>>> > > configure:33271: result:
>>> >>>>> > > configure:33275: to try to use a different system python, use
>>> ./configure
>>> >>>>> > > --with-python=/path/to/python
>>> >>>>> > > configure:33302: no suitable system package found for SPKG
>>> python3
>>> >>>>> > >
>>> >>>>> > >
>>> >>>>> > >
>>> >>>>> > > On Thursday, April 7, 2022 at 11:18:56 AM UTC-5
>>> dim...@gmail.com wrote:
>>> >>>>> > >
>>> >>>>> > >> On Thu, Apr 7, 2022 at 4:41 PM 'Nasser M. Abbasi' via
>>> sage-devel
>>> >>>>> > >> <sage-...@googlegroups.com> wrote:
>>> >>>>> > >>>
>>> >>>>> > >>> Here is the information you asked for
>>> >>>>> > >>>
>>> >>>>> > >>>> which python3
>>> >>>>> > >>> /bin/python3
>>> >>>>> > >>>
>>> >>>>> > >>>> python3 --version
>>> >>>>> > >>> Python 3.10.4
>>> >>>>> > >>>
>>> >>>>> > >>>> which python
>>> >>>>> > >>> /bin/python
>>> >>>>> > >>>
>>> >>>>> > >>>> python --version
>>> >>>>> > >>> Python 3.10.4
>>> >>>>> > >>>>
>>> >>>>> > >>>
>>> >>>>> > >> Thanks.
>>> >>>>> > >> How about config.log?
>>> >>>>> > >> I suppose your python3 is rejected as it does not have all the
>>> >>>>> > >> required by Sage modules
>>> >>>>> > >> installed. (Or its other dependencies are not fully installed)
>>> >>>>> > >>
>>> >>>>> > >> At the end of the run of ./configure there is a message
>>> printed with
>>> >>>>> > >> recommendations
>>> >>>>> > >> what you should install system-wide.
>>> >>>>> > >> In particular, you should run
>>> >>>>> > >>
>>> >>>>> > >> sudo apt-get libffi-dev libbz2-dev bzip2 xz-utils liblzma-dev
>>> >>>>> > >>
>>> >>>>> > >>
>>> >>>>> > >>
>>> >>>>> > >>
>>> >>>>> > >>>
>>> >>>>> > >>> On Thursday, April 7, 2022 at 3:39:03 AM UTC-5
>>> dim...@gmail.com wrote:
>>> >>>>> > >>>>
>>> >>>>> > >>>> On Thu, Apr 7, 2022 at 9:01 AM Dima Pasechnik <
>>> dim...@gmail.com> wrote:
>>> >>>>> > >>>>>
>>> >>>>> > >>>>> On Thu, Apr 7, 2022 at 6:17 AM 'Nasser M. Abbasi' via
>>> sage-devel
>>> >>>>> > >>>>> <sage-...@googlegroups.com> wrote:
>>> >>>>> > >>>>>>
>>> >>>>> > >>>>>> Basic question:
>>> >>>>> > >>>>>>
>>> >>>>> > >>>>>> I Downloaded beta 7 source code. When I do ./configure,
>>> it tells me
>>> >>>>> > >> that it wants to install Python 3-3.1.0.3 since no suitable
>>> one found.
>>> >>>>> > >>>>>>
>>> >>>>> > >>>>>> However, I have Python 3.10.4 installed.
>>> >>>>> > >>>>>> So why is it building [python3-3.10.3] ?
>>> >>>>> > >>>>>>
>>> >>>>> > >>>>>>> which python
>>> >>>>> > >>>>>> /bin/python
>>> >>>>> > >>>>>>> python --version
>>> >>>>> > >>>>>> Python 3.10.4
>>> >>>>> > >>>>>
>>> >>>>> > >>>>> the tests in ./configure are for python3, not python
>>> >>>>> > >>>>>
>>> >>>>> > >>>>> What's the output of
>>> >>>>> > >>>>>
>>> >>>>> > >>>>> which python3
>>> >>>>> > >>>>>
>>> >>>>> > >>>>> ?
>>> >>>>> > >>>>
>>> >>>>> > >>>> also, check
>>> >>>>> > >>>>
>>> >>>>> > >>>> python3 --version
>>> >>>>> > >>>>
>>> >>>>> > >>>>
>>> >>>>> > >>>> In any case, if you're still stuck, please post the
>>> top-level config.log
>>> >>>>> > >>>>
>>> >>>>> > >>>>
>>> >>>>> > >>>>
>>> >>>>> > >>>>
>>> >>>>> > >>>>>
>>> >>>>> > >>>>>
>>> >>>>> > >>>>>>>
>>> >>>>> > >>>>>>
>>> >>>>> > >>>>>> I am on Ubuntu 20.04
>>> >>>>> > >>>>>>
>>> >>>>> > >>>>>> I hope this Python it is building will not interfere with
>>> my own
>>> >>>>> > >> Python after installation of sagemath when it is done
>>> building?
>>> >>>>> > >>>>>>
>>> >>>>> > >>>>>> --Nasser
>>> >>>>> > >>>>>>
>>> >>>>> > >>>>>>
>>> >>>>> > >>>>>>
>>> >>>>> > >>>>>>
>>> >>>>> > >>>>>> --
>>> >>>>> > >>>>>> 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/164fbf11-73a4-432f-be15-0c2db3c48e49n%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+...@googlegroups.com.
>>> >>>>> > >>> To view this discussion on the web visit
>>> >>>>> > >>
>>> https://groups.google.com/d/msgid/sage-devel/2ff27a53-69e6-4be2-bee1-24604ca9e651n%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+...@googlegroups.com.
>>> >>>>> > To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/sage-devel/927a0aef-88e5-33a9-48b0-eccecf28a275%40gmail.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/CAAWYfq3yZSG%3Dtbm7ha5v-e76fO6dYUYJEiBsqS83Zn5cw-waEA%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/CALZQg1bPreaipTULxBzsTAcLr9_yr4WajiTFotvYqEQuwY-fcQ%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/CAAWYfq31RNNWgCBY_7pT7pzqhmT8CCzTBG%3DMWTzT%2BF5YH%3DVpmg%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/CALZQg1Z%2B7sBFeihZyC7r82c0-FK3UvpDiscH4-dE52k7%3DYxvZA%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/CAAWYfq3M%3DwbGuprLQAa6xpL%2BggTmJtEw0GQBXhC9WsrTUc1A0w%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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-devel/b32e5e22-dd16-45d6-ba3c-19957e815fedn%40googlegroups.com
> <https://groups.google.com/d/msgid/sage-devel/b32e5e22-dd16-45d6-ba3c-19957e815fedn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CALZQg1YyRsxevNo9Z%3D3sAOPf%3DcXydASEN6VwUN3xZ%3D387mRtSg%40mail.gmail.com.

Reply via email to