Re: [sage-support] sage with python3, mpmath
yes, but it is function that translates numbers into strings, don't need such optimizations среда, 15 января 2020 г., 1:23:36 UTC+3 пользователь Nils Bruin написал: > > On Tuesday, January 14, 2020 at 5:36:27 AM UTC-8, Александр Ватузов wrote: >> >> Now I constantly know, that problem was in using >> >> divmod(n, base**half) >> >> instead of >> >> n // (base**half), n % (base**half) >> > > The second option yields a performance regression relative to the first, > because you would end up doing an integer division twice rather than one > (integer division yields both the quotient and the remainder, so throwing > one away and then recomputing it to find it anyway is wasteful). You're > also performing an exponentiation twice. > > I think it would be better to find/write a "divmod" that works in py3 as > well. > -- 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/e4ccf4b7-cf4e-447a-81df-ce7fee6fc3a4%40googlegroups.com.
[sage-support] Re: Failed Sage 9.0 build on Catalina
Mon 2020-01-13 15:59:19 UTC, Rachel Player: > > I am also having trouble installing Sage on macOS Catalina 10.15.2. > > The issue appears to be with the internal version of python. > > Here’s what I did: > > - Downloaded sage-9.0-OSX_10.15.2-x86_64.tar.bz2 > - Opened with tar -xzf sage-9.0-OSX_10.15.2-x86_64.tar.bz2 > - Cd’d into SageMath > - Ran ./sage Suggestion (initial $ on any line denotes shell prompt): - download sage-9.0-OSX_10.15.2-x86_64.tar.bz2 - extract with $ tar -xf sage-9.0-OSX_10.15.2-x86_64.tar.bz2 which gives a SageMath folder - recursively unquarantine that folder with $ xattr -rd com.apple.quarantine SageMath - change to SageMath and run Sage with $ cd SageMath $ ./sage - if that works, quit Sage and create a symlink to Sage somewhere in your path: sage: quit $ sudo ln -s `pwd`/sage /usr/local/bin Then, in any terminal session, you can start Sage from anywhere without having to cd to SageMath. Start the Sage REPL: $ sage Start the Jupyter notebook server: $ sage -n jupyter -- 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/84ed4fa6-b12a-449a-8eb6-1ad456b12468%40googlegroups.com.
Re: [sage-support] sage with python3, mpmath
On Tuesday, January 14, 2020 at 5:36:27 AM UTC-8, Александр Ватузов wrote: > > Now I constantly know, that problem was in using > > divmod(n, base**half) > > instead of > > n // (base**half), n % (base**half) > The second option yields a performance regression relative to the first, because you would end up doing an integer division twice rather than one (integer division yields both the quotient and the remainder, so throwing one away and then recomputing it to find it anyway is wasteful). You're also performing an exponentiation twice. I think it would be better to find/write a "divmod" that works in py3 as well. -- 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/78a83c70-0f12-4df0-a2e4-d4a499b388bf%40googlegroups.com.
Re: [sage-support] sage with python3, mpmath
On line 158, in the function "numerical_python", I see A, B = divmod(n, base**half) On Tuesday, January 14, 2020 at 11:54:21 AM UTC-8, Александр Ватузов wrote: > > and what is on mpmath file, analog of > "/SageMath/local/lib/python3.7/site-packages/mpmath/libmp/libintmath.py", > line 161 ? Just interesting :) > > вторник, 14 января 2020 г., 21:20:05 UTC+3 пользователь John H Palmieri > написал: >> >> Sorry, I meant Sage *9.1.beta0*. >> >> On Tuesday, January 14, 2020 at 10:18:41 AM UTC-8, John H Palmieri wrote: >>> >>> Just to confirm: everything works with Sage 9.0.beta1, built with Python >>> 2. Fails with Sage built with Python 3. >>> >>> >>> On Tuesday, January 14, 2020 at 5:55:51 AM UTC-8, Александр Ватузов >>> wrote: https://trac.sagemath.org/ticket/29009#ticket вторник, 14 января 2020 г., 16:36:27 UTC+3 пользователь Александр Ватузов написал: > > Now I constantly know, that problem was in using > > divmod(n, base**half) > > instead of > > n // (base**half), n % (base**half) > > on File > "/home/nouret/SageMath/local/lib/python3.7/site-packages/mpmath/libmp/libintmath.py", > > line 161, in numeral_python > > вторник, 14 января 2020 г., 15:42:17 UTC+3 пользователь Dima Pasechnik > написал: >> >> On Tue, Jan 14, 2020 at 12:37 PM Александр Ватузов >> wrote: >> > >> > I haven-fount where report bug on that site... >> > >> you open a new ticket: https://trac.sagemath.org/newticket >> - you'd need either a Guthub account, or a local account (long time >> to >> get sometimes) to authenticate. >> >> >> > Now I will try to repair smth: >> > >> > I have 2 dirs: >> > SageMath/local/lib/python3.7/site-packages/mpmath >> > .local/lib/python3.6/site-packages/mpmath >> > >> > I think there are sima chenges here >> > >> > вторник, 14 января 2020 г., 14:57:31 UTC+3 пользователь Dima >> Pasechnik написал: >> >> >> >> On Tue, Jan 14, 2020 at 11:53 AM Александр Ватузов < >> amva...@gmail.com> wrote: >> >> > >> >> > Will you open issue here? https://trac.sagemath.org/ >> >> >> >> I can't reproduce the issue with a system python 3.7.3, so it >> deserves >> >> a trac ticket. >> >> Can you open one? >> >> >> >> > >> >> > Or I can try to do something >> >> > >> >> > вторник, 14 января 2020 г., 14:08:08 UTC+3 пользователь Dima >> Pasechnik написал: >> >> >> >> >> >> I have opened >> https://github.com/fredrik-johansson/mpmath/issues/503 >> >> >> to report this. >> >> >> >> >> >> On Tue, Jan 14, 2020 at 10:59 AM Eric Gourgoulhon >> >> >> wrote: >> >> >> > >> >> >> > PS: a similar error has been reported on ask.sagemath: >> https://ask.sagemath.org/question/49534/error-with-mpmathfindroot-on-89/ >> >> >> > >> >> >> > Le mardi 14 janvier 2020 11:55:08 UTC+1, Eric Gourgoulhon a >> écrit : >> >> >> >> >> >> >> >> Le mardi 14 janvier 2020 11:36:44 UTC+1, Dima Pasechnik a >> écrit : >> >> >> >>> >> >> >> >>> >> >> >> >>> mpmath version on Sage 8.6 is 1.0.0, and later and now it >> is 1.1.0 >> >> >> >>> >> >> >> >>> This might explain the problem, which maybe should be >> reported upstream: >> >> >> >>> >> >> >> >>> https://github.com/fredrik-johansson/mpmath >> >> >> >>> >> >> >> >> >> >> >> >> >> >> >> >> It's OK with Sage 8.9, which has already mpmath 1.1.0. So >> the problem is not due to the version of mpmath. Maybe a Python 2 / >> Python >> 3 issue? >> >> >> >> Another data point: the issue is there in Sage 9.0.beta5 >> (Python 3). >> >> >> >> >> >> >> >> Eric. >> >> >> >> >> >> >> > >> >> >> > -- >> >> >> > 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/5a7d5bb4-c406-4b8f-a757-370578307ed1%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/2e9eea57-3558-426b-9dec-76c22a6547ea%40googlegroups.com. >> >> >> > >> > -- >> > You received this message because you are subscribed to the Google >> Groups "sage-support" group. >> > To unsubscribe from thi
Re: [sage-support] sage with python3, mpmath
and what is on mpmath file, analog of "/SageMath/local/lib/python3.7/site-packages/mpmath/libmp/libintmath.py", line 161 ? Just interesting :) вторник, 14 января 2020 г., 21:20:05 UTC+3 пользователь John H Palmieri написал: > > Sorry, I meant Sage *9.1.beta0*. > > On Tuesday, January 14, 2020 at 10:18:41 AM UTC-8, John H Palmieri wrote: >> >> Just to confirm: everything works with Sage 9.0.beta1, built with Python >> 2. Fails with Sage built with Python 3. >> >> >> On Tuesday, January 14, 2020 at 5:55:51 AM UTC-8, Александр Ватузов wrote: >>> >>> https://trac.sagemath.org/ticket/29009#ticket >>> >>> вторник, 14 января 2020 г., 16:36:27 UTC+3 пользователь Александр >>> Ватузов написал: Now I constantly know, that problem was in using divmod(n, base**half) instead of n // (base**half), n % (base**half) on File "/home/nouret/SageMath/local/lib/python3.7/site-packages/mpmath/libmp/libintmath.py", line 161, in numeral_python вторник, 14 января 2020 г., 15:42:17 UTC+3 пользователь Dima Pasechnik написал: > > On Tue, Jan 14, 2020 at 12:37 PM Александр Ватузов > wrote: > > > > I haven-fount where report bug on that site... > > > you open a new ticket: https://trac.sagemath.org/newticket > - you'd need either a Guthub account, or a local account (long time to > get sometimes) to authenticate. > > > > Now I will try to repair smth: > > > > I have 2 dirs: > > SageMath/local/lib/python3.7/site-packages/mpmath > > .local/lib/python3.6/site-packages/mpmath > > > > I think there are sima chenges here > > > > вторник, 14 января 2020 г., 14:57:31 UTC+3 пользователь Dima > Pasechnik написал: > >> > >> On Tue, Jan 14, 2020 at 11:53 AM Александр Ватузов < > amva...@gmail.com> wrote: > >> > > >> > Will you open issue here? https://trac.sagemath.org/ > >> > >> I can't reproduce the issue with a system python 3.7.3, so it > deserves > >> a trac ticket. > >> Can you open one? > >> > >> > > >> > Or I can try to do something > >> > > >> > вторник, 14 января 2020 г., 14:08:08 UTC+3 пользователь Dima > Pasechnik написал: > >> >> > >> >> I have opened > https://github.com/fredrik-johansson/mpmath/issues/503 > >> >> to report this. > >> >> > >> >> On Tue, Jan 14, 2020 at 10:59 AM Eric Gourgoulhon > >> >> wrote: > >> >> > > >> >> > PS: a similar error has been reported on ask.sagemath: > https://ask.sagemath.org/question/49534/error-with-mpmathfindroot-on-89/ > >> >> > > >> >> > Le mardi 14 janvier 2020 11:55:08 UTC+1, Eric Gourgoulhon a > écrit : > >> >> >> > >> >> >> Le mardi 14 janvier 2020 11:36:44 UTC+1, Dima Pasechnik a > écrit : > >> >> >>> > >> >> >>> > >> >> >>> mpmath version on Sage 8.6 is 1.0.0, and later and now it is > 1.1.0 > >> >> >>> > >> >> >>> This might explain the problem, which maybe should be > reported upstream: > >> >> >>> > >> >> >>> https://github.com/fredrik-johansson/mpmath > >> >> >>> > >> >> >> > >> >> >> > >> >> >> It's OK with Sage 8.9, which has already mpmath 1.1.0. So the > problem is not due to the version of mpmath. Maybe a Python 2 / Python 3 > issue? > >> >> >> Another data point: the issue is there in Sage 9.0.beta5 > (Python 3). > >> >> >> > >> >> >> Eric. > >> >> >> > >> >> > > >> >> > -- > >> >> > 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/5a7d5bb4-c406-4b8f-a757-370578307ed1%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/2e9eea57-3558-426b-9dec-76c22a6547ea%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/e9324849-4998-4c91-a384-f3314f59ae46%40googlegroups.com. > > > -- You received this message because you are subscr
Re: [sage-support] sage with python3, mpmath
Sorry, I meant Sage *9.1.beta0*. On Tuesday, January 14, 2020 at 10:18:41 AM UTC-8, John H Palmieri wrote: > > Just to confirm: everything works with Sage 9.0.beta1, built with Python > 2. Fails with Sage built with Python 3. > > > On Tuesday, January 14, 2020 at 5:55:51 AM UTC-8, Александр Ватузов wrote: >> >> https://trac.sagemath.org/ticket/29009#ticket >> >> вторник, 14 января 2020 г., 16:36:27 UTC+3 пользователь Александр Ватузов >> написал: >>> >>> Now I constantly know, that problem was in using >>> >>> divmod(n, base**half) >>> >>> instead of >>> >>> n // (base**half), n % (base**half) >>> >>> on File >>> "/home/nouret/SageMath/local/lib/python3.7/site-packages/mpmath/libmp/libintmath.py", >>> >>> line 161, in numeral_python >>> >>> вторник, 14 января 2020 г., 15:42:17 UTC+3 пользователь Dima Pasechnik >>> написал: On Tue, Jan 14, 2020 at 12:37 PM Александр Ватузов wrote: > > I haven-fount where report bug on that site... > you open a new ticket: https://trac.sagemath.org/newticket - you'd need either a Guthub account, or a local account (long time to get sometimes) to authenticate. > Now I will try to repair smth: > > I have 2 dirs: > SageMath/local/lib/python3.7/site-packages/mpmath > .local/lib/python3.6/site-packages/mpmath > > I think there are sima chenges here > > вторник, 14 января 2020 г., 14:57:31 UTC+3 пользователь Dima Pasechnik написал: >> >> On Tue, Jan 14, 2020 at 11:53 AM Александр Ватузов < amva...@gmail.com> wrote: >> > >> > Will you open issue here? https://trac.sagemath.org/ >> >> I can't reproduce the issue with a system python 3.7.3, so it deserves >> a trac ticket. >> Can you open one? >> >> > >> > Or I can try to do something >> > >> > вторник, 14 января 2020 г., 14:08:08 UTC+3 пользователь Dima Pasechnik написал: >> >> >> >> I have opened https://github.com/fredrik-johansson/mpmath/issues/503 >> >> to report this. >> >> >> >> On Tue, Jan 14, 2020 at 10:59 AM Eric Gourgoulhon >> >> wrote: >> >> > >> >> > PS: a similar error has been reported on ask.sagemath: https://ask.sagemath.org/question/49534/error-with-mpmathfindroot-on-89/ >> >> > >> >> > Le mardi 14 janvier 2020 11:55:08 UTC+1, Eric Gourgoulhon a écrit : >> >> >> >> >> >> Le mardi 14 janvier 2020 11:36:44 UTC+1, Dima Pasechnik a écrit : >> >> >>> >> >> >>> >> >> >>> mpmath version on Sage 8.6 is 1.0.0, and later and now it is 1.1.0 >> >> >>> >> >> >>> This might explain the problem, which maybe should be reported upstream: >> >> >>> >> >> >>> https://github.com/fredrik-johansson/mpmath >> >> >>> >> >> >> >> >> >> >> >> >> It's OK with Sage 8.9, which has already mpmath 1.1.0. So the problem is not due to the version of mpmath. Maybe a Python 2 / Python 3 issue? >> >> >> Another data point: the issue is there in Sage 9.0.beta5 (Python 3). >> >> >> >> >> >> Eric. >> >> >> >> >> > >> >> > -- >> >> > 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/5a7d5bb4-c406-4b8f-a757-370578307ed1%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/2e9eea57-3558-426b-9dec-76c22a6547ea%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/e9324849-4998-4c91-a384-f3314f59ae46%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/516f1a46-e931-4a5a-9a6e-bcbd590cfedc%40googlegroups.com.
Re: [sage-support] sage with python3, mpmath
Just to confirm: everything works with Sage 9.0.beta1, built with Python 2. Fails with Sage built with Python 3. On Tuesday, January 14, 2020 at 5:55:51 AM UTC-8, Александр Ватузов wrote: > > https://trac.sagemath.org/ticket/29009#ticket > > вторник, 14 января 2020 г., 16:36:27 UTC+3 пользователь Александр Ватузов > написал: >> >> Now I constantly know, that problem was in using >> >> divmod(n, base**half) >> >> instead of >> >> n // (base**half), n % (base**half) >> >> on File >> "/home/nouret/SageMath/local/lib/python3.7/site-packages/mpmath/libmp/libintmath.py", >> >> line 161, in numeral_python >> >> вторник, 14 января 2020 г., 15:42:17 UTC+3 пользователь Dima Pasechnik >> написал: >>> >>> On Tue, Jan 14, 2020 at 12:37 PM Александр Ватузов >>> wrote: >>> > >>> > I haven-fount where report bug on that site... >>> > >>> you open a new ticket: https://trac.sagemath.org/newticket >>> - you'd need either a Guthub account, or a local account (long time to >>> get sometimes) to authenticate. >>> >>> >>> > Now I will try to repair smth: >>> > >>> > I have 2 dirs: >>> > SageMath/local/lib/python3.7/site-packages/mpmath >>> > .local/lib/python3.6/site-packages/mpmath >>> > >>> > I think there are sima chenges here >>> > >>> > вторник, 14 января 2020 г., 14:57:31 UTC+3 пользователь Dima Pasechnik >>> написал: >>> >> >>> >> On Tue, Jan 14, 2020 at 11:53 AM Александр Ватузов >>> wrote: >>> >> > >>> >> > Will you open issue here? https://trac.sagemath.org/ >>> >> >>> >> I can't reproduce the issue with a system python 3.7.3, so it >>> deserves >>> >> a trac ticket. >>> >> Can you open one? >>> >> >>> >> > >>> >> > Or I can try to do something >>> >> > >>> >> > вторник, 14 января 2020 г., 14:08:08 UTC+3 пользователь Dima >>> Pasechnik написал: >>> >> >> >>> >> >> I have opened >>> https://github.com/fredrik-johansson/mpmath/issues/503 >>> >> >> to report this. >>> >> >> >>> >> >> On Tue, Jan 14, 2020 at 10:59 AM Eric Gourgoulhon >>> >> >> wrote: >>> >> >> > >>> >> >> > PS: a similar error has been reported on ask.sagemath: >>> https://ask.sagemath.org/question/49534/error-with-mpmathfindroot-on-89/ >>> >> >> > >>> >> >> > Le mardi 14 janvier 2020 11:55:08 UTC+1, Eric Gourgoulhon a >>> écrit : >>> >> >> >> >>> >> >> >> Le mardi 14 janvier 2020 11:36:44 UTC+1, Dima Pasechnik a écrit >>> : >>> >> >> >>> >>> >> >> >>> >>> >> >> >>> mpmath version on Sage 8.6 is 1.0.0, and later and now it is >>> 1.1.0 >>> >> >> >>> >>> >> >> >>> This might explain the problem, which maybe should be reported >>> upstream: >>> >> >> >>> >>> >> >> >>> https://github.com/fredrik-johansson/mpmath >>> >> >> >>> >>> >> >> >> >>> >> >> >> >>> >> >> >> It's OK with Sage 8.9, which has already mpmath 1.1.0. So the >>> problem is not due to the version of mpmath. Maybe a Python 2 / Python 3 >>> issue? >>> >> >> >> Another data point: the issue is there in Sage 9.0.beta5 >>> (Python 3). >>> >> >> >> >>> >> >> >> Eric. >>> >> >> >> >>> >> >> > >>> >> >> > -- >>> >> >> > 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/5a7d5bb4-c406-4b8f-a757-370578307ed1%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/2e9eea57-3558-426b-9dec-76c22a6547ea%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/e9324849-4998-4c91-a384-f3314f59ae46%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/32ead3e3-0459-410b-b421-117e1d8ddec1%40googlegroups.com.
Re: [sage-support] sage with python3, mpmath
https://trac.sagemath.org/ticket/29009#ticket вторник, 14 января 2020 г., 16:36:27 UTC+3 пользователь Александр Ватузов написал: > > Now I constantly know, that problem was in using > > divmod(n, base**half) > > instead of > > n // (base**half), n % (base**half) > > on File > "/home/nouret/SageMath/local/lib/python3.7/site-packages/mpmath/libmp/libintmath.py", > > line 161, in numeral_python > > вторник, 14 января 2020 г., 15:42:17 UTC+3 пользователь Dima Pasechnik > написал: >> >> On Tue, Jan 14, 2020 at 12:37 PM Александр Ватузов >> wrote: >> > >> > I haven-fount where report bug on that site... >> > >> you open a new ticket: https://trac.sagemath.org/newticket >> - you'd need either a Guthub account, or a local account (long time to >> get sometimes) to authenticate. >> >> >> > Now I will try to repair smth: >> > >> > I have 2 dirs: >> > SageMath/local/lib/python3.7/site-packages/mpmath >> > .local/lib/python3.6/site-packages/mpmath >> > >> > I think there are sima chenges here >> > >> > вторник, 14 января 2020 г., 14:57:31 UTC+3 пользователь Dima Pasechnik >> написал: >> >> >> >> On Tue, Jan 14, 2020 at 11:53 AM Александр Ватузов >> wrote: >> >> > >> >> > Will you open issue here? https://trac.sagemath.org/ >> >> >> >> I can't reproduce the issue with a system python 3.7.3, so it deserves >> >> a trac ticket. >> >> Can you open one? >> >> >> >> > >> >> > Or I can try to do something >> >> > >> >> > вторник, 14 января 2020 г., 14:08:08 UTC+3 пользователь Dima >> Pasechnik написал: >> >> >> >> >> >> I have opened >> https://github.com/fredrik-johansson/mpmath/issues/503 >> >> >> to report this. >> >> >> >> >> >> On Tue, Jan 14, 2020 at 10:59 AM Eric Gourgoulhon >> >> >> wrote: >> >> >> > >> >> >> > PS: a similar error has been reported on ask.sagemath: >> https://ask.sagemath.org/question/49534/error-with-mpmathfindroot-on-89/ >> >> >> > >> >> >> > Le mardi 14 janvier 2020 11:55:08 UTC+1, Eric Gourgoulhon a écrit >> : >> >> >> >> >> >> >> >> Le mardi 14 janvier 2020 11:36:44 UTC+1, Dima Pasechnik a écrit >> : >> >> >> >>> >> >> >> >>> >> >> >> >>> mpmath version on Sage 8.6 is 1.0.0, and later and now it is >> 1.1.0 >> >> >> >>> >> >> >> >>> This might explain the problem, which maybe should be reported >> upstream: >> >> >> >>> >> >> >> >>> https://github.com/fredrik-johansson/mpmath >> >> >> >>> >> >> >> >> >> >> >> >> >> >> >> >> It's OK with Sage 8.9, which has already mpmath 1.1.0. So the >> problem is not due to the version of mpmath. Maybe a Python 2 / Python 3 >> issue? >> >> >> >> Another data point: the issue is there in Sage 9.0.beta5 (Python >> 3). >> >> >> >> >> >> >> >> Eric. >> >> >> >> >> >> >> > >> >> >> > -- >> >> >> > 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/5a7d5bb4-c406-4b8f-a757-370578307ed1%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/2e9eea57-3558-426b-9dec-76c22a6547ea%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/e9324849-4998-4c91-a384-f3314f59ae46%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/9c56c4f9-cbbc-4f41-9829-5249f5616d32%40googlegroups.com.
Re: [sage-support] sage with python3, mpmath
Now I constantly know, that problem was in using divmod(n, base**half) instead of n // (base**half), n % (base**half) on File "/home/nouret/SageMath/local/lib/python3.7/site-packages/mpmath/libmp/libintmath.py", line 161, in numeral_python вторник, 14 января 2020 г., 15:42:17 UTC+3 пользователь Dima Pasechnik написал: > > On Tue, Jan 14, 2020 at 12:37 PM Александр Ватузов > wrote: > > > > I haven-fount where report bug on that site... > > > you open a new ticket: https://trac.sagemath.org/newticket > - you'd need either a Guthub account, or a local account (long time to > get sometimes) to authenticate. > > > > Now I will try to repair smth: > > > > I have 2 dirs: > > SageMath/local/lib/python3.7/site-packages/mpmath > > .local/lib/python3.6/site-packages/mpmath > > > > I think there are sima chenges here > > > > вторник, 14 января 2020 г., 14:57:31 UTC+3 пользователь Dima Pasechnik > написал: > >> > >> On Tue, Jan 14, 2020 at 11:53 AM Александр Ватузов > wrote: > >> > > >> > Will you open issue here? https://trac.sagemath.org/ > >> > >> I can't reproduce the issue with a system python 3.7.3, so it deserves > >> a trac ticket. > >> Can you open one? > >> > >> > > >> > Or I can try to do something > >> > > >> > вторник, 14 января 2020 г., 14:08:08 UTC+3 пользователь Dima > Pasechnik написал: > >> >> > >> >> I have opened https://github.com/fredrik-johansson/mpmath/issues/503 > >> >> to report this. > >> >> > >> >> On Tue, Jan 14, 2020 at 10:59 AM Eric Gourgoulhon > >> >> wrote: > >> >> > > >> >> > PS: a similar error has been reported on ask.sagemath: > https://ask.sagemath.org/question/49534/error-with-mpmathfindroot-on-89/ > >> >> > > >> >> > Le mardi 14 janvier 2020 11:55:08 UTC+1, Eric Gourgoulhon a écrit > : > >> >> >> > >> >> >> Le mardi 14 janvier 2020 11:36:44 UTC+1, Dima Pasechnik a écrit : > >> >> >>> > >> >> >>> > >> >> >>> mpmath version on Sage 8.6 is 1.0.0, and later and now it is > 1.1.0 > >> >> >>> > >> >> >>> This might explain the problem, which maybe should be reported > upstream: > >> >> >>> > >> >> >>> https://github.com/fredrik-johansson/mpmath > >> >> >>> > >> >> >> > >> >> >> > >> >> >> It's OK with Sage 8.9, which has already mpmath 1.1.0. So the > problem is not due to the version of mpmath. Maybe a Python 2 / Python 3 > issue? > >> >> >> Another data point: the issue is there in Sage 9.0.beta5 (Python > 3). > >> >> >> > >> >> >> Eric. > >> >> >> > >> >> > > >> >> > -- > >> >> > 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/5a7d5bb4-c406-4b8f-a757-370578307ed1%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/2e9eea57-3558-426b-9dec-76c22a6547ea%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/e9324849-4998-4c91-a384-f3314f59ae46%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/97da7c7c-1beb-4d76-b258-2c87538398f3%40googlegroups.com.
Re: [sage-support] sage with python3, mpmath
.Copy mpmath from build-in python3.6.9 to sage python3.7.3 doesn't help, can divmod function change?.. вторник, 14 января 2020 г., 15:42:17 UTC+3 пользователь Dima Pasechnik написал: > > On Tue, Jan 14, 2020 at 12:37 PM Александр Ватузов > wrote: > > > > I haven-fount where report bug on that site... > > > you open a new ticket: https://trac.sagemath.org/newticket > - you'd need either a Guthub account, or a local account (long time to > get sometimes) to authenticate. > > > > Now I will try to repair smth: > > > > I have 2 dirs: > > SageMath/local/lib/python3.7/site-packages/mpmath > > .local/lib/python3.6/site-packages/mpmath > > > > I think there are sima chenges here > > > > вторник, 14 января 2020 г., 14:57:31 UTC+3 пользователь Dima Pasechnik > написал: > >> > >> On Tue, Jan 14, 2020 at 11:53 AM Александр Ватузов > wrote: > >> > > >> > Will you open issue here? https://trac.sagemath.org/ > >> > >> I can't reproduce the issue with a system python 3.7.3, so it deserves > >> a trac ticket. > >> Can you open one? > >> > >> > > >> > Or I can try to do something > >> > > >> > вторник, 14 января 2020 г., 14:08:08 UTC+3 пользователь Dima > Pasechnik написал: > >> >> > >> >> I have opened https://github.com/fredrik-johansson/mpmath/issues/503 > >> >> to report this. > >> >> > >> >> On Tue, Jan 14, 2020 at 10:59 AM Eric Gourgoulhon > >> >> wrote: > >> >> > > >> >> > PS: a similar error has been reported on ask.sagemath: > https://ask.sagemath.org/question/49534/error-with-mpmathfindroot-on-89/ > >> >> > > >> >> > Le mardi 14 janvier 2020 11:55:08 UTC+1, Eric Gourgoulhon a écrit > : > >> >> >> > >> >> >> Le mardi 14 janvier 2020 11:36:44 UTC+1, Dima Pasechnik a écrit : > >> >> >>> > >> >> >>> > >> >> >>> mpmath version on Sage 8.6 is 1.0.0, and later and now it is > 1.1.0 > >> >> >>> > >> >> >>> This might explain the problem, which maybe should be reported > upstream: > >> >> >>> > >> >> >>> https://github.com/fredrik-johansson/mpmath > >> >> >>> > >> >> >> > >> >> >> > >> >> >> It's OK with Sage 8.9, which has already mpmath 1.1.0. So the > problem is not due to the version of mpmath. Maybe a Python 2 / Python 3 > issue? > >> >> >> Another data point: the issue is there in Sage 9.0.beta5 (Python > 3). > >> >> >> > >> >> >> Eric. > >> >> >> > >> >> > > >> >> > -- > >> >> > 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/5a7d5bb4-c406-4b8f-a757-370578307ed1%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/2e9eea57-3558-426b-9dec-76c22a6547ea%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/e9324849-4998-4c91-a384-f3314f59ae46%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/c6f43ca3-37d6-41b1-97e0-11f9a507d69f%40googlegroups.com.
Re: [sage-support] sage with python3, mpmath
On Tue, Jan 14, 2020 at 12:37 PM Александр Ватузов wrote: > > I haven-fount where report bug on that site... > you open a new ticket: https://trac.sagemath.org/newticket - you'd need either a Guthub account, or a local account (long time to get sometimes) to authenticate. > Now I will try to repair smth: > > I have 2 dirs: > SageMath/local/lib/python3.7/site-packages/mpmath > .local/lib/python3.6/site-packages/mpmath > > I think there are sima chenges here > > вторник, 14 января 2020 г., 14:57:31 UTC+3 пользователь Dima Pasechnik > написал: >> >> On Tue, Jan 14, 2020 at 11:53 AM Александр Ватузов wrote: >> > >> > Will you open issue here? https://trac.sagemath.org/ >> >> I can't reproduce the issue with a system python 3.7.3, so it deserves >> a trac ticket. >> Can you open one? >> >> > >> > Or I can try to do something >> > >> > вторник, 14 января 2020 г., 14:08:08 UTC+3 пользователь Dima Pasechnik >> > написал: >> >> >> >> I have opened https://github.com/fredrik-johansson/mpmath/issues/503 >> >> to report this. >> >> >> >> On Tue, Jan 14, 2020 at 10:59 AM Eric Gourgoulhon >> >> wrote: >> >> > >> >> > PS: a similar error has been reported on ask.sagemath: >> >> > https://ask.sagemath.org/question/49534/error-with-mpmathfindroot-on-89/ >> >> > >> >> > Le mardi 14 janvier 2020 11:55:08 UTC+1, Eric Gourgoulhon a écrit : >> >> >> >> >> >> Le mardi 14 janvier 2020 11:36:44 UTC+1, Dima Pasechnik a écrit : >> >> >>> >> >> >>> >> >> >>> mpmath version on Sage 8.6 is 1.0.0, and later and now it is 1.1.0 >> >> >>> >> >> >>> This might explain the problem, which maybe should be reported >> >> >>> upstream: >> >> >>> >> >> >>> https://github.com/fredrik-johansson/mpmath >> >> >>> >> >> >> >> >> >> >> >> >> It's OK with Sage 8.9, which has already mpmath 1.1.0. So the problem >> >> >> is not due to the version of mpmath. Maybe a Python 2 / Python 3 issue? >> >> >> Another data point: the issue is there in Sage 9.0.beta5 (Python 3). >> >> >> >> >> >> Eric. >> >> >> >> >> > >> >> > -- >> >> > 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/5a7d5bb4-c406-4b8f-a757-370578307ed1%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/2e9eea57-3558-426b-9dec-76c22a6547ea%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/e9324849-4998-4c91-a384-f3314f59ae46%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/CAAWYfq2LpcBfN5XYgPKsOX%2BtaZ5QDTtVf%2BfD-5C3B_CQ_8GnhA%40mail.gmail.com.
Re: [sage-support] sage with python3, mpmath
I haven-fount where report bug on that site... Now I will try to repair smth: I have 2 dirs: SageMath/local/lib/python3.7/site-packages/mpmath .local/lib/python3.6/site-packages/mpmath I think there are sima chenges here вторник, 14 января 2020 г., 14:57:31 UTC+3 пользователь Dima Pasechnik написал: > > On Tue, Jan 14, 2020 at 11:53 AM Александр Ватузов > wrote: > > > > Will you open issue here? https://trac.sagemath.org/ > > I can't reproduce the issue with a system python 3.7.3, so it deserves > a trac ticket. > Can you open one? > > > > > Or I can try to do something > > > > вторник, 14 января 2020 г., 14:08:08 UTC+3 пользователь Dima Pasechnik > написал: > >> > >> I have opened https://github.com/fredrik-johansson/mpmath/issues/503 > >> to report this. > >> > >> On Tue, Jan 14, 2020 at 10:59 AM Eric Gourgoulhon > >> wrote: > >> > > >> > PS: a similar error has been reported on ask.sagemath: > https://ask.sagemath.org/question/49534/error-with-mpmathfindroot-on-89/ > >> > > >> > Le mardi 14 janvier 2020 11:55:08 UTC+1, Eric Gourgoulhon a écrit : > >> >> > >> >> Le mardi 14 janvier 2020 11:36:44 UTC+1, Dima Pasechnik a écrit : > >> >>> > >> >>> > >> >>> mpmath version on Sage 8.6 is 1.0.0, and later and now it is 1.1.0 > >> >>> > >> >>> This might explain the problem, which maybe should be reported > upstream: > >> >>> > >> >>> https://github.com/fredrik-johansson/mpmath > >> >>> > >> >> > >> >> > >> >> It's OK with Sage 8.9, which has already mpmath 1.1.0. So the > problem is not due to the version of mpmath. Maybe a Python 2 / Python 3 > issue? > >> >> Another data point: the issue is there in Sage 9.0.beta5 (Python 3). > >> >> > >> >> Eric. > >> >> > >> > > >> > -- > >> > 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/5a7d5bb4-c406-4b8f-a757-370578307ed1%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/2e9eea57-3558-426b-9dec-76c22a6547ea%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/e9324849-4998-4c91-a384-f3314f59ae46%40googlegroups.com.
Re: [sage-support] sage with python3, mpmath
yes, I'll do it вторник, 14 января 2020 г., 14:57:31 UTC+3 пользователь Dima Pasechnik написал: > > On Tue, Jan 14, 2020 at 11:53 AM Александр Ватузов > wrote: > > > > Will you open issue here? https://trac.sagemath.org/ > > I can't reproduce the issue with a system python 3.7.3, so it deserves > a trac ticket. > Can you open one? > > > > > Or I can try to do something > > > > вторник, 14 января 2020 г., 14:08:08 UTC+3 пользователь Dima Pasechnik > написал: > >> > >> I have opened https://github.com/fredrik-johansson/mpmath/issues/503 > >> to report this. > >> > >> On Tue, Jan 14, 2020 at 10:59 AM Eric Gourgoulhon > >> wrote: > >> > > >> > PS: a similar error has been reported on ask.sagemath: > https://ask.sagemath.org/question/49534/error-with-mpmathfindroot-on-89/ > >> > > >> > Le mardi 14 janvier 2020 11:55:08 UTC+1, Eric Gourgoulhon a écrit : > >> >> > >> >> Le mardi 14 janvier 2020 11:36:44 UTC+1, Dima Pasechnik a écrit : > >> >>> > >> >>> > >> >>> mpmath version on Sage 8.6 is 1.0.0, and later and now it is 1.1.0 > >> >>> > >> >>> This might explain the problem, which maybe should be reported > upstream: > >> >>> > >> >>> https://github.com/fredrik-johansson/mpmath > >> >>> > >> >> > >> >> > >> >> It's OK with Sage 8.9, which has already mpmath 1.1.0. So the > problem is not due to the version of mpmath. Maybe a Python 2 / Python 3 > issue? > >> >> Another data point: the issue is there in Sage 9.0.beta5 (Python 3). > >> >> > >> >> Eric. > >> >> > >> > > >> > -- > >> > 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/5a7d5bb4-c406-4b8f-a757-370578307ed1%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/2e9eea57-3558-426b-9dec-76c22a6547ea%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/4b5acda0-29d9-44b5-aaa5-cb60432a05d6%40googlegroups.com.
Re: [sage-support] sage with python3, mpmath
On Tue, Jan 14, 2020 at 11:53 AM Александр Ватузов wrote: > > Will you open issue here? https://trac.sagemath.org/ I can't reproduce the issue with a system python 3.7.3, so it deserves a trac ticket. Can you open one? > > Or I can try to do something > > вторник, 14 января 2020 г., 14:08:08 UTC+3 пользователь Dima Pasechnik > написал: >> >> I have opened https://github.com/fredrik-johansson/mpmath/issues/503 >> to report this. >> >> On Tue, Jan 14, 2020 at 10:59 AM Eric Gourgoulhon >> wrote: >> > >> > PS: a similar error has been reported on ask.sagemath: >> > https://ask.sagemath.org/question/49534/error-with-mpmathfindroot-on-89/ >> > >> > Le mardi 14 janvier 2020 11:55:08 UTC+1, Eric Gourgoulhon a écrit : >> >> >> >> Le mardi 14 janvier 2020 11:36:44 UTC+1, Dima Pasechnik a écrit : >> >>> >> >>> >> >>> mpmath version on Sage 8.6 is 1.0.0, and later and now it is 1.1.0 >> >>> >> >>> This might explain the problem, which maybe should be reported upstream: >> >>> >> >>> https://github.com/fredrik-johansson/mpmath >> >>> >> >> >> >> >> >> It's OK with Sage 8.9, which has already mpmath 1.1.0. So the problem is >> >> not due to the version of mpmath. Maybe a Python 2 / Python 3 issue? >> >> Another data point: the issue is there in Sage 9.0.beta5 (Python 3). >> >> >> >> Eric. >> >> >> > >> > -- >> > 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/5a7d5bb4-c406-4b8f-a757-370578307ed1%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/2e9eea57-3558-426b-9dec-76c22a6547ea%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/CAAWYfq1i%3Dq7ngvWPKN9N0NTqvFDQaDHZN2sKE2C44B6Kj9rmPA%40mail.gmail.com.
Re: [sage-support] sage with python3, mpmath
Will you open issue here? https://trac.sagemath.org/ Or I can try to do something вторник, 14 января 2020 г., 14:08:08 UTC+3 пользователь Dima Pasechnik написал: > > I have opened https://github.com/fredrik-johansson/mpmath/issues/503 > to report this. > > On Tue, Jan 14, 2020 at 10:59 AM Eric Gourgoulhon > > wrote: > > > > PS: a similar error has been reported on ask.sagemath: > https://ask.sagemath.org/question/49534/error-with-mpmathfindroot-on-89/ > > > > Le mardi 14 janvier 2020 11:55:08 UTC+1, Eric Gourgoulhon a écrit : > >> > >> Le mardi 14 janvier 2020 11:36:44 UTC+1, Dima Pasechnik a écrit : > >>> > >>> > >>> mpmath version on Sage 8.6 is 1.0.0, and later and now it is 1.1.0 > >>> > >>> This might explain the problem, which maybe should be reported > upstream: > >>> > >>> https://github.com/fredrik-johansson/mpmath > >>> > >> > >> > >> It's OK with Sage 8.9, which has already mpmath 1.1.0. So the problem > is not due to the version of mpmath. Maybe a Python 2 / Python 3 issue? > >> Another data point: the issue is there in Sage 9.0.beta5 (Python 3). > >> > >> Eric. > >> > > > > -- > > 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/5a7d5bb4-c406-4b8f-a757-370578307ed1%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/2e9eea57-3558-426b-9dec-76c22a6547ea%40googlegroups.com.
Re: [sage-support] sage with python3, mpmath
sory, this I had reported :) вторник, 14 января 2020 г., 13:59:50 UTC+3 пользователь Eric Gourgoulhon написал: > > PS: a similar error has been reported on ask.sagemath: > https://ask.sagemath.org/question/49534/error-with-mpmathfindroot-on-89/ > > Le mardi 14 janvier 2020 11:55:08 UTC+1, Eric Gourgoulhon a écrit : >> >> Le mardi 14 janvier 2020 11:36:44 UTC+1, Dima Pasechnik a écrit : >>> >>> >>> mpmath version on Sage 8.6 is 1.0.0, and later and now it is 1.1.0 >>> >>> This might explain the problem, which maybe should be reported upstream: >>> >>> https://github.com/fredrik-johansson/mpmath >>> >>> >> >> It's OK with Sage 8.9, which has already mpmath 1.1.0. So the problem is >> not due to the version of mpmath. Maybe a Python 2 / Python 3 issue? >> Another data point: the issue is there in Sage 9.0.beta5 (Python 3). >> >> Eric. >> >> > -- 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/696d4545-6021-41cd-bc1d-ae926e43d395%40googlegroups.com.
[sage-support] Re: sage with python3, mpmath
update: mpmath works correct on Python 3.6.9 (no sage) вторник, 14 января 2020 г., 13:11:34 UTC+3 пользователь Александр Ватузов написал: > > I have a problem with sage on python3, example sage9.0 > > simple code: > > import mpmath > mpmath.mp.prec = 1000 #on 700 all is ok > mpmath.findroot(lambda x: x^2 - 3, 2) > > error: > ) failed: > SystemError: returned a result with an error set> > > Somebody else has this error? I will check on simple mpmath. > -- 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/bdb40162-1504-41a4-a68d-8a32954df60d%40googlegroups.com.
Re: [sage-support] sage with python3, mpmath
I have opened https://github.com/fredrik-johansson/mpmath/issues/503 to report this. On Tue, Jan 14, 2020 at 10:59 AM Eric Gourgoulhon wrote: > > PS: a similar error has been reported on ask.sagemath: > https://ask.sagemath.org/question/49534/error-with-mpmathfindroot-on-89/ > > Le mardi 14 janvier 2020 11:55:08 UTC+1, Eric Gourgoulhon a écrit : >> >> Le mardi 14 janvier 2020 11:36:44 UTC+1, Dima Pasechnik a écrit : >>> >>> >>> mpmath version on Sage 8.6 is 1.0.0, and later and now it is 1.1.0 >>> >>> This might explain the problem, which maybe should be reported upstream: >>> >>> https://github.com/fredrik-johansson/mpmath >>> >> >> >> It's OK with Sage 8.9, which has already mpmath 1.1.0. So the problem is not >> due to the version of mpmath. Maybe a Python 2 / Python 3 issue? >> Another data point: the issue is there in Sage 9.0.beta5 (Python 3). >> >> Eric. >> > > -- > 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/5a7d5bb4-c406-4b8f-a757-370578307ed1%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/CAAWYfq2j%2BNSQU6XhQ-85L0fbVTVqLp8Y4aLXX8ryQNvZVyBRzg%40mail.gmail.com.
Re: [sage-support] sage with python3, mpmath
It could be Python3, indeed. I see, on "pure" sage 9.0 python3: >>> import mpmath >>> mpmath.mp.prec = 1000 #on 700 all is ok >>> mpmath.findroot(lambda x: x**2 - 3, 2) # must use ** for exponentiation - >>> pure Python OverflowError: Python int too large to convert to C long The above exception was the direct cause of the following exception: Traceback (most recent call last): File "", line 1, in File "sage/libs/mpmath/ext_main.pyx", line 1690, in sage.libs.mpmath.ext_main.mpf_base.__repr__ (build/cythonized/sage/libs/mpmath/ext_main.c:21294) File "/home/scratch2/dimpase/sage/sage/local/lib/python3.7/site-packages/mpmath/libmp/libmpf.py", line 1242, in to_str sign, digits, exponent = to_digits_exp(s, dps+3) File "/home/scratch2/dimpase/sage/sage/local/lib/python3.7/site-packages/mpmath/libmp/libmpf.py", line 1200, in to_digits_exp digits = numeral(sd, base=10, size=dps) File "/home/scratch2/dimpase/sage/sage/local/lib/python3.7/site-packages/mpmath/libmp/libintmath.py", line 158, in numeral_python A, B = divmod(n, base**half) SystemError: returned a result with an error set On Tue, Jan 14, 2020 at 10:55 AM Eric Gourgoulhon wrote: > > Le mardi 14 janvier 2020 11:36:44 UTC+1, Dima Pasechnik a écrit : >> >> >> mpmath version on Sage 8.6 is 1.0.0, and later and now it is 1.1.0 >> >> This might explain the problem, which maybe should be reported upstream: >> >> https://github.com/fredrik-johansson/mpmath >> > > > It's OK with Sage 8.9, which has already mpmath 1.1.0. So the problem is not > due to the version of mpmath. Maybe a Python 2 / Python 3 issue? > Another data point: the issue is there in Sage 9.0.beta5 (Python 3). > > Eric. > > > -- > 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/5d8b20d9-66b7-41e8-af08-6e3c82374856%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/CAAWYfq1MPr-m6X%2Bi_JH02Ja%3D9CEAx2j%3DwmzHzmhJKtP8LPierw%40mail.gmail.com.
Re: [sage-support] sage with python3, mpmath
PS: a similar error has been reported on ask.sagemath: https://ask.sagemath.org/question/49534/error-with-mpmathfindroot-on-89/ Le mardi 14 janvier 2020 11:55:08 UTC+1, Eric Gourgoulhon a écrit : > > Le mardi 14 janvier 2020 11:36:44 UTC+1, Dima Pasechnik a écrit : >> >> >> mpmath version on Sage 8.6 is 1.0.0, and later and now it is 1.1.0 >> >> This might explain the problem, which maybe should be reported upstream: >> >> https://github.com/fredrik-johansson/mpmath >> >> > > It's OK with Sage 8.9, which has already mpmath 1.1.0. So the problem is > not due to the version of mpmath. Maybe a Python 2 / Python 3 issue? > Another data point: the issue is there in Sage 9.0.beta5 (Python 3). > > Eric. > > -- 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/5a7d5bb4-c406-4b8f-a757-370578307ed1%40googlegroups.com.
Re: [sage-support] sage with python3, mpmath
Le mardi 14 janvier 2020 11:36:44 UTC+1, Dima Pasechnik a écrit : > > > mpmath version on Sage 8.6 is 1.0.0, and later and now it is 1.1.0 > > This might explain the problem, which maybe should be reported upstream: > > https://github.com/fredrik-johansson/mpmath > > It's OK with Sage 8.9, which has already mpmath 1.1.0. So the problem is not due to the version of mpmath. Maybe a Python 2 / Python 3 issue? Another data point: the issue is there in Sage 9.0.beta5 (Python 3). Eric. -- 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/5d8b20d9-66b7-41e8-af08-6e3c82374856%40googlegroups.com.
Re: [sage-support] sage with python3, mpmath
On Tue, Jan 14, 2020 at 10:18 AM Jan Groenewald wrote: > > Hi > > On Tue, 14 Jan 2020 at 12:11, Александр Ватузов wrote: >> >> I have a problem with sage on python3, example sage9.0 >> >> simple code: >> >> import mpmath >> mpmath.mp.prec = 1000 #on 700 all is ok >> mpmath.findroot(lambda x: x^2 - 3, 2) >> >> error: >> ) failed: >> SystemError: returned a result with an error set> >> >> Somebody else has this error? I will check on simple mpmath. > > > No error on sage 8.6; yes same error on sage 9.0 (Debian 10). > mpmath version on Sage 8.6 is 1.0.0, and later and now it is 1.1.0 This might explain the problem, which maybe should be reported upstream: https://github.com/fredrik-johansson/mpmath > Regards, > Jan > > > -- > .~. > /V\ Jan Groenewald > /( )\www.aims.ac.za > ^^-^^ > > -- > 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/CAAg%3Dp_0e6_fuCngtYa5LA1TteUH0KqQa5bukPbSGd%2BfypUMPVA%40mail.gmail.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/CAAWYfq2tofrfCxSOLJZ3%3Dw9XU44r17rRDXozRQpM-OGA%3DO%2BdhQ%40mail.gmail.com.
Re: [sage-support] sage with python3, mpmath
Hi On Tue, 14 Jan 2020 at 12:11, Александр Ватузов wrote: > I have a problem with sage on python3, example sage9.0 > > simple code: > > import mpmath > mpmath.mp.prec = 1000 #on 700 all is ok > mpmath.findroot(lambda x: x^2 - 3, 2) > > error: > ) failed: > SystemError: returned a result with an error set> > > Somebody else has this error? I will check on simple mpmath. > No error on sage 8.6; yes same error on sage 9.0 (Debian 10). Regards, Jan -- .~. /V\ Jan Groenewald /( )\www.aims.ac.za ^^-^^ -- 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/CAAg%3Dp_0e6_fuCngtYa5LA1TteUH0KqQa5bukPbSGd%2BfypUMPVA%40mail.gmail.com.
[sage-support] sage with python3, mpmath
I have a problem with sage on python3, example sage9.0 simple code: import mpmath mpmath.mp.prec = 1000 #on 700 all is ok mpmath.findroot(lambda x: x^2 - 3, 2) error: ) failed: SystemError: returned a result with an error set> Somebody else has this error? I will check on simple mpmath. -- 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/2ac9f845-0faa-4ead-82a2-14b815303425%40googlegroups.com.