[sage-support] Building matplotlib on OSX

2017-11-09 Thread Ahmed Allibhoy
Hi, 

I am trying to install matplotlib's osx backend for interactive using

sage -pip install -U matplotlib 

but it fails with the following error:

building 'matplotlib.backends._macosx' extension
gcc -fno-strict-aliasing 
-I/Applications/SageMath/local/var/tmp/sage/build/python2-2.7.13.p1/include 
-DNDEBUG -g -fwrapv -O3 -Wall -Wno-unused -I/usr/local/include 
-I/usr/include -I/usr/X11/include -I/opt/X11/include -I. 
-I/Applications/SageMath/local/include/python2.7 -c src/_macosx.m -o 
build/temp.macosx-10.9-x86_64-2.7/src/_macosx.o
gcc: error: src/_macosx.m: Objective-C compiler not installed on this 
system
error: command 'gcc' failed with exit status 1

I suspect that this is due to the use of gcc for compilation rather than 
clang, but setting the environment variable CC=clang doesn't fix the issue. 
Does anyone know of a workaround?

Thanks.

-- 
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Sage matplotlib OSX

2017-11-09 Thread Ahmed Allibhoy
Hi, 

I am trying to install matplotlib on sage with the OSX backend so I can get 
interactive plots. Using

sage -pip install -U matplotlib 

fails with the error:

building 'matplotlib.backends._macosx' extension
gcc -fno-strict-aliasing 
-I/Applications/SageMath/local/var/tmp/sage/build/python2-2.7.13.p1/include 
-DNDEBUG -g -fwrapv -O3 -Wall -Wno-unused -I/usr/local/include 
-I/usr/include -I/usr/X11/include -I/opt/X11/include -I. 
-I/Applications/SageMath/local/include/python2.7 -c src/_macosx.m -o 
build/temp.macosx-10.9-x86_64-2.7/src/_macosx.o
gcc: error: src/_macosx.m: Objective-C compiler not installed on this 
system
error: command 'gcc' failed with exit status 1

I suspect that this is due to using gcc rather than clang to compile 
matplotlib. Setting CC=clang doesn't fix the issue, however, and I am 
unsure of how to build using clang. Does anyone know of a work around?

-- 
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: Error with simple integral, "CEXPT only defined for non-negative integral exponents."

2017-11-09 Thread Robert Dodier
On 2017-11-09, Ralf Stephan  wrote:

> On Tuesday, November 7, 2017 at 6:06:05 PM UTC+1, saad khalid wrote:
>> integral(525.87*(x)^(-2.35),x,.1,1)

> This is user error because this works fine:
>
> sage: integral(52587/100*(x)^(-235/100),x,.1,1)
> 8331.031741769872
>
> Never use inexact values in integral terms.

Well, some experimentation shows that with keepfloat = false (the
default), it works OK. But keepfloat = true (as in Sage) it bumps into
this error.

keepfloat causes trouble in other places too ... every now and then I
think we (Maxima project) should dump it.

best

Robert Dodier

-- 
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.