Re: [sage-support] Re: sage building with python3

2019-11-04 Thread Александр Ватузов
Hi! Do you know, how to change this 
page? https://wiki.sagemath.org/Python3-compatible%20code : here is an 
error.

вторник, 5 ноября 2019 г., 6:33:26 UTC+3 пользователь Nils Bruin написал:
>
> On Monday, November 4, 2019 at 2:53:18 PM UTC-8, Dima Pasechnik wrote:
>>
>> Is Sage Jupyter kernel pipe-based?
>> (Jupyter uses zeromq, which can do inproc communication, and as far as I 
>> know some kernels do this)
>>
>> Oh sorry. Perhaps. I didn't investigate. I'd expect that the jupyter 
> ipython kernel uses the most advanced communication protocol. In any case, 
> it's a form of IPC, so the server and the kernel can easily be different 
> version -- no binary compatibility required.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/eb7166b7-b2f2-467f-8205-039862a98663%40googlegroups.com.


Re: [sage-support] Re: sage building with python3

2019-11-04 Thread Nils Bruin
On Monday, November 4, 2019 at 2:53:18 PM UTC-8, Dima Pasechnik wrote:
>
> Is Sage Jupyter kernel pipe-based?
> (Jupyter uses zeromq, which can do inproc communication, and as far as I 
> know some kernels do this)
>
> Oh sorry. Perhaps. I didn't investigate. I'd expect that the jupyter 
ipython kernel uses the most advanced communication protocol. In any case, 
it's a form of IPC, so the server and the kernel can easily be different 
version -- no binary compatibility required.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/4a3380c1-c0d8-4c69-b378-d7774104a778%40googlegroups.com.


Re: [sage-support] Re: sage building with python3

2019-11-04 Thread Dima Pasechnik
On Mon, 4 Nov 2019, 22:25 Nils Bruin,  wrote:

> On Monday, November 4, 2019 at 10:27:02 AM UTC-8, Dima Pasechnik wrote:
>>
>> Incidentally this brings up the question on how one should deal with
>> outdated (as they had to by Python2-compatible)
>> Sage's iPython and Jupyter.
>>
>>  What has worked for me for a long time is to install the sage ipython
> kernel for the system-wide jupyter install (or rather, just installing it
> on a personal level). That has worked quite well with just the Py3-based
> jupyter that fedora ships. The sage kernel would just run on its own
> python2, and jupyter uses its normal pipe-based communication with the
> kernel. It seems that the jupyter notebook kernel protocol is sufficiently
> backward compatible that it was happy to run between a modern py3-jupyter
> server and sage's (outdated?) jupyter kernel. Importing the extensions that
> sage uses into the py3-jupyter server doesn't even seem to be a problem.
>

Is Sage Jupyter kernel pipe-based?
(Jupyter uses zeromq, which can do inproc communication, and as far as I
know some kernels do this)



> Perhaps that's a useful/encouraging data point??
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-support+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/1708a5b7-93d7-4937-8dcd-6762aaf89f54%40googlegroups.com
> 
> .
>

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


Re: [sage-support] Re: sage building with python3

2019-11-04 Thread Nils Bruin
On Monday, November 4, 2019 at 10:27:02 AM UTC-8, Dima Pasechnik wrote:
>
> Incidentally this brings up the question on how one should deal with 
> outdated (as they had to by Python2-compatible) 
> Sage's iPython and Jupyter. 
>
>  What has worked for me for a long time is to install the sage ipython 
kernel for the system-wide jupyter install (or rather, just installing it 
on a personal level). That has worked quite well with just the Py3-based 
jupyter that fedora ships. The sage kernel would just run on its own 
python2, and jupyter uses its normal pipe-based communication with the 
kernel. It seems that the jupyter notebook kernel protocol is sufficiently 
backward compatible that it was happy to run between a modern py3-jupyter 
server and sage's (outdated?) jupyter kernel. Importing the extensions that 
sage uses into the py3-jupyter server doesn't even seem to be a problem.

Perhaps that's a useful/encouraging data point??

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/1708a5b7-93d7-4937-8dcd-6762aaf89f54%40googlegroups.com.


Re: [sage-support] Re: sage building with python3

2019-11-04 Thread Александр Ватузов
No. I think I found my big mistake, but I need some time now for reinstall.

Error on this page https://wiki.sagemath.org/Python3-compatible%20code

понедельник, 4 ноября 2019 г., 21:27:02 UTC+3 пользователь Dima Pasechnik 
написал:
>
> On Mon, Nov 4, 2019 at 6:18 PM John H Palmieri  > wrote: 
> > 
> > If you want to build Sage for use with Python 3, you should do 
> > 
> > $ make distclean 
> > $ ./configure --with-python=3 
> > $ make 
> > 
> > Where does this fail for you? 
>
> he wanted to use Python3 modules from system's Python3. 
> Without extreme care, and quite possibly source code changes in Sage, 
> this won't work. 
>
> Incidentally this brings up the question on how one should deal with 
> outdated (as they had to by Python2-compatible) 
> Sage's iPython and Jupyter. 
>
> > 
> > 
> > 
> > On Monday, November 4, 2019 at 8:21:04 AM UTC-8, Александр Ватузов 
> wrote: 
> >> 
> >> No, I am building sage only for using it with python3. So I need to 
> install ipython and prompt_toolkit 
> >> 
> >> понедельник, 4 ноября 2019 г., 18:56:00 UTC+3 пользователь Dima 
> Pasechnik написал: 
> >>> 
> >>> Well, it is not clear what you are trying to do. Yes, if you want to 
> use more recent than used in Sage (for compatibility with Python2 reasons) 
> packages, then various things need to be adjusted. It has to be done in a 
> systematic way. 
> >>> 
> >>> 
> >>> 
> >>> On Mon, 4 Nov 2019, 15:44 Александр Ватузов,  
> wrote: 
>  
>  Another error: 
>  
>  jupyter-console 6.0.0 has requirement prompt-toolkit<2.1.0,>=2.0.0, 
> but you'll have prompt-toolkit 1.0.15 which is incompatible. 
>  ipython 7.9.0 has requirement prompt-toolkit<2.1.0,>=2.0.0, but 
> you'll have prompt-toolkit 1.0.15 which is incompatible. 
>  
>  понедельник, 4 ноября 2019 г., 17:37:54 UTC+3 пользователь Dima 
> Pasechnik написал: 
> > 
> > looks like you have a bad mix of python packages in a number of 
> locations. 
> > 
> > certainly you can try something like 
> > 
> > ./sage --pip install prompt_toolkit 
> > 
> > 
> > On Mon, 4 Nov 2019, 13:05 Александр Ватузов,  
> wrote: 
> >> 
> >> next error: 
> >> 
> >> when I try: 
> >> import prompt_toolkit 
> >> 
> >> ImportError: cannot import name 'AsyncGeneratorItem' from 
> 'prompt_toolkit.eventloop' 
> (/home/nouret/SageMath_3/local/lib/python3.7/site-packages/prompt_toolkit/eventloop/__init__.py)
>  
>
> >> 
> >> AsyncGeneratorItem is defined in 
> ./local/lib/python3.7/site-packages/prompt_toolkit/eventloop/async_generator.py
>  
>
> >> 
> >> 
> /home/nouret/SageMath_3/local/lib/python3.7/site-packages/prompt_toolkit/eventloop/__init__.py
>  
> is empty 
> >> 
> >> понедельник, 4 ноября 2019 г., 14:56:35 UTC+3 пользователь Dima 
> Pasechnik написал: 
> >>> 
> >>> try 
> >>> 
> >>> ./sage -f ipython 
> >>> 
> >>> followed by 
> >>> 
> >>> make build 
> >>> 
> >>> 
> >>> On Mon, Nov 4, 2019 at 11:47 AM Александр Ватузов <
> amva...@gmail.com> wrote: 
> >>> > 
> >>> > sage building is sucsess now. But running sage makes error 
> >>> > 
> >>> > cannot import name '_baseclass_reprs' from 'IPython.lib.pretty' 
> >>> > 
> >>> > it looks like new libreary, but don't undestend, which one 
> >>> > 
> >>> > понедельник, 4 ноября 2019 г., 12:51:24 UTC+3 пользователь Dima 
> Pasechnik написал: 
> >>> >> 
> >>> >> 
> >>> >> 
> >>> >> On Mon, 4 Nov 2019, 09:47 Александр Ватузов,  
> wrote: 
> >>> >>> 
> >>> >>> it builds cython lib? 
> >>> >> 
> >>> >> yes 
> >>> >>> 
> >>> >>> 
> >>> >>> понедельник, 4 ноября 2019 г., 12:35:17 UTC+3 пользователь 
> Dima Pasechnik написал: 
> >>>  
> >>>  
> >>>  
> >>>  On Mon, 4 Nov 2019, 09:27 Александр Ватузов, <
> amva...@gmail.com> wrote: 
> >>> > 
> >>> > "./sage -pip install cython" installs cython for python3: 
> Requirement already satisfied: cython in 
> ./local/lib/python3.7/site-packages (0.29.14); and 
> >>> > "Requirement already satisfied: gmpy2 in 
> ./local/lib/python3.7/site-packages (2.0.8)" 
> >>> > 
> >>> > So I think that, may be, cython need gmpy2 installed in 
> other way? I still have na error: 
> >>>  
> >>>  try 
> >>>  
> >>>  ./sage -f gmpy2 
> >>>  
> >>> > 
> >>> > [sagelib-8.9] cimport gmpy2 
> >>> > [sagelib-8.9]^ 
> >>> > [sagelib-8.9] 
>  
> >>> > [sagelib-8.9] 
> >>> > [sagelib-8.9] sage/rings/complex_double.pyx:110:8: 
> 'gmpy2.pxd' not found 
> >>> > 
> >>> > 
> >>> > 
> >>> > 
> >>> > воскресенье, 3 ноября 2019 г., 23:52:01 UTC+3 пользователь 
> Simon King написал: 
> >>> >> 
> >>> >> Hi Dima, 
> >>> >> 
> >

Re: [sage-support] Re: sage building with python3

2019-11-04 Thread Dima Pasechnik
On Mon, Nov 4, 2019 at 6:18 PM John H Palmieri  wrote:
>
> If you want to build Sage for use with Python 3, you should do
>
> $ make distclean
> $ ./configure --with-python=3
> $ make
>
> Where does this fail for you?

he wanted to use Python3 modules from system's Python3.
Without extreme care, and quite possibly source code changes in Sage,
this won't work.

Incidentally this brings up the question on how one should deal with
outdated (as they had to by Python2-compatible)
Sage's iPython and Jupyter.

>
>
>
> On Monday, November 4, 2019 at 8:21:04 AM UTC-8, Александр Ватузов wrote:
>>
>> No, I am building sage only for using it with python3. So I need to install 
>> ipython and prompt_toolkit
>>
>> понедельник, 4 ноября 2019 г., 18:56:00 UTC+3 пользователь Dima Pasechnik 
>> написал:
>>>
>>> Well, it is not clear what you are trying to do. Yes, if you want to use 
>>> more recent than used in Sage (for compatibility with Python2 reasons) 
>>> packages, then various things need to be adjusted. It has to be done in a 
>>> systematic way.
>>>
>>>
>>>
>>> On Mon, 4 Nov 2019, 15:44 Александр Ватузов,  wrote:

 Another error:

 jupyter-console 6.0.0 has requirement prompt-toolkit<2.1.0,>=2.0.0, but 
 you'll have prompt-toolkit 1.0.15 which is incompatible.
 ipython 7.9.0 has requirement prompt-toolkit<2.1.0,>=2.0.0, but you'll 
 have prompt-toolkit 1.0.15 which is incompatible.

 понедельник, 4 ноября 2019 г., 17:37:54 UTC+3 пользователь Dima Pasechnik 
 написал:
>
> looks like you have a bad mix of python packages in a number of locations.
>
> certainly you can try something like
>
> ./sage --pip install prompt_toolkit
>
>
> On Mon, 4 Nov 2019, 13:05 Александр Ватузов,  wrote:
>>
>> next error:
>>
>> when I try:
>> import prompt_toolkit
>>
>> ImportError: cannot import name 'AsyncGeneratorItem' from 
>> 'prompt_toolkit.eventloop' 
>> (/home/nouret/SageMath_3/local/lib/python3.7/site-packages/prompt_toolkit/eventloop/__init__.py)
>>
>> AsyncGeneratorItem is defined in 
>> ./local/lib/python3.7/site-packages/prompt_toolkit/eventloop/async_generator.py
>>
>> /home/nouret/SageMath_3/local/lib/python3.7/site-packages/prompt_toolkit/eventloop/__init__.py
>>  is empty
>>
>> понедельник, 4 ноября 2019 г., 14:56:35 UTC+3 пользователь Dima 
>> Pasechnik написал:
>>>
>>> try
>>>
>>> ./sage -f ipython
>>>
>>> followed by
>>>
>>> make build
>>>
>>>
>>> On Mon, Nov 4, 2019 at 11:47 AM Александр Ватузов  
>>> wrote:
>>> >
>>> > sage building is sucsess now. But running sage makes error
>>> >
>>> > cannot import name '_baseclass_reprs' from 'IPython.lib.pretty'
>>> >
>>> > it looks like new libreary, but don't undestend, which one
>>> >
>>> > понедельник, 4 ноября 2019 г., 12:51:24 UTC+3 пользователь Dima 
>>> > Pasechnik написал:
>>> >>
>>> >>
>>> >>
>>> >> On Mon, 4 Nov 2019, 09:47 Александр Ватузов,  
>>> >> wrote:
>>> >>>
>>> >>> it builds cython lib?
>>> >>
>>> >> yes
>>> >>>
>>> >>>
>>> >>> понедельник, 4 ноября 2019 г., 12:35:17 UTC+3 пользователь Dima 
>>> >>> Pasechnik написал:
>>> 
>>> 
>>> 
>>>  On Mon, 4 Nov 2019, 09:27 Александр Ватузов,  
>>>  wrote:
>>> >
>>> > "./sage -pip install cython" installs cython for python3: 
>>> > Requirement already satisfied: cython in 
>>> > ./local/lib/python3.7/site-packages (0.29.14); and
>>> > "Requirement already satisfied: gmpy2 in 
>>> > ./local/lib/python3.7/site-packages (2.0.8)"
>>> >
>>> > So I think that, may be, cython need gmpy2 installed in other 
>>> > way? I still have na error:
>>> 
>>>  try
>>> 
>>>  ./sage -f gmpy2
>>> 
>>> >
>>> > [sagelib-8.9] cimport gmpy2
>>> > [sagelib-8.9]^
>>> > [sagelib-8.9] 
>>> > 
>>> > [sagelib-8.9]
>>> > [sagelib-8.9] sage/rings/complex_double.pyx:110:8: 'gmpy2.pxd' 
>>> > not found
>>> >
>>> >
>>> >
>>> >
>>> > воскресенье, 3 ноября 2019 г., 23:52:01 UTC+3 пользователь Simon 
>>> > King написал:
>>> >>
>>> >> Hi Dima,
>>> >>
>>> >> On 2019-11-02, Dima Pasechnik  wrote:
>>> >> > There "python" is Sage's Python, "pip" manages its modules, 
>>> >> > etc.
>>> >>
>>> >> IIRC, that's not true for Sage's py-3 version. Namely, if one 
>>> >> opens a
>>> >> sage-with-py-3 shell, then "python" still means "python2". So, 
>>> >> if you
>>> >> really want Sage-with-py-3's Python installation, you should 
>>> >> either do
>>> >> 

Re: [sage-support] Re: sage building with python3

2019-11-04 Thread John H Palmieri
If you want to build Sage for use with Python 3, you should do

$ make distclean
$ ./configure --with-python=3
$ make

Where does this fail for you?



On Monday, November 4, 2019 at 8:21:04 AM UTC-8, Александр Ватузов wrote:
>
> No, I am building sage only for using it with python3. So I need to 
> install ipython and prompt_toolkit
>
> понедельник, 4 ноября 2019 г., 18:56:00 UTC+3 пользователь Dima Pasechnik 
> написал:
>>
>> Well, it is not clear what you are trying to do. Yes, if you want to use 
>> more recent than used in Sage (for compatibility with Python2 reasons) 
>> packages, then various things need to be adjusted. It has to be done in a 
>> systematic way.
>>
>>
>>
>> On Mon, 4 Nov 2019, 15:44 Александр Ватузов,  wrote:
>>
>>> Another error:
>>>
>>> jupyter-console 6.0.0 has requirement prompt-toolkit<2.1.0,>=2.0.0, but 
>>> you'll have prompt-toolkit 1.0.15 which is incompatible.
>>> ipython 7.9.0 has requirement prompt-toolkit<2.1.0,>=2.0.0, but you'll 
>>> have prompt-toolkit 1.0.15 which is incompatible.
>>>
>>> понедельник, 4 ноября 2019 г., 17:37:54 UTC+3 пользователь Dima 
>>> Pasechnik написал:

 looks like you have a bad mix of python packages in a number of 
 locations.

 certainly you can try something like

 ./sage --pip install prompt_toolkit


 On Mon, 4 Nov 2019, 13:05 Александр Ватузов,  wrote:

> next error:
>
> when I try:
> import prompt_toolkit
>
> ImportError: cannot import name 'AsyncGeneratorItem' from 
> 'prompt_toolkit.eventloop' 
> (/home/nouret/SageMath_3/local/lib/python3.7/site-packages/prompt_toolkit/eventloop/__init__.py)
>
> AsyncGeneratorItem is defined in 
> ./local/lib/python3.7/site-packages/prompt_toolkit/eventloop/async_generator.py
>
> /home/nouret/SageMath_3/local/lib/python3.7/site-packages/prompt_toolkit/eventloop/__init__.py
>  
> is empty
>
> понедельник, 4 ноября 2019 г., 14:56:35 UTC+3 пользователь Dima 
> Pasechnik написал:
>>
>> try 
>>
>> ./sage -f ipython 
>>
>> followed by 
>>
>> make build 
>>
>>
>> On Mon, Nov 4, 2019 at 11:47 AM Александр Ватузов  
>> wrote: 
>> > 
>> > sage building is sucsess now. But running sage makes error 
>> > 
>> > cannot import name '_baseclass_reprs' from 'IPython.lib.pretty' 
>> > 
>> > it looks like new libreary, but don't undestend, which one 
>> > 
>> > понедельник, 4 ноября 2019 г., 12:51:24 UTC+3 пользователь Dima 
>> Pasechnik написал: 
>> >> 
>> >> 
>> >> 
>> >> On Mon, 4 Nov 2019, 09:47 Александр Ватузов,  
>> wrote: 
>> >>> 
>> >>> it builds cython lib? 
>> >> 
>> >> yes 
>> >>> 
>> >>> 
>> >>> понедельник, 4 ноября 2019 г., 12:35:17 UTC+3 пользователь Dima 
>> Pasechnik написал: 
>>  
>>  
>>  
>>  On Mon, 4 Nov 2019, 09:27 Александр Ватузов,  
>> wrote: 
>> > 
>> > "./sage -pip install cython" installs cython for python3: 
>> Requirement already satisfied: cython in 
>> ./local/lib/python3.7/site-packages (0.29.14); and 
>> > "Requirement already satisfied: gmpy2 in 
>> ./local/lib/python3.7/site-packages (2.0.8)" 
>> > 
>> > So I think that, may be, cython need gmpy2 installed in other 
>> way? I still have na error: 
>>  
>>  try 
>>  
>>  ./sage -f gmpy2 
>>  
>> > 
>> > [sagelib-8.9] cimport gmpy2 
>> > [sagelib-8.9]^ 
>> > [sagelib-8.9] 
>>  
>> > [sagelib-8.9] 
>> > [sagelib-8.9] sage/rings/complex_double.pyx:110:8: 'gmpy2.pxd' 
>> not found 
>> > 
>> > 
>> > 
>> > 
>> > воскресенье, 3 ноября 2019 г., 23:52:01 UTC+3 пользователь 
>> Simon King написал: 
>> >> 
>> >> Hi Dima, 
>> >> 
>> >> On 2019-11-02, Dima Pasechnik  wrote: 
>> >> > There "python" is Sage's Python, "pip" manages its modules, 
>> etc. 
>> >> 
>> >> IIRC, that's not true for Sage's py-3 version. Namely, if one 
>> opens a 
>> >> sage-with-py-3 shell, then "python" still means "python2". So, 
>> if you 
>> >> really want Sage-with-py-3's Python installation, you should 
>> either do 
>> >> "sage -python" or (in a Sage shell) "python3". And I think the 
>> same 
>> >> holds for pip. 
>> >> 
>> >> Best regards, 
>> >> Simon 
>> >> 
>> > -- 
>> > You received this message because you are subscribed to the 
>> Google Groups "sage-support" group. 
>> > To unsubscribe from this group and stop receiving emails from 
>> it, send an email to sage-s...@googlegroups.com. 
>> > To view this discussion on the web visit 
>

Re: [sage-support] Re: sage building with python3

2019-11-04 Thread Александр Ватузов
More: when I pip install prompt_toolkit, is installing prompt-toolkit 
1.0.15. But ipython says:

Installing collected packages: prompt-toolkit
  Found existing installation: prompt-toolkit 1.0.15
Uninstalling prompt-toolkit-1.0.15:
  Successfully uninstalled prompt-toolkit-1.0.15
Successfully installed prompt-toolkit-2.0.10


понедельник, 4 ноября 2019 г., 18:56:00 UTC+3 пользователь Dima Pasechnik 
написал:
>
> Well, it is not clear what you are trying to do. Yes, if you want to use 
> more recent than used in Sage (for compatibility with Python2 reasons) 
> packages, then various things need to be adjusted. It has to be done in a 
> systematic way.
>
>
>
> On Mon, 4 Nov 2019, 15:44 Александр Ватузов,  > wrote:
>
>> Another error:
>>
>> jupyter-console 6.0.0 has requirement prompt-toolkit<2.1.0,>=2.0.0, but 
>> you'll have prompt-toolkit 1.0.15 which is incompatible.
>> ipython 7.9.0 has requirement prompt-toolkit<2.1.0,>=2.0.0, but you'll 
>> have prompt-toolkit 1.0.15 which is incompatible.
>>
>> понедельник, 4 ноября 2019 г., 17:37:54 UTC+3 пользователь Dima Pasechnik 
>> написал:
>>>
>>> looks like you have a bad mix of python packages in a number of 
>>> locations.
>>>
>>> certainly you can try something like
>>>
>>> ./sage --pip install prompt_toolkit
>>>
>>>
>>> On Mon, 4 Nov 2019, 13:05 Александр Ватузов,  wrote:
>>>
 next error:

 when I try:
 import prompt_toolkit

 ImportError: cannot import name 'AsyncGeneratorItem' from 
 'prompt_toolkit.eventloop' 
 (/home/nouret/SageMath_3/local/lib/python3.7/site-packages/prompt_toolkit/eventloop/__init__.py)

 AsyncGeneratorItem is defined in 
 ./local/lib/python3.7/site-packages/prompt_toolkit/eventloop/async_generator.py

 /home/nouret/SageMath_3/local/lib/python3.7/site-packages/prompt_toolkit/eventloop/__init__.py
  
 is empty

 понедельник, 4 ноября 2019 г., 14:56:35 UTC+3 пользователь Dima 
 Pasechnik написал:
>
> try 
>
> ./sage -f ipython 
>
> followed by 
>
> make build 
>
>
> On Mon, Nov 4, 2019 at 11:47 AM Александр Ватузов  
> wrote: 
> > 
> > sage building is sucsess now. But running sage makes error 
> > 
> > cannot import name '_baseclass_reprs' from 'IPython.lib.pretty' 
> > 
> > it looks like new libreary, but don't undestend, which one 
> > 
> > понедельник, 4 ноября 2019 г., 12:51:24 UTC+3 пользователь Dima 
> Pasechnik написал: 
> >> 
> >> 
> >> 
> >> On Mon, 4 Nov 2019, 09:47 Александр Ватузов,  
> wrote: 
> >>> 
> >>> it builds cython lib? 
> >> 
> >> yes 
> >>> 
> >>> 
> >>> понедельник, 4 ноября 2019 г., 12:35:17 UTC+3 пользователь Dima 
> Pasechnik написал: 
>  
>  
>  
>  On Mon, 4 Nov 2019, 09:27 Александр Ватузов,  
> wrote: 
> > 
> > "./sage -pip install cython" installs cython for python3: 
> Requirement already satisfied: cython in 
> ./local/lib/python3.7/site-packages (0.29.14); and 
> > "Requirement already satisfied: gmpy2 in 
> ./local/lib/python3.7/site-packages (2.0.8)" 
> > 
> > So I think that, may be, cython need gmpy2 installed in other 
> way? I still have na error: 
>  
>  try 
>  
>  ./sage -f gmpy2 
>  
> > 
> > [sagelib-8.9] cimport gmpy2 
> > [sagelib-8.9]^ 
> > [sagelib-8.9] 
>  
> > [sagelib-8.9] 
> > [sagelib-8.9] sage/rings/complex_double.pyx:110:8: 'gmpy2.pxd' 
> not found 
> > 
> > 
> > 
> > 
> > воскресенье, 3 ноября 2019 г., 23:52:01 UTC+3 пользователь Simon 
> King написал: 
> >> 
> >> Hi Dima, 
> >> 
> >> On 2019-11-02, Dima Pasechnik  wrote: 
> >> > There "python" is Sage's Python, "pip" manages its modules, 
> etc. 
> >> 
> >> IIRC, that's not true for Sage's py-3 version. Namely, if one 
> opens a 
> >> sage-with-py-3 shell, then "python" still means "python2". So, 
> if you 
> >> really want Sage-with-py-3's Python installation, you should 
> either do 
> >> "sage -python" or (in a Sage shell) "python3". And I think the 
> same 
> >> holds for pip. 
> >> 
> >> Best regards, 
> >> Simon 
> >> 
> > -- 
> > You received this message because you are subscribed to the 
> Google Groups "sage-support" group. 
> > To unsubscribe from this group and stop receiving emails from 
> it, send an email to sage-s...@googlegroups.com. 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-support/8a5eb4d3-d9a4-4630-8d74-f3e5c3e0f276%40googlegroups.com.
>  
>
> >>> 
> >>> -- 

Re: [sage-support] Re: sage building with python3

2019-11-04 Thread Александр Ватузов
No, I am building sage only for using it with python3. So I need to 
install ipython and prompt_toolkit

понедельник, 4 ноября 2019 г., 18:56:00 UTC+3 пользователь Dima Pasechnik 
написал:
>
> Well, it is not clear what you are trying to do. Yes, if you want to use 
> more recent than used in Sage (for compatibility with Python2 reasons) 
> packages, then various things need to be adjusted. It has to be done in a 
> systematic way.
>
>
>
> On Mon, 4 Nov 2019, 15:44 Александр Ватузов,  > wrote:
>
>> Another error:
>>
>> jupyter-console 6.0.0 has requirement prompt-toolkit<2.1.0,>=2.0.0, but 
>> you'll have prompt-toolkit 1.0.15 which is incompatible.
>> ipython 7.9.0 has requirement prompt-toolkit<2.1.0,>=2.0.0, but you'll 
>> have prompt-toolkit 1.0.15 which is incompatible.
>>
>> понедельник, 4 ноября 2019 г., 17:37:54 UTC+3 пользователь Dima Pasechnik 
>> написал:
>>>
>>> looks like you have a bad mix of python packages in a number of 
>>> locations.
>>>
>>> certainly you can try something like
>>>
>>> ./sage --pip install prompt_toolkit
>>>
>>>
>>> On Mon, 4 Nov 2019, 13:05 Александр Ватузов,  wrote:
>>>
 next error:

 when I try:
 import prompt_toolkit

 ImportError: cannot import name 'AsyncGeneratorItem' from 
 'prompt_toolkit.eventloop' 
 (/home/nouret/SageMath_3/local/lib/python3.7/site-packages/prompt_toolkit/eventloop/__init__.py)

 AsyncGeneratorItem is defined in 
 ./local/lib/python3.7/site-packages/prompt_toolkit/eventloop/async_generator.py

 /home/nouret/SageMath_3/local/lib/python3.7/site-packages/prompt_toolkit/eventloop/__init__.py
  
 is empty

 понедельник, 4 ноября 2019 г., 14:56:35 UTC+3 пользователь Dima 
 Pasechnik написал:
>
> try 
>
> ./sage -f ipython 
>
> followed by 
>
> make build 
>
>
> On Mon, Nov 4, 2019 at 11:47 AM Александр Ватузов  
> wrote: 
> > 
> > sage building is sucsess now. But running sage makes error 
> > 
> > cannot import name '_baseclass_reprs' from 'IPython.lib.pretty' 
> > 
> > it looks like new libreary, but don't undestend, which one 
> > 
> > понедельник, 4 ноября 2019 г., 12:51:24 UTC+3 пользователь Dima 
> Pasechnik написал: 
> >> 
> >> 
> >> 
> >> On Mon, 4 Nov 2019, 09:47 Александр Ватузов,  
> wrote: 
> >>> 
> >>> it builds cython lib? 
> >> 
> >> yes 
> >>> 
> >>> 
> >>> понедельник, 4 ноября 2019 г., 12:35:17 UTC+3 пользователь Dima 
> Pasechnik написал: 
>  
>  
>  
>  On Mon, 4 Nov 2019, 09:27 Александр Ватузов,  
> wrote: 
> > 
> > "./sage -pip install cython" installs cython for python3: 
> Requirement already satisfied: cython in 
> ./local/lib/python3.7/site-packages (0.29.14); and 
> > "Requirement already satisfied: gmpy2 in 
> ./local/lib/python3.7/site-packages (2.0.8)" 
> > 
> > So I think that, may be, cython need gmpy2 installed in other 
> way? I still have na error: 
>  
>  try 
>  
>  ./sage -f gmpy2 
>  
> > 
> > [sagelib-8.9] cimport gmpy2 
> > [sagelib-8.9]^ 
> > [sagelib-8.9] 
>  
> > [sagelib-8.9] 
> > [sagelib-8.9] sage/rings/complex_double.pyx:110:8: 'gmpy2.pxd' 
> not found 
> > 
> > 
> > 
> > 
> > воскресенье, 3 ноября 2019 г., 23:52:01 UTC+3 пользователь Simon 
> King написал: 
> >> 
> >> Hi Dima, 
> >> 
> >> On 2019-11-02, Dima Pasechnik  wrote: 
> >> > There "python" is Sage's Python, "pip" manages its modules, 
> etc. 
> >> 
> >> IIRC, that's not true for Sage's py-3 version. Namely, if one 
> opens a 
> >> sage-with-py-3 shell, then "python" still means "python2". So, 
> if you 
> >> really want Sage-with-py-3's Python installation, you should 
> either do 
> >> "sage -python" or (in a Sage shell) "python3". And I think the 
> same 
> >> holds for pip. 
> >> 
> >> Best regards, 
> >> Simon 
> >> 
> > -- 
> > You received this message because you are subscribed to the 
> Google Groups "sage-support" group. 
> > To unsubscribe from this group and stop receiving emails from 
> it, send an email to sage-s...@googlegroups.com. 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-support/8a5eb4d3-d9a4-4630-8d74-f3e5c3e0f276%40googlegroups.com.
>  
>
> >>> 
> >>> -- 
> >>> You received this message because you are subscribed to the Google 
> Groups "sage-support" group. 
> >>> To unsubscribe from this group and stop receiving emails from it, 
> send an email to sage-s...@googlegr

Re: [sage-support] Re: sage building with python3

2019-11-04 Thread Dima Pasechnik
Well, it is not clear what you are trying to do. Yes, if you want to use
more recent than used in Sage (for compatibility with Python2 reasons)
packages, then various things need to be adjusted. It has to be done in a
systematic way.



On Mon, 4 Nov 2019, 15:44 Александр Ватузов,  wrote:

> Another error:
>
> jupyter-console 6.0.0 has requirement prompt-toolkit<2.1.0,>=2.0.0, but
> you'll have prompt-toolkit 1.0.15 which is incompatible.
> ipython 7.9.0 has requirement prompt-toolkit<2.1.0,>=2.0.0, but you'll
> have prompt-toolkit 1.0.15 which is incompatible.
>
> понедельник, 4 ноября 2019 г., 17:37:54 UTC+3 пользователь Dima Pasechnik
> написал:
>>
>> looks like you have a bad mix of python packages in a number of locations.
>>
>> certainly you can try something like
>>
>> ./sage --pip install prompt_toolkit
>>
>>
>> On Mon, 4 Nov 2019, 13:05 Александр Ватузов,  wrote:
>>
>>> next error:
>>>
>>> when I try:
>>> import prompt_toolkit
>>>
>>> ImportError: cannot import name 'AsyncGeneratorItem' from
>>> 'prompt_toolkit.eventloop'
>>> (/home/nouret/SageMath_3/local/lib/python3.7/site-packages/prompt_toolkit/eventloop/__init__.py)
>>>
>>> AsyncGeneratorItem is defined in
>>> ./local/lib/python3.7/site-packages/prompt_toolkit/eventloop/async_generator.py
>>>
>>> /home/nouret/SageMath_3/local/lib/python3.7/site-packages/prompt_toolkit/eventloop/__init__.py
>>> is empty
>>>
>>> понедельник, 4 ноября 2019 г., 14:56:35 UTC+3 пользователь Dima
>>> Pasechnik написал:

 try

 ./sage -f ipython

 followed by

 make build


 On Mon, Nov 4, 2019 at 11:47 AM Александр Ватузов 
 wrote:
 >
 > sage building is sucsess now. But running sage makes error
 >
 > cannot import name '_baseclass_reprs' from 'IPython.lib.pretty'
 >
 > it looks like new libreary, but don't undestend, which one
 >
 > понедельник, 4 ноября 2019 г., 12:51:24 UTC+3 пользователь Dima
 Pasechnik написал:
 >>
 >>
 >>
 >> On Mon, 4 Nov 2019, 09:47 Александр Ватузов, 
 wrote:
 >>>
 >>> it builds cython lib?
 >>
 >> yes
 >>>
 >>>
 >>> понедельник, 4 ноября 2019 г., 12:35:17 UTC+3 пользователь Dima
 Pasechnik написал:
 
 
 
  On Mon, 4 Nov 2019, 09:27 Александр Ватузов, 
 wrote:
 >
 > "./sage -pip install cython" installs cython for python3:
 Requirement already satisfied: cython in
 ./local/lib/python3.7/site-packages (0.29.14); and
 > "Requirement already satisfied: gmpy2 in
 ./local/lib/python3.7/site-packages (2.0.8)"
 >
 > So I think that, may be, cython need gmpy2 installed in other
 way? I still have na error:
 
  try
 
  ./sage -f gmpy2
 
 >
 > [sagelib-8.9] cimport gmpy2
 > [sagelib-8.9]^
 > [sagelib-8.9]
 
 > [sagelib-8.9]
 > [sagelib-8.9] sage/rings/complex_double.pyx:110:8: 'gmpy2.pxd'
 not found
 >
 >
 >
 >
 > воскресенье, 3 ноября 2019 г., 23:52:01 UTC+3 пользователь Simon
 King написал:
 >>
 >> Hi Dima,
 >>
 >> On 2019-11-02, Dima Pasechnik  wrote:
 >> > There "python" is Sage's Python, "pip" manages its modules,
 etc.
 >>
 >> IIRC, that's not true for Sage's py-3 version. Namely, if one
 opens a
 >> sage-with-py-3 shell, then "python" still means "python2". So,
 if you
 >> really want Sage-with-py-3's Python installation, you should
 either do
 >> "sage -python" or (in a Sage shell) "python3". And I think the
 same
 >> holds for pip.
 >>
 >> Best regards,
 >> Simon
 >>
 > --
 > You received this message because you are subscribed to the
 Google Groups "sage-support" group.
 > To unsubscribe from this group and stop receiving emails from it,
 send an email to sage-s...@googlegroups.com.
 > To view this discussion on the web visit
 https://groups.google.com/d/msgid/sage-support/8a5eb4d3-d9a4-4630-8d74-f3e5c3e0f276%40googlegroups.com.

 >>>
 >>> --
 >>> You received this message because you are subscribed to the Google
 Groups "sage-support" group.
 >>> To unsubscribe from this group and stop receiving emails from it,
 send an email to sage-s...@googlegroups.com.
 >>> To view this discussion on the web visit
 https://groups.google.com/d/msgid/sage-support/14f34695-6908-466f-ba2e-709230fc8aed%40googlegroups.com.

 >
 > --
 > You received this message because you are subscribed to the Google
 Groups "sage-support" group.
 > To unsubscribe from this group and stop receiving emails from it,
 send an email to sage-s...@googlegroups.com.
 > To view this discussion on the web vi

Re: [sage-support] Re: sage building with python3

2019-11-04 Thread Александр Ватузов
Another error:

jupyter-console 6.0.0 has requirement prompt-toolkit<2.1.0,>=2.0.0, but 
you'll have prompt-toolkit 1.0.15 which is incompatible.
ipython 7.9.0 has requirement prompt-toolkit<2.1.0,>=2.0.0, but you'll have 
prompt-toolkit 1.0.15 which is incompatible.

понедельник, 4 ноября 2019 г., 17:37:54 UTC+3 пользователь Dima Pasechnik 
написал:
>
> looks like you have a bad mix of python packages in a number of locations.
>
> certainly you can try something like
>
> ./sage --pip install prompt_toolkit
>
>
> On Mon, 4 Nov 2019, 13:05 Александр Ватузов,  > wrote:
>
>> next error:
>>
>> when I try:
>> import prompt_toolkit
>>
>> ImportError: cannot import name 'AsyncGeneratorItem' from 
>> 'prompt_toolkit.eventloop' 
>> (/home/nouret/SageMath_3/local/lib/python3.7/site-packages/prompt_toolkit/eventloop/__init__.py)
>>
>> AsyncGeneratorItem is defined in 
>> ./local/lib/python3.7/site-packages/prompt_toolkit/eventloop/async_generator.py
>>
>> /home/nouret/SageMath_3/local/lib/python3.7/site-packages/prompt_toolkit/eventloop/__init__.py
>>  
>> is empty
>>
>> понедельник, 4 ноября 2019 г., 14:56:35 UTC+3 пользователь Dima Pasechnik 
>> написал:
>>>
>>> try 
>>>
>>> ./sage -f ipython 
>>>
>>> followed by 
>>>
>>> make build 
>>>
>>>
>>> On Mon, Nov 4, 2019 at 11:47 AM Александр Ватузов  
>>> wrote: 
>>> > 
>>> > sage building is sucsess now. But running sage makes error 
>>> > 
>>> > cannot import name '_baseclass_reprs' from 'IPython.lib.pretty' 
>>> > 
>>> > it looks like new libreary, but don't undestend, which one 
>>> > 
>>> > понедельник, 4 ноября 2019 г., 12:51:24 UTC+3 пользователь Dima 
>>> Pasechnik написал: 
>>> >> 
>>> >> 
>>> >> 
>>> >> On Mon, 4 Nov 2019, 09:47 Александр Ватузов,  
>>> wrote: 
>>> >>> 
>>> >>> it builds cython lib? 
>>> >> 
>>> >> yes 
>>> >>> 
>>> >>> 
>>> >>> понедельник, 4 ноября 2019 г., 12:35:17 UTC+3 пользователь Dima 
>>> Pasechnik написал: 
>>>  
>>>  
>>>  
>>>  On Mon, 4 Nov 2019, 09:27 Александр Ватузов,  
>>> wrote: 
>>> > 
>>> > "./sage -pip install cython" installs cython for python3: 
>>> Requirement already satisfied: cython in 
>>> ./local/lib/python3.7/site-packages (0.29.14); and 
>>> > "Requirement already satisfied: gmpy2 in 
>>> ./local/lib/python3.7/site-packages (2.0.8)" 
>>> > 
>>> > So I think that, may be, cython need gmpy2 installed in other way? 
>>> I still have na error: 
>>>  
>>>  try 
>>>  
>>>  ./sage -f gmpy2 
>>>  
>>> > 
>>> > [sagelib-8.9] cimport gmpy2 
>>> > [sagelib-8.9]^ 
>>> > [sagelib-8.9] 
>>>  
>>> > [sagelib-8.9] 
>>> > [sagelib-8.9] sage/rings/complex_double.pyx:110:8: 'gmpy2.pxd' not 
>>> found 
>>> > 
>>> > 
>>> > 
>>> > 
>>> > воскресенье, 3 ноября 2019 г., 23:52:01 UTC+3 пользователь Simon 
>>> King написал: 
>>> >> 
>>> >> Hi Dima, 
>>> >> 
>>> >> On 2019-11-02, Dima Pasechnik  wrote: 
>>> >> > There "python" is Sage's Python, "pip" manages its modules, 
>>> etc. 
>>> >> 
>>> >> IIRC, that's not true for Sage's py-3 version. Namely, if one 
>>> opens a 
>>> >> sage-with-py-3 shell, then "python" still means "python2". So, if 
>>> you 
>>> >> really want Sage-with-py-3's Python installation, you should 
>>> either do 
>>> >> "sage -python" or (in a Sage shell) "python3". And I think the 
>>> same 
>>> >> holds for pip. 
>>> >> 
>>> >> Best regards, 
>>> >> Simon 
>>> >> 
>>> > -- 
>>> > You received this message because you are subscribed to the Google 
>>> Groups "sage-support" group. 
>>> > To unsubscribe from this group and stop receiving emails from it, 
>>> send an email to sage-s...@googlegroups.com. 
>>> > To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/sage-support/8a5eb4d3-d9a4-4630-8d74-f3e5c3e0f276%40googlegroups.com.
>>>  
>>>
>>> >>> 
>>> >>> -- 
>>> >>> You received this message because you are subscribed to the Google 
>>> Groups "sage-support" group. 
>>> >>> To unsubscribe from this group and stop receiving emails from it, 
>>> send an email to sage-s...@googlegroups.com. 
>>> >>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/sage-support/14f34695-6908-466f-ba2e-709230fc8aed%40googlegroups.com.
>>>  
>>>
>>> > 
>>> > -- 
>>> > You received this message because you are subscribed to the Google 
>>> Groups "sage-support" group. 
>>> > To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to sage-s...@googlegroups.com. 
>>> > To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/sage-support/6b1f50b0-0845-4540-b501-7788491b2079%40googlegroups.com.
>>>  
>>>
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "sage-support" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> e

Re: [sage-support] Re: sage building with python3

2019-11-04 Thread Александр Ватузов
Done, and "./sage -f prompt_toolkit" too

понедельник, 4 ноября 2019 г., 17:37:54 UTC+3 пользователь Dima Pasechnik 
написал:
>
> looks like you have a bad mix of python packages in a number of locations.
>
> certainly you can try something like
>
> ./sage --pip install prompt_toolkit
>
>
> On Mon, 4 Nov 2019, 13:05 Александр Ватузов,  > wrote:
>
>> next error:
>>
>> when I try:
>> import prompt_toolkit
>>
>> ImportError: cannot import name 'AsyncGeneratorItem' from 
>> 'prompt_toolkit.eventloop' 
>> (/home/nouret/SageMath_3/local/lib/python3.7/site-packages/prompt_toolkit/eventloop/__init__.py)
>>
>> AsyncGeneratorItem is defined in 
>> ./local/lib/python3.7/site-packages/prompt_toolkit/eventloop/async_generator.py
>>
>> /home/nouret/SageMath_3/local/lib/python3.7/site-packages/prompt_toolkit/eventloop/__init__.py
>>  
>> is empty
>>
>> понедельник, 4 ноября 2019 г., 14:56:35 UTC+3 пользователь Dima Pasechnik 
>> написал:
>>>
>>> try 
>>>
>>> ./sage -f ipython 
>>>
>>> followed by 
>>>
>>> make build 
>>>
>>>
>>> On Mon, Nov 4, 2019 at 11:47 AM Александр Ватузов  
>>> wrote: 
>>> > 
>>> > sage building is sucsess now. But running sage makes error 
>>> > 
>>> > cannot import name '_baseclass_reprs' from 'IPython.lib.pretty' 
>>> > 
>>> > it looks like new libreary, but don't undestend, which one 
>>> > 
>>> > понедельник, 4 ноября 2019 г., 12:51:24 UTC+3 пользователь Dima 
>>> Pasechnik написал: 
>>> >> 
>>> >> 
>>> >> 
>>> >> On Mon, 4 Nov 2019, 09:47 Александр Ватузов,  
>>> wrote: 
>>> >>> 
>>> >>> it builds cython lib? 
>>> >> 
>>> >> yes 
>>> >>> 
>>> >>> 
>>> >>> понедельник, 4 ноября 2019 г., 12:35:17 UTC+3 пользователь Dima 
>>> Pasechnik написал: 
>>>  
>>>  
>>>  
>>>  On Mon, 4 Nov 2019, 09:27 Александр Ватузов,  
>>> wrote: 
>>> > 
>>> > "./sage -pip install cython" installs cython for python3: 
>>> Requirement already satisfied: cython in 
>>> ./local/lib/python3.7/site-packages (0.29.14); and 
>>> > "Requirement already satisfied: gmpy2 in 
>>> ./local/lib/python3.7/site-packages (2.0.8)" 
>>> > 
>>> > So I think that, may be, cython need gmpy2 installed in other way? 
>>> I still have na error: 
>>>  
>>>  try 
>>>  
>>>  ./sage -f gmpy2 
>>>  
>>> > 
>>> > [sagelib-8.9] cimport gmpy2 
>>> > [sagelib-8.9]^ 
>>> > [sagelib-8.9] 
>>>  
>>> > [sagelib-8.9] 
>>> > [sagelib-8.9] sage/rings/complex_double.pyx:110:8: 'gmpy2.pxd' not 
>>> found 
>>> > 
>>> > 
>>> > 
>>> > 
>>> > воскресенье, 3 ноября 2019 г., 23:52:01 UTC+3 пользователь Simon 
>>> King написал: 
>>> >> 
>>> >> Hi Dima, 
>>> >> 
>>> >> On 2019-11-02, Dima Pasechnik  wrote: 
>>> >> > There "python" is Sage's Python, "pip" manages its modules, 
>>> etc. 
>>> >> 
>>> >> IIRC, that's not true for Sage's py-3 version. Namely, if one 
>>> opens a 
>>> >> sage-with-py-3 shell, then "python" still means "python2". So, if 
>>> you 
>>> >> really want Sage-with-py-3's Python installation, you should 
>>> either do 
>>> >> "sage -python" or (in a Sage shell) "python3". And I think the 
>>> same 
>>> >> holds for pip. 
>>> >> 
>>> >> Best regards, 
>>> >> Simon 
>>> >> 
>>> > -- 
>>> > You received this message because you are subscribed to the Google 
>>> Groups "sage-support" group. 
>>> > To unsubscribe from this group and stop receiving emails from it, 
>>> send an email to sage-s...@googlegroups.com. 
>>> > To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/sage-support/8a5eb4d3-d9a4-4630-8d74-f3e5c3e0f276%40googlegroups.com.
>>>  
>>>
>>> >>> 
>>> >>> -- 
>>> >>> You received this message because you are subscribed to the Google 
>>> Groups "sage-support" group. 
>>> >>> To unsubscribe from this group and stop receiving emails from it, 
>>> send an email to sage-s...@googlegroups.com. 
>>> >>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/sage-support/14f34695-6908-466f-ba2e-709230fc8aed%40googlegroups.com.
>>>  
>>>
>>> > 
>>> > -- 
>>> > You received this message because you are subscribed to the Google 
>>> Groups "sage-support" group. 
>>> > To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to sage-s...@googlegroups.com. 
>>> > To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/sage-support/6b1f50b0-0845-4540-b501-7788491b2079%40googlegroups.com.
>>>  
>>>
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "sage-support" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to sage-s...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/sage-support/c934a2a9-52d0-49a5-bc31-67ad6832c22d%40googlegroups.com
>>  
>> 

Re: [sage-support] Re: sage building with python3

2019-11-04 Thread Dima Pasechnik
looks like you have a bad mix of python packages in a number of locations.

certainly you can try something like

./sage --pip install prompt_toolkit


On Mon, 4 Nov 2019, 13:05 Александр Ватузов,  wrote:

> next error:
>
> when I try:
> import prompt_toolkit
>
> ImportError: cannot import name 'AsyncGeneratorItem' from
> 'prompt_toolkit.eventloop'
> (/home/nouret/SageMath_3/local/lib/python3.7/site-packages/prompt_toolkit/eventloop/__init__.py)
>
> AsyncGeneratorItem is defined in
> ./local/lib/python3.7/site-packages/prompt_toolkit/eventloop/async_generator.py
>
> /home/nouret/SageMath_3/local/lib/python3.7/site-packages/prompt_toolkit/eventloop/__init__.py
> is empty
>
> понедельник, 4 ноября 2019 г., 14:56:35 UTC+3 пользователь Dima Pasechnik
> написал:
>>
>> try
>>
>> ./sage -f ipython
>>
>> followed by
>>
>> make build
>>
>>
>> On Mon, Nov 4, 2019 at 11:47 AM Александр Ватузов 
>> wrote:
>> >
>> > sage building is sucsess now. But running sage makes error
>> >
>> > cannot import name '_baseclass_reprs' from 'IPython.lib.pretty'
>> >
>> > it looks like new libreary, but don't undestend, which one
>> >
>> > понедельник, 4 ноября 2019 г., 12:51:24 UTC+3 пользователь Dima
>> Pasechnik написал:
>> >>
>> >>
>> >>
>> >> On Mon, 4 Nov 2019, 09:47 Александр Ватузов, 
>> wrote:
>> >>>
>> >>> it builds cython lib?
>> >>
>> >> yes
>> >>>
>> >>>
>> >>> понедельник, 4 ноября 2019 г., 12:35:17 UTC+3 пользователь Dima
>> Pasechnik написал:
>> 
>> 
>> 
>>  On Mon, 4 Nov 2019, 09:27 Александр Ватузов, 
>> wrote:
>> >
>> > "./sage -pip install cython" installs cython for python3:
>> Requirement already satisfied: cython in
>> ./local/lib/python3.7/site-packages (0.29.14); and
>> > "Requirement already satisfied: gmpy2 in
>> ./local/lib/python3.7/site-packages (2.0.8)"
>> >
>> > So I think that, may be, cython need gmpy2 installed in other way?
>> I still have na error:
>> 
>>  try
>> 
>>  ./sage -f gmpy2
>> 
>> >
>> > [sagelib-8.9] cimport gmpy2
>> > [sagelib-8.9]^
>> > [sagelib-8.9]
>> 
>> > [sagelib-8.9]
>> > [sagelib-8.9] sage/rings/complex_double.pyx:110:8: 'gmpy2.pxd' not
>> found
>> >
>> >
>> >
>> >
>> > воскресенье, 3 ноября 2019 г., 23:52:01 UTC+3 пользователь Simon
>> King написал:
>> >>
>> >> Hi Dima,
>> >>
>> >> On 2019-11-02, Dima Pasechnik  wrote:
>> >> > There "python" is Sage's Python, "pip" manages its modules, etc.
>> >>
>> >> IIRC, that's not true for Sage's py-3 version. Namely, if one
>> opens a
>> >> sage-with-py-3 shell, then "python" still means "python2". So, if
>> you
>> >> really want Sage-with-py-3's Python installation, you should
>> either do
>> >> "sage -python" or (in a Sage shell) "python3". And I think the
>> same
>> >> holds for pip.
>> >>
>> >> Best regards,
>> >> Simon
>> >>
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups "sage-support" group.
>> > To unsubscribe from this group and stop receiving emails from it,
>> send an email to sage-s...@googlegroups.com.
>> > To view this discussion on the web visit
>> https://groups.google.com/d/msgid/sage-support/8a5eb4d3-d9a4-4630-8d74-f3e5c3e0f276%40googlegroups.com.
>>
>> >>>
>> >>> --
>> >>> You received this message because you are subscribed to the Google
>> Groups "sage-support" group.
>> >>> To unsubscribe from this group and stop receiving emails from it,
>> send an email to sage-s...@googlegroups.com.
>> >>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/sage-support/14f34695-6908-466f-ba2e-709230fc8aed%40googlegroups.com.
>>
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups "sage-support" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> an email to sage-s...@googlegroups.com.
>> > To view this discussion on the web visit
>> https://groups.google.com/d/msgid/sage-support/6b1f50b0-0845-4540-b501-7788491b2079%40googlegroups.com.
>>
>>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-support+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/c934a2a9-52d0-49a5-bc31-67ad6832c22d%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.

Re: [sage-support] Re: sage building with python3

2019-11-04 Thread Александр Ватузов
next error:

when I try:
import prompt_toolkit

ImportError: cannot import name 'AsyncGeneratorItem' from 
'prompt_toolkit.eventloop' 
(/home/nouret/SageMath_3/local/lib/python3.7/site-packages/prompt_toolkit/eventloop/__init__.py)

AsyncGeneratorItem is defined in 
./local/lib/python3.7/site-packages/prompt_toolkit/eventloop/async_generator.py

/home/nouret/SageMath_3/local/lib/python3.7/site-packages/prompt_toolkit/eventloop/__init__.py
 
is empty

понедельник, 4 ноября 2019 г., 14:56:35 UTC+3 пользователь Dima Pasechnik 
написал:
>
> try 
>
> ./sage -f ipython 
>
> followed by 
>
> make build 
>
>
> On Mon, Nov 4, 2019 at 11:47 AM Александр Ватузов  > wrote: 
> > 
> > sage building is sucsess now. But running sage makes error 
> > 
> > cannot import name '_baseclass_reprs' from 'IPython.lib.pretty' 
> > 
> > it looks like new libreary, but don't undestend, which one 
> > 
> > понедельник, 4 ноября 2019 г., 12:51:24 UTC+3 пользователь Dima 
> Pasechnik написал: 
> >> 
> >> 
> >> 
> >> On Mon, 4 Nov 2019, 09:47 Александр Ватузов,  
> wrote: 
> >>> 
> >>> it builds cython lib? 
> >> 
> >> yes 
> >>> 
> >>> 
> >>> понедельник, 4 ноября 2019 г., 12:35:17 UTC+3 пользователь Dima 
> Pasechnik написал: 
>  
>  
>  
>  On Mon, 4 Nov 2019, 09:27 Александр Ватузов,  
> wrote: 
> > 
> > "./sage -pip install cython" installs cython for python3: 
> Requirement already satisfied: cython in 
> ./local/lib/python3.7/site-packages (0.29.14); and 
> > "Requirement already satisfied: gmpy2 in 
> ./local/lib/python3.7/site-packages (2.0.8)" 
> > 
> > So I think that, may be, cython need gmpy2 installed in other way? I 
> still have na error: 
>  
>  try 
>  
>  ./sage -f gmpy2 
>  
> > 
> > [sagelib-8.9] cimport gmpy2 
> > [sagelib-8.9]^ 
> > [sagelib-8.9] 
>  
> > [sagelib-8.9] 
> > [sagelib-8.9] sage/rings/complex_double.pyx:110:8: 'gmpy2.pxd' not 
> found 
> > 
> > 
> > 
> > 
> > воскресенье, 3 ноября 2019 г., 23:52:01 UTC+3 пользователь Simon 
> King написал: 
> >> 
> >> Hi Dima, 
> >> 
> >> On 2019-11-02, Dima Pasechnik  wrote: 
> >> > There "python" is Sage's Python, "pip" manages its modules, etc. 
> >> 
> >> IIRC, that's not true for Sage's py-3 version. Namely, if one opens 
> a 
> >> sage-with-py-3 shell, then "python" still means "python2". So, if 
> you 
> >> really want Sage-with-py-3's Python installation, you should either 
> do 
> >> "sage -python" or (in a Sage shell) "python3". And I think the same 
> >> holds for pip. 
> >> 
> >> Best regards, 
> >> Simon 
> >> 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups "sage-support" group. 
> > To unsubscribe from this group and stop receiving emails from it, 
> send an email to sage-s...@googlegroups.com. 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-support/8a5eb4d3-d9a4-4630-8d74-f3e5c3e0f276%40googlegroups.com.
>  
>
> >>> 
> >>> -- 
> >>> You received this message because you are subscribed to the Google 
> Groups "sage-support" group. 
> >>> To unsubscribe from this group and stop receiving emails from it, send 
> an email to sage-s...@googlegroups.com. 
> >>> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-support/14f34695-6908-466f-ba2e-709230fc8aed%40googlegroups.com.
>  
>
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups "sage-support" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to sage-s...@googlegroups.com . 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-support/6b1f50b0-0845-4540-b501-7788491b2079%40googlegroups.com.
>  
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/c934a2a9-52d0-49a5-bc31-67ad6832c22d%40googlegroups.com.


Re: [sage-support] Re: sage building with python3

2019-11-04 Thread Dima Pasechnik
try

./sage -f ipython

followed by

make build


On Mon, Nov 4, 2019 at 11:47 AM Александр Ватузов  wrote:
>
> sage building is sucsess now. But running sage makes error
>
> cannot import name '_baseclass_reprs' from 'IPython.lib.pretty'
>
> it looks like new libreary, but don't undestend, which one
>
> понедельник, 4 ноября 2019 г., 12:51:24 UTC+3 пользователь Dima Pasechnik 
> написал:
>>
>>
>>
>> On Mon, 4 Nov 2019, 09:47 Александр Ватузов,  wrote:
>>>
>>> it builds cython lib?
>>
>> yes
>>>
>>>
>>> понедельник, 4 ноября 2019 г., 12:35:17 UTC+3 пользователь Dima Pasechnik 
>>> написал:



 On Mon, 4 Nov 2019, 09:27 Александр Ватузов,  wrote:
>
> "./sage -pip install cython" installs cython for python3: Requirement 
> already satisfied: cython in ./local/lib/python3.7/site-packages 
> (0.29.14); and
> "Requirement already satisfied: gmpy2 in 
> ./local/lib/python3.7/site-packages (2.0.8)"
>
> So I think that, may be, cython need gmpy2 installed in other way? I 
> still have na error:

 try

 ./sage -f gmpy2

>
> [sagelib-8.9] cimport gmpy2
> [sagelib-8.9]^
> [sagelib-8.9] 
> [sagelib-8.9]
> [sagelib-8.9] sage/rings/complex_double.pyx:110:8: 'gmpy2.pxd' not found
>
>
>
>
> воскресенье, 3 ноября 2019 г., 23:52:01 UTC+3 пользователь Simon King 
> написал:
>>
>> Hi Dima,
>>
>> On 2019-11-02, Dima Pasechnik  wrote:
>> > There "python" is Sage's Python, "pip" manages its modules, etc.
>>
>> IIRC, that's not true for Sage's py-3 version. Namely, if one opens a
>> sage-with-py-3 shell, then "python" still means "python2". So, if you
>> really want Sage-with-py-3's Python installation, you should either do
>> "sage -python" or (in a Sage shell) "python3". And I think the same
>> holds for pip.
>>
>> Best regards,
>> Simon
>>
> --
> You received this message because you are subscribed to the Google Groups 
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-s...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-support/8a5eb4d3-d9a4-4630-8d74-f3e5c3e0f276%40googlegroups.com.
>>>
>>> --
>>> You received this message because you are subscribed to the Google Groups 
>>> "sage-support" group.
>>> To unsubscribe from this group and stop receiving emails from it, send an 
>>> email to sage-s...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/sage-support/14f34695-6908-466f-ba2e-709230fc8aed%40googlegroups.com.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-support+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-support/6b1f50b0-0845-4540-b501-7788491b2079%40googlegroups.com.

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


Re: [sage-support] Re: sage building with python3

2019-11-04 Thread Александр Ватузов
when I try to import:
>>> import IPython.lib.pretty._
IPython.lib.pretty._PrettyPrinterBase(  
 IPython.lib.pretty._exception_base(  
IPython.lib.pretty._safe_getattr(
IPython.lib.pretty._counter_pprint(  
IPython.lib.pretty._exception_pprint(
IPython.lib.pretty._seq_pprinter_factory(
IPython.lib.pretty._default_pprint(  
IPython.lib.pretty._function_pprint(
 IPython.lib.pretty._set_pprinter_factory(
IPython.lib.pretty._defaultdict_pprint(  IPython.lib.pretty._get_mro(  
   IPython.lib.pretty._singleton_pprinters
IPython.lib.pretty._deferred_type_pprinters  
IPython.lib.pretty._ordereddict_pprint(  
IPython.lib.pretty._sorted_for_pprint(
IPython.lib.pretty._deque_pprint(
IPython.lib.pretty._re_pattern_pprint(  
 IPython.lib.pretty._super_pprint(
IPython.lib.pretty._dict_pprinter_factory(  
 IPython.lib.pretty._re_pattern_type(
 IPython.lib.pretty._type_pprint(
IPython.lib.pretty._env_type(
IPython.lib.pretty._repr_pprint(
 IPython.lib.pretty._type_pprinters

понедельник, 4 ноября 2019 г., 14:47:05 UTC+3 пользователь Александр 
Ватузов написал:
>
> sage building is sucsess now. But running sage makes error
>
> cannot import name '_baseclass_reprs' from 'IPython.lib.pretty'
>
> it looks like new libreary, but don't undestend, which one
>
> понедельник, 4 ноября 2019 г., 12:51:24 UTC+3 пользователь Dima Pasechnik 
> написал:
>>
>>
>>
>> On Mon, 4 Nov 2019, 09:47 Александр Ватузов,  wrote:
>>
>>> it builds cython lib?
>>>
>> yes
>>
>>>
>>> понедельник, 4 ноября 2019 г., 12:35:17 UTC+3 пользователь Dima 
>>> Pasechnik написал:



 On Mon, 4 Nov 2019, 09:27 Александр Ватузов,  wrote:

> "./sage -pip install cython" installs cython for python3: Requirement 
> already satisfied: cython in ./local/lib/python3.7/site-packages 
> (0.29.14); 
> and
> "Requirement already satisfied: gmpy2 in 
> ./local/lib/python3.7/site-packages (2.0.8)"
>
> So I think that, may be, cython need gmpy2 installed in other way? I 
> still have na error:
>
 try

 ./sage -f gmpy2


> [sagelib-8.9] cimport gmpy2
> [sagelib-8.9]^
> [sagelib-8.9] 
> 
> [sagelib-8.9] 
> [sagelib-8.9] sage/rings/complex_double.pyx:110:8: 'gmpy2.pxd' not 
> found
>
>
>
>
> воскресенье, 3 ноября 2019 г., 23:52:01 UTC+3 пользователь Simon King 
> написал:
>>
>> Hi Dima, 
>>
>> On 2019-11-02, Dima Pasechnik  wrote: 
>> > There "python" is Sage's Python, "pip" manages its modules, etc. 
>>
>> IIRC, that's not true for Sage's py-3 version. Namely, if one opens a 
>> sage-with-py-3 shell, then "python" still means "python2". So, if you 
>> really want Sage-with-py-3's Python installation, you should either 
>> do 
>> "sage -python" or (in a Sage shell) "python3". And I think the same 
>> holds for pip. 
>>
>> Best regards, 
>> Simon 
>>
>> -- 
> You received this message because you are subscribed to the Google 
> Groups "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send 
> an email to sage-s...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-support/8a5eb4d3-d9a4-4630-8d74-f3e5c3e0f276%40googlegroups.com
>  
> 
> .
>
 -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "sage-support" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to sage-s...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/sage-support/14f34695-6908-466f-ba2e-709230fc8aed%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/dccdee54-b1d8-40c7-96f2-4651c1c775da%40googlegroups.com.


Re: [sage-support] Re: sage building with python3

2019-11-04 Thread Александр Ватузов
sage building is sucsess now. But running sage makes error

cannot import name '_baseclass_reprs' from 'IPython.lib.pretty'

it looks like new libreary, but don't undestend, which one

понедельник, 4 ноября 2019 г., 12:51:24 UTC+3 пользователь Dima Pasechnik 
написал:
>
>
>
> On Mon, 4 Nov 2019, 09:47 Александр Ватузов,  > wrote:
>
>> it builds cython lib?
>>
> yes
>
>>
>> понедельник, 4 ноября 2019 г., 12:35:17 UTC+3 пользователь Dima Pasechnik 
>> написал:
>>>
>>>
>>>
>>> On Mon, 4 Nov 2019, 09:27 Александр Ватузов,  wrote:
>>>
 "./sage -pip install cython" installs cython for python3: Requirement 
 already satisfied: cython in ./local/lib/python3.7/site-packages 
 (0.29.14); 
 and
 "Requirement already satisfied: gmpy2 in 
 ./local/lib/python3.7/site-packages (2.0.8)"

 So I think that, may be, cython need gmpy2 installed in other way? I 
 still have na error:

>>> try
>>>
>>> ./sage -f gmpy2
>>>
>>>
 [sagelib-8.9] cimport gmpy2
 [sagelib-8.9]^
 [sagelib-8.9] 
 
 [sagelib-8.9] 
 [sagelib-8.9] sage/rings/complex_double.pyx:110:8: 'gmpy2.pxd' not found




 воскресенье, 3 ноября 2019 г., 23:52:01 UTC+3 пользователь Simon King 
 написал:
>
> Hi Dima, 
>
> On 2019-11-02, Dima Pasechnik  wrote: 
> > There "python" is Sage's Python, "pip" manages its modules, etc. 
>
> IIRC, that's not true for Sage's py-3 version. Namely, if one opens a 
> sage-with-py-3 shell, then "python" still means "python2". So, if you 
> really want Sage-with-py-3's Python installation, you should either do 
> "sage -python" or (in a Sage shell) "python3". And I think the same 
> holds for pip. 
>
> Best regards, 
> Simon 
>
> -- 
 You received this message because you are subscribed to the Google 
 Groups "sage-support" group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to sage-s...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/sage-support/8a5eb4d3-d9a4-4630-8d74-f3e5c3e0f276%40googlegroups.com
  
 
 .

>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "sage-support" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to sage-s...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/sage-support/14f34695-6908-466f-ba2e-709230fc8aed%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/6b1f50b0-0845-4540-b501-7788491b2079%40googlegroups.com.


Re: [sage-support] Re: sage building with python3

2019-11-04 Thread Dima Pasechnik
On Mon, 4 Nov 2019, 09:47 Александр Ватузов,  wrote:

> it builds cython lib?
>
yes

>
> понедельник, 4 ноября 2019 г., 12:35:17 UTC+3 пользователь Dima Pasechnik
> написал:
>>
>>
>>
>> On Mon, 4 Nov 2019, 09:27 Александр Ватузов,  wrote:
>>
>>> "./sage -pip install cython" installs cython for python3: Requirement
>>> already satisfied: cython in ./local/lib/python3.7/site-packages (0.29.14);
>>> and
>>> "Requirement already satisfied: gmpy2 in
>>> ./local/lib/python3.7/site-packages (2.0.8)"
>>>
>>> So I think that, may be, cython need gmpy2 installed in other way? I
>>> still have na error:
>>>
>> try
>>
>> ./sage -f gmpy2
>>
>>
>>> [sagelib-8.9] cimport gmpy2
>>> [sagelib-8.9]^
>>> [sagelib-8.9]
>>> 
>>> [sagelib-8.9]
>>> [sagelib-8.9] sage/rings/complex_double.pyx:110:8: 'gmpy2.pxd' not found
>>>
>>>
>>>
>>>
>>> воскресенье, 3 ноября 2019 г., 23:52:01 UTC+3 пользователь Simon King
>>> написал:

 Hi Dima,

 On 2019-11-02, Dima Pasechnik  wrote:
 > There "python" is Sage's Python, "pip" manages its modules, etc.

 IIRC, that's not true for Sage's py-3 version. Namely, if one opens a
 sage-with-py-3 shell, then "python" still means "python2". So, if you
 really want Sage-with-py-3's Python installation, you should either do
 "sage -python" or (in a Sage shell) "python3". And I think the same
 holds for pip.

 Best regards,
 Simon

 --
>>> You received this message because you are subscribed to the Google
>>> Groups "sage-support" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to sage-s...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/sage-support/8a5eb4d3-d9a4-4630-8d74-f3e5c3e0f276%40googlegroups.com
>>> 
>>> .
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-support+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/14f34695-6908-466f-ba2e-709230fc8aed%40googlegroups.com
> 
> .
>

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


Re: [sage-support] Re: sage building with python3

2019-11-04 Thread Александр Ватузов
I have now warnings "Cython directive 'language_level' not set, using 2 for 
now (Py2)" 

понедельник, 4 ноября 2019 г., 12:35:17 UTC+3 пользователь Dima Pasechnik 
написал:
>
>
>
> On Mon, 4 Nov 2019, 09:27 Александр Ватузов,  > wrote:
>
>> "./sage -pip install cython" installs cython for python3: Requirement 
>> already satisfied: cython in ./local/lib/python3.7/site-packages (0.29.14); 
>> and
>> "Requirement already satisfied: gmpy2 in 
>> ./local/lib/python3.7/site-packages (2.0.8)"
>>
>> So I think that, may be, cython need gmpy2 installed in other way? I 
>> still have na error:
>>
> try
>
> ./sage -f gmpy2
>
>
>> [sagelib-8.9] cimport gmpy2
>> [sagelib-8.9]^
>> [sagelib-8.9] 
>> [sagelib-8.9] 
>> [sagelib-8.9] sage/rings/complex_double.pyx:110:8: 'gmpy2.pxd' not found
>>
>>
>>
>>
>> воскресенье, 3 ноября 2019 г., 23:52:01 UTC+3 пользователь Simon King 
>> написал:
>>>
>>> Hi Dima, 
>>>
>>> On 2019-11-02, Dima Pasechnik  wrote: 
>>> > There "python" is Sage's Python, "pip" manages its modules, etc. 
>>>
>>> IIRC, that's not true for Sage's py-3 version. Namely, if one opens a 
>>> sage-with-py-3 shell, then "python" still means "python2". So, if you 
>>> really want Sage-with-py-3's Python installation, you should either do 
>>> "sage -python" or (in a Sage shell) "python3". And I think the same 
>>> holds for pip. 
>>>
>>> Best regards, 
>>> Simon 
>>>
>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "sage-support" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to sage-s...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/sage-support/8a5eb4d3-d9a4-4630-8d74-f3e5c3e0f276%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/ec385a43-19b4-4bfd-804d-c057a52d0942%40googlegroups.com.


Re: [sage-support] Re: sage building with python3

2019-11-04 Thread Александр Ватузов
it builds cython lib?

понедельник, 4 ноября 2019 г., 12:35:17 UTC+3 пользователь Dima Pasechnik 
написал:
>
>
>
> On Mon, 4 Nov 2019, 09:27 Александр Ватузов,  > wrote:
>
>> "./sage -pip install cython" installs cython for python3: Requirement 
>> already satisfied: cython in ./local/lib/python3.7/site-packages (0.29.14); 
>> and
>> "Requirement already satisfied: gmpy2 in 
>> ./local/lib/python3.7/site-packages (2.0.8)"
>>
>> So I think that, may be, cython need gmpy2 installed in other way? I 
>> still have na error:
>>
> try
>
> ./sage -f gmpy2
>
>
>> [sagelib-8.9] cimport gmpy2
>> [sagelib-8.9]^
>> [sagelib-8.9] 
>> [sagelib-8.9] 
>> [sagelib-8.9] sage/rings/complex_double.pyx:110:8: 'gmpy2.pxd' not found
>>
>>
>>
>>
>> воскресенье, 3 ноября 2019 г., 23:52:01 UTC+3 пользователь Simon King 
>> написал:
>>>
>>> Hi Dima, 
>>>
>>> On 2019-11-02, Dima Pasechnik  wrote: 
>>> > There "python" is Sage's Python, "pip" manages its modules, etc. 
>>>
>>> IIRC, that's not true for Sage's py-3 version. Namely, if one opens a 
>>> sage-with-py-3 shell, then "python" still means "python2". So, if you 
>>> really want Sage-with-py-3's Python installation, you should either do 
>>> "sage -python" or (in a Sage shell) "python3". And I think the same 
>>> holds for pip. 
>>>
>>> Best regards, 
>>> Simon 
>>>
>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "sage-support" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to sage-s...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/sage-support/8a5eb4d3-d9a4-4630-8d74-f3e5c3e0f276%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/14f34695-6908-466f-ba2e-709230fc8aed%40googlegroups.com.


Re: [sage-support] Re: sage building with python3

2019-11-04 Thread Dima Pasechnik
On Mon, 4 Nov 2019, 09:27 Александр Ватузов,  wrote:

> "./sage -pip install cython" installs cython for python3: Requirement
> already satisfied: cython in ./local/lib/python3.7/site-packages (0.29.14);
> and
> "Requirement already satisfied: gmpy2 in
> ./local/lib/python3.7/site-packages (2.0.8)"
>
> So I think that, may be, cython need gmpy2 installed in other way? I still
> have na error:
>
try

./sage -f gmpy2


> [sagelib-8.9] cimport gmpy2
> [sagelib-8.9]^
> [sagelib-8.9] 
> [sagelib-8.9]
> [sagelib-8.9] sage/rings/complex_double.pyx:110:8: 'gmpy2.pxd' not found
>
>
>
>
> воскресенье, 3 ноября 2019 г., 23:52:01 UTC+3 пользователь Simon King
> написал:
>>
>> Hi Dima,
>>
>> On 2019-11-02, Dima Pasechnik  wrote:
>> > There "python" is Sage's Python, "pip" manages its modules, etc.
>>
>> IIRC, that's not true for Sage's py-3 version. Namely, if one opens a
>> sage-with-py-3 shell, then "python" still means "python2". So, if you
>> really want Sage-with-py-3's Python installation, you should either do
>> "sage -python" or (in a Sage shell) "python3". And I think the same
>> holds for pip.
>>
>> Best regards,
>> Simon
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-support+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/8a5eb4d3-d9a4-4630-8d74-f3e5c3e0f276%40googlegroups.com
> 
> .
>

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


[sage-support] Re: sage building with python3

2019-11-04 Thread Александр Ватузов
"./sage -pip install cython" installs cython for python3: Requirement 
already satisfied: cython in ./local/lib/python3.7/site-packages (0.29.14); 
and
"Requirement already satisfied: gmpy2 in 
./local/lib/python3.7/site-packages (2.0.8)"

So I think that, may be, cython need gmpy2 installed in other way? I still 
have na error:

[sagelib-8.9] cimport gmpy2
[sagelib-8.9]^
[sagelib-8.9] 
[sagelib-8.9] 
[sagelib-8.9] sage/rings/complex_double.pyx:110:8: 'gmpy2.pxd' not found




воскресенье, 3 ноября 2019 г., 23:52:01 UTC+3 пользователь Simon King 
написал:
>
> Hi Dima, 
>
> On 2019-11-02, Dima Pasechnik > wrote: 
> > There "python" is Sage's Python, "pip" manages its modules, etc. 
>
> IIRC, that's not true for Sage's py-3 version. Namely, if one opens a 
> sage-with-py-3 shell, then "python" still means "python2". So, if you 
> really want Sage-with-py-3's Python installation, you should either do 
> "sage -python" or (in a Sage shell) "python3". And I think the same 
> holds for pip. 
>
> Best regards, 
> Simon 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/8a5eb4d3-d9a4-4630-8d74-f3e5c3e0f276%40googlegroups.com.