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 Александр Ватузов, <amvatu...@gmail.com> 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 Александр Ватузов, <amva...@gmail.com> 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 Александр Ватузов, <amva...@gmail.com>
>>>> 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,
>>>> >>>>>>
>>>> >>>>>> On 2019-11-02, Dima Pasechnik <dim...@gmail.com> 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
>>> <https://groups.google.com/d/msgid/sage-support/c934a2a9-52d0-49a5-bc31-67ad6832c22d%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> 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/8413e3e9-d2bf-4ac5-bbb2-be8485c45ba1%40googlegroups.com
> <https://groups.google.com/d/msgid/sage-support/8413e3e9-d2bf-4ac5-bbb2-be8485c45ba1%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAAWYfq1s3YDKQHa%2BAF-rYtf_9Z28ZxMuuOxQzi9%3DbpC17JP9Pg%40mail.gmail.com.

Reply via email to