Re: [sage-support] Re: failure to re-install ipython

2019-10-25 Thread Dima Pasechnik
On Fri, 25 Oct 2019, 20:00 John H Palmieri,  wrote:

>
>
> On Friday, October 25, 2019 at 2:59:36 AM UTC-7, Dima Pasechnik wrote:
>>
>> in the Sage 9.0.beta2 I get
>> 
>> [ipython-5.8.0] Successfully installed ipython-5.8.0
>> [ipython-5.8.0] Cleaning up...
>> [ipython-5.8.0] Removed build tracker '/tmp/pip-req-tracker-h6h22jg5'
>> [ipython-5.8.0]
>> [ipython-5.8.0] real 0m2.424s
>> [ipython-5.8.0] user 0m2.136s
>> [ipython-5.8.0] sys 0m0.398s
>> [ipython-5.8.0] Copying package files from temporary location
>> /mnt/opt/Sage/sage-dev/local/var/tmp/sage/build/ipython-5.8.0/inst to
>> /mnt/opt/Sage/sage-dev/local
>> [ipython-5.8.0] cp: not writing through dangling symlink
>> '/mnt/opt/Sage/sage-dev/local/./bin/ipython'
>> [ipython-5.8.0]
>> 
>> [ipython-5.8.0] Error copying files for ipython-5.8.0.
>>
>> 
>>
>> I had to apply
>>
>> diff --git a/build/pkgs/ipython/spkg-install
>> b/build/pkgs/ipython/spkg-install
>> index 07a28f951c..dd2fcdc698 100644
>> --- a/build/pkgs/ipython/spkg-install
>> +++ b/build/pkgs/ipython/spkg-install
>> @@ -4,6 +4,7 @@ if [ "$SAGE_LOCAL" = "" ]; then
>> exit 1
>>  fi
>>
>> +rm -f "$SAGE_LOCAL"/bin/ipython*
>>  cd src
>>
>>  sdh_pip_install .
>> @@ -12,10 +13,3 @@ if [ $? -ne 0 ]; then
>>  echo >&2 "Error installing IPython"
>>  exit 1
>>  fi
>> -
>> -# add symlink if we are running on python3
>> -if python -c 'import sys; sys.exit(sys.version_info.major != 3)'; then
>> -cd "$SAGE_LOCAL"/bin
>> -rm -f ipython
>> -ln -s ipython3 ipython
>> -fi
>>
>> to make it build. In particular the last chunk removed by this patch
>> looks as something outdated.
>>
>> Any ideas?
>>
>
> I just saw this problem today, too. I agree that the last chunk looks
> outdated.
>
> Just curious: what platform is this?
>

Gentoo Linux

>
> --
> John
>
> --
> 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/b0be0cf0-7d8d-4d4b-b03a-e4a1db92611e%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/CAAWYfq1JOnpqaa3De6pWysCZ7gaxZfUQaAp_yricoWn7%2BKLMRQ%40mail.gmail.com.


[sage-support] Re: failure to re-install ipython

2019-10-25 Thread John H Palmieri


On Friday, October 25, 2019 at 2:59:36 AM UTC-7, Dima Pasechnik wrote:
>
> in the Sage 9.0.beta2 I get 
>  
> [ipython-5.8.0] Successfully installed ipython-5.8.0 
> [ipython-5.8.0] Cleaning up... 
> [ipython-5.8.0] Removed build tracker '/tmp/pip-req-tracker-h6h22jg5' 
> [ipython-5.8.0] 
> [ipython-5.8.0] real 0m2.424s 
> [ipython-5.8.0] user 0m2.136s 
> [ipython-5.8.0] sys 0m0.398s 
> [ipython-5.8.0] Copying package files from temporary location 
> /mnt/opt/Sage/sage-dev/local/var/tmp/sage/build/ipython-5.8.0/inst to 
> /mnt/opt/Sage/sage-dev/local 
> [ipython-5.8.0] cp: not writing through dangling symlink 
> '/mnt/opt/Sage/sage-dev/local/./bin/ipython' 
> [ipython-5.8.0] 
>  
> [ipython-5.8.0] Error copying files for ipython-5.8.0. 
>
>  
>
> I had to apply 
>
> diff --git a/build/pkgs/ipython/spkg-install 
> b/build/pkgs/ipython/spkg-install 
> index 07a28f951c..dd2fcdc698 100644 
> --- a/build/pkgs/ipython/spkg-install 
> +++ b/build/pkgs/ipython/spkg-install 
> @@ -4,6 +4,7 @@ if [ "$SAGE_LOCAL" = "" ]; then 
> exit 1 
>  fi 
>
> +rm -f "$SAGE_LOCAL"/bin/ipython* 
>  cd src 
>
>  sdh_pip_install . 
> @@ -12,10 +13,3 @@ if [ $? -ne 0 ]; then 
>  echo >&2 "Error installing IPython" 
>  exit 1 
>  fi 
> - 
> -# add symlink if we are running on python3 
> -if python -c 'import sys; sys.exit(sys.version_info.major != 3)'; then 
> -cd "$SAGE_LOCAL"/bin 
> -rm -f ipython 
> -ln -s ipython3 ipython 
> -fi 
>
> to make it build. In particular the last chunk removed by this patch 
> looks as something outdated. 
>
> Any ideas? 
>

I just saw this problem today, too. I agree that the last chunk looks 
outdated. 

Just curious: what platform is this? 

-- 
John

-- 
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/b0be0cf0-7d8d-4d4b-b03a-e4a1db92611e%40googlegroups.com.


[sage-support] Re: Possible bug in integrate ?

2019-10-25 Thread Emmanuel Charpentier
This now Trac#28656 .

HTH,


Le vendredi 25 octobre 2019 18:21:48 UTC+2, Nils Bruin a écrit :
>
> On Friday, October 25, 2019 at 3:27:42 AM UTC-7, Emmanuel Charpentier 
> wrote:
>>
>> Thanks a lot ! That's perfectly clear...
>>
>> Any hints on how to file a ticket for this issue ?
>>
>> The minimal example excellently shows the problem, so including that 
> would be great. It's easy to find the problematic code from it. Referencing 
> this google groups thread and the ask.sagemath question is probably good 
> too. And put forward references to the ticket at those places too, just to 
> fully document.
>
> Component can be symbolics, I think. Priority "major" seems fine too.
>
> (the ticket filing itself would happen at trac.sagemath.org, but I think 
> you know that)
>

-- 
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/c4944123-dcb0-4782-96bf-f526fa71e068%40googlegroups.com.


[sage-support] Re: Possible bug in integrate ?

2019-10-25 Thread Nils Bruin
On Friday, October 25, 2019 at 3:27:42 AM UTC-7, Emmanuel Charpentier wrote:
>
> Thanks a lot ! That's perfectly clear...
>
> Any hints on how to file a ticket for this issue ?
>
> The minimal example excellently shows the problem, so including that would 
be great. It's easy to find the problematic code from it. Referencing this 
google groups thread and the ask.sagemath question is probably good too. 
And put forward references to the ticket at those places too, just to fully 
document.

Component can be symbolics, I think. Priority "major" seems fine too.

(the ticket filing itself would happen at trac.sagemath.org, but I think 
you know that)

-- 
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/699b670c-334e-4132-a447-db9a5cd34439%40googlegroups.com.


[sage-support] Re: Possible bug in integrate ?

2019-10-25 Thread Emmanuel Charpentier
Thanks a lot ! That's perfectly clear...

Any hints on how to file a ticket for this issue ?

Le vendredi 25 octobre 2019 10:20:26 UTC+2, Nils Bruin a écrit :
>
> Yes, that's a bug. It happens in F(x).operator()._tderivative_ It 
> differentiates the bounds in case those vary with the differentiation 
> variable, and that does not work for "0". If you define
>
> var('y')
> F(x)=integrate(f(t),y,x)
>
> you get the right result (with y not being a function of t).
>
> The bounds should be checked for being constants before being 
> differentiated.
>
>

-- 
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/d21f3405-07ba-4d0f-a9a5-1660c7241d98%40googlegroups.com.


[sage-support] failure to re-install ipython

2019-10-25 Thread Dima Pasechnik
in the Sage 9.0.beta2 I get

[ipython-5.8.0] Successfully installed ipython-5.8.0
[ipython-5.8.0] Cleaning up...
[ipython-5.8.0] Removed build tracker '/tmp/pip-req-tracker-h6h22jg5'
[ipython-5.8.0]
[ipython-5.8.0] real 0m2.424s
[ipython-5.8.0] user 0m2.136s
[ipython-5.8.0] sys 0m0.398s
[ipython-5.8.0] Copying package files from temporary location
/mnt/opt/Sage/sage-dev/local/var/tmp/sage/build/ipython-5.8.0/inst to
/mnt/opt/Sage/sage-dev/local
[ipython-5.8.0] cp: not writing through dangling symlink
'/mnt/opt/Sage/sage-dev/local/./bin/ipython'
[ipython-5.8.0]

[ipython-5.8.0] Error copying files for ipython-5.8.0.



I had to apply

diff --git a/build/pkgs/ipython/spkg-install b/build/pkgs/ipython/spkg-install
index 07a28f951c..dd2fcdc698 100644
--- a/build/pkgs/ipython/spkg-install
+++ b/build/pkgs/ipython/spkg-install
@@ -4,6 +4,7 @@ if [ "$SAGE_LOCAL" = "" ]; then
exit 1
 fi

+rm -f "$SAGE_LOCAL"/bin/ipython*
 cd src

 sdh_pip_install .
@@ -12,10 +13,3 @@ if [ $? -ne 0 ]; then
 echo >&2 "Error installing IPython"
 exit 1
 fi
-
-# add symlink if we are running on python3
-if python -c 'import sys; sys.exit(sys.version_info.major != 3)'; then
-cd "$SAGE_LOCAL"/bin
-rm -f ipython
-ln -s ipython3 ipython
-fi

to make it build. In particular the last chunk removed by this patch
looks as something outdated.

Any ideas?

Dima

-- 
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/CAAWYfq37yPCcoRSCi8hcCisEgQpRg8UA-f23r8rocuZPZSzrjg%40mail.gmail.com.


[sage-support] Re: Possible bug in integrate ?

2019-10-25 Thread Nils Bruin
Yes, that's a bug. It happens in F(x).operator()._tderivative_ It 
differentiates the bounds in case those vary with the differentiation 
variable, and that does not work for "0". If you define

var('y')
F(x)=integrate(f(t),y,x)

you get the right result (with y not being a function of t).

The bounds should be checked for being constants before being 
differentiated.

-- 
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/2c81211f-c71e-4b00-be05-97c6edb790e1%40googlegroups.com.


[sage-support] Possible bug in integrate ?

2019-10-25 Thread Emmanuel Charpentier
Inspired by this ask.sagemath question 
. 
Minimal case is

sage: f=function("f")
sage: F(x)=integrate(f(t),t,0,x)
sage: diff(F(x),x)
---
AttributeErrorTraceback (most recent call last)
 in ()
> 1 diff(F(x),x)

/usr/local/sage-P3-2/local/lib/python3.7/site-packages/sage/calculus/functional.py
 
in derivative(f, *args, **kwds)
134 if not isinstance(f, Expression):
135 f = SR(f)
--> 136 return f.derivative(*args, **kwds)
137 
138 diff = derivative

/usr/local/sage-P3-2/local/lib/python3.7/site-packages/sage/symbolic/expression.pyx
 
in sage.symbolic.expression.Expression.derivative 
(build/cythonized/sage/symbolic/expression.cpp:25543)()
   4172 ValueError: No differentiation variable specified.
   4173 """
-> 4174 return multi_derivative(self, args)
   4175 
   4176 diff = differentiate = derivative

/usr/local/sage-P3-2/local/lib/python3.7/site-packages/sage/misc/derivative.pyx 
in sage.misc.derivative.multi_derivative 
(build/cythonized/sage/misc/derivative.c:3118)()
220 
221 for arg in derivative_parse(args):
--> 222 F = F._derivative(arg)
223 return F
224 

/usr/local/sage-P3-2/local/lib/python3.7/site-packages/sage/symbolic/expression.pyx
 
in sage.symbolic.expression.Expression._derivative 
(build/cythonized/sage/symbolic/expression.cpp:26060)()
   4244 sig_on()
   4245 try:
-> 4246 x = self._gobj.diff(ex_to_symbol(symbol._gobj), deg)
   4247 finally:
   4248 sig_off()

/usr/local/sage-P3-2/local/lib/python3.7/site-packages/sage/symbolic/integration/integral.py
 
in _tderivative_(self, f, x, a, b, diff_param)
254 ans = SR.zero()
255 return (ans + f.subs(x == b) * b.diff(diff_param)
--> 256 - f.subs(x == a) * a.diff(diff_param))
257 
258 def _print_latex_(self, f, x, a, b):

/usr/local/sage-P3-2/local/lib/python3.7/site-packages/sage/structure/element.pyx
 
in sage.structure.element.Element.__getattr__ 
(build/cythonized/sage/structure/element.c:4608)()
487 AttributeError: 
'LeftZeroSemigroup_with_category.element_class' object has no attribute 
'blah_blah'
488 """
--> 489 return self.getattr_from_category(name)
490 
491 cdef getattr_from_category(self, name):

/usr/local/sage-P3-2/local/lib/python3.7/site-packages/sage/structure/element.pyx
 
in sage.structure.element.Element.getattr_from_category 
(build/cythonized/sage/structure/element.c:4717)()
500 else:
501 cls = P._abstract_element_class
--> 502 return getattr_from_other_class(self, cls, name)
503 
504 def __dir__(self):

/usr/local/sage-P3-2/local/lib/python3.7/site-packages/sage/cpython/getattr.pyx 
in sage.cpython.getattr.getattr_from_other_class 
(build/cythonized/sage/cpython/getattr.c:2614)()
392 dummy_error_message.cls = type(self)
393 dummy_error_message.name = name
--> 394 raise AttributeError(dummy_error_message)
395 attribute = attr
396 # Check for a descriptor (__get__ in Python)

AttributeError: 'sage.rings.rational.Rational' object has no attribute 
'diff'

I donot understand this error, and I expected to see sometning along the 
lines of f(x)...

 

-- 
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/7f3f4ea7-5203-40b4-a344-0fcdd49643de%40googlegroups.com.