Thanks, I tried that and it didn't work. I also tried cloning the matplotlib repository in git and adding the following to setup.py
os.environ['CC'] = clang os.environ['OBJC'] = clang Build and installation ran successfully, but when I try to use matplotlib I get the following terminate called after throwing an instance of 'std::runtime_error' what(): Could not set the fontsize ------------------------------------------------------------------------ 0 signals.so 0x000000010afdef85 print_backtrace + 37 ------------------------------------------------------------------------ Unhandled SIGABRT: An abort() occurred. This probably occurred because a *compiled* module has a bug in it and is not properly wrapped with sig_on(), sig_off(). Python will now terminate. ------------------------------------------------------------------------ I am not sure what I else I can try... On Friday, November 10, 2017 at 11:38:24 AM UTC-8, François Bissey wrote: > > This complains about objective-C. Try > CC=clang OBJC=clang > > François > > On Friday, November 10, 2017 at 12:35:48 PM UTC+13, Ahmed Allibhoy wrote: >> >> 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.