Re: [sage-devel] question on Python version when installing 9.6 beta 7

2022-04-10 Thread ph h
Hi, That is OK, your system already has 'distutils.core' which sage needs. Thanks for your verification. Regards, phiho On Sun, Apr 10, 2022 at 6:37 PM 'Nasser M. Abbasi' via sage-devel < sage-devel@googlegroups.com> wrote: > I get the same exact thing as you show. but this had no effect on

Re: [sage-devel] question on Python version when installing 9.6 beta 7

2022-04-10 Thread 'Nasser M. Abbasi' via sage-devel
I get the same exact thing as you show. but this had no effect on sagemath build accepting my external python. >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 distutils.core :1: DeprecationW

Re: [sage-devel] question on Python version when installing 9.6 beta 7

2022-04-10 Thread ph h
Hi, > How to check for this 'distutils.core' ? $ 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 distutils.core :1: DeprecationWarning: The distutils package is deprecated and slated for r

Re: [sage-devel] question on Python version when installing 9.6 beta 7

2022-04-10 Thread 'Nasser M. Abbasi' via sage-devel
How to check for this 'distutils.core' ? YES. the build completed successfully. UsingRC0 just released. [sagetex-3.5] Successfully installed sagetex-3.5 [sagetex-3.5] Deleting temporary build directory [sagetex-3.5] /home/me/sagemath/sage-9.6.rc0/local/var/lib/sage/v

Re: [sage-devel] question on Python version when installing 9.6 beta 7

2022-04-10 Thread ph h
Hi, > sudo apt-get install libpython3.10-dev > ./configure --enable-fricas --with-python=/bin/python3 Would you please verify if you have 'distutils.core' on your system and did the make complete successfully? Regards, phiho On Sun, Apr 10, 2022 at 4:04 PM 'Nasser M. Abbasi' via sage-devel

Re: [sage-devel] question on Python version when installing 9.6 beta 7

2022-04-10 Thread 'Nasser M. Abbasi' via sage-devel
Finally, this made it use install python sudo apt-get install libpython3.10-dev ./configure --enable-fricas --with-python=/bin/python3 gives Checking whether SageMath should install SPKG python3... checking whether any of bzip2 liblzma libffi is installed as or will be installed as SPKG... no c

Re: [sage-devel] question on Python version when installing 9.6 beta 7

2022-04-09 Thread 'Nasser M. Abbasi' via sage-devel
This might be useful: " You can also use --with-python=/path/to/python3_binary to tell Sage to use /path/to/python3_binary to set up the venv. Note that setting up venv requires a number of Python modules to be available within the Python in question. Currently, for Sage 9.2, these modules ar

Re: [sage-devel] question on Python version when installing 9.6 beta 7

2022-04-09 Thread ph h
> 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

Re: [sage-devel] question on Python version when installing 9.6 beta 7

2022-04-09 Thread ph h
Hi, In that case, maybe 'configure' should try to re-install 'distutils.core' and use the python3-3.10.x (or python3-3.11.x later on) available on the system instead of rebuilding the whole python3? Your help and patience is much appreciated. Regards, phiho On Sat, Apr 9, 2022 at 1:29 PM Di

Re: [sage-devel] question on Python version when installing 9.6 beta 7

2022-04-09 Thread Dima Pasechnik
On Sat, Apr 9, 2022 at 4:50 PM ph h 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 > :1: Dep

Re: [sage-devel] question on Python version when installing 9.6 beta 7

2022-04-09 Thread Matthias Koeppe
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", "copy

Re: [sage-devel] question on Python version when installing 9.6 beta 7

2022-04-09 Thread ph h
$ 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 :1: DeprecationWarning: The distutils package is deprecated and slated

Re: [sage-devel] question on Python version when installing 9.6 beta 7

2022-04-09 Thread Dima Pasechnik
On Sat, Apr 9, 2022 at 2:14 AM ph h 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 dependenc

Re: [sage-devel] question on Python version when installing 9.6 beta 7

2022-04-08 Thread ph h
>> 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 n

Re: [sage-devel] question on Python version when installing 9.6 beta 7

2022-04-08 Thread ph h
Hi, > sudo apt-get install libffi-dev Thanks, that works. phiho On Fri, Apr 8, 2022 at 5:18 PM Dima Pasechnik wrote: > > > On Fri, 8 Apr 2022, 22:06 ph h, wrote: > >> Hi, >> >> > Yes, this is needed for Python headers, but still >> > sudo apt-get libffi-dev libbz2-dev bzip2 xz-utils li

Re: [sage-devel] question on Python version when installing 9.6 beta 7

2022-04-08 Thread Dima Pasechnik
On Fri, 8 Apr 2022, 22:06 ph h, 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: Inval

Re: [sage-devel] question on Python version when installing 9.6 beta 7

2022-04-08 Thread ph h
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

Re: [sage-devel] question on Python version when installing 9.6 beta 7

2022-04-08 Thread ph h
Dear All, In following this thread, it was found out, on this WSL system: ~/sage-9.6$ python --version Command 'python' not found, did you mean: command 'python3' from deb python3 command 'python' from deb python-is-python3 ~/sage-9.6$ python3 --version Python 3.8.10 ~/sage-9.6$ python3.1

Re: [sage-devel] question on Python version when installing 9.6 beta 7

2022-04-08 Thread Dima Pasechnik
On Fri, Apr 8, 2022 at 2:39 PM Vincent Delecroix <20100.delecr...@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 n

Re: [sage-devel] question on Python version when installing 9.6 beta 7

2022-04-08 Thread Vincent Delecroix
You could install the python3-dev Ubuntu package to fix the issue. 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 ## ## ## Check

Re: [sage-devel] question on Python version when installing 9.6 beta 7

2022-04-07 Thread Dima Pasechnik
On Thu, Apr 7, 2022 at 4:41 PM 'Nasser M. Abbasi' via sage-devel 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 sup

Re: [sage-devel] question on Python version when installing 9.6 beta 7

2022-04-07 Thread 'Nasser M. Abbasi' via sage-devel
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 > 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 wrote: > > >

Re: [sage-devel] question on Python version when installing 9.6 beta 7

2022-04-07 Thread Dima Pasechnik
On Thu, Apr 7, 2022 at 9:01 AM Dima Pasechnik wrote: > > On Thu, Apr 7, 2022 at 6:17 AM 'Nasser M. Abbasi' via sage-devel > 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 o

Re: [sage-devel] question on Python version when installing 9.6 beta 7

2022-04-07 Thread Dima Pasechnik
On Thu, Apr 7, 2022 at 6:17 AM 'Nasser M. Abbasi' via sage-devel 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