Quantcast

matplotlib on solaris 11.2/11.3 both intel and sparc

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

matplotlib on solaris 11.2/11.3 both intel and sparc

Gilberto Persico
This post has NOT been accepted by the mailing list yet.
Hi all,
I'm a newbie with matplotlib and python so forgive me for any mainstream error, but I cannot install and use matplotlib on Solaris 11.2/11.3 both on SPARC and x64.

I've built myself Python 3.4 on the above platforms and works pretty well; before introducing matplotlib in my code, my tkinter app was working seamlessly, even using pyinstaller.

When trying to do pip3 install matplotlib (version is 2.0.0)  this is what i get on a Solaris 11.3 x64 machine:

OMISSIS...
    gcc -m64 -fpic -Wno-unused-result -DNDEBUG -g -O3 -Wall -m64 -fpic -fPIC -DPY_ARRAY_UNIQUE_SYMBOL=MPL_matplotlib__image_ARRAY_API -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -D__STDC_FORMAT_MACROS=1 -I/usr/pkg/lib/python3.4/site-packages/numpy/core/include -I/usr/local/include -I. -Iextern/agg24-svn/include -I/usr/pkg/include/python3.4m -c src/_image_wrapper.cpp -o build/temp.solaris-2.11-i86pc.64bit-3.4/src/_image_wrapper.o
    In file included from src/_backend_agg_basic_types.h:11:0,
                     from src/py_converters.h:18,
                     from src/_image_wrapper.cpp:4:
    src/path_converters.h: In member function ‘unsigned int PathNanRemover<VertexSource>::vertex(double*, double*)’:
    src/path_converters.h:215:35: error: ‘isfinite’ is not a member of ‘std’
                     bool has_nan = (!(std::isfinite(*x) && std::isfinite(*y)));
                                       ^
    src/path_converters.h:215:56: error: ‘isfinite’ is not a member of ‘std’
                     bool has_nan = (!(std::isfinite(*x) && std::isfinite(*y)));
                                                            ^
    src/path_converters.h:222:44: error: ‘isfinite’ is not a member of ‘std’
                         has_nan = has_nan || !(std::isfinite(*x) && std::isfinite(*y));
                                                ^
    src/path_converters.h:222:65: error: ‘isfinite’ is not a member of ‘std’
                         has_nan = has_nan || !(std::isfinite(*x) && std::isfinite(*y));
                                                                     ^
    src/path_converters.h:235:21: error: ‘isfinite’ is not a member of ‘std’
                     if (std::isfinite(*x) && std::isfinite(*y)) {
                         ^
    src/path_converters.h:235:42: error: ‘isfinite’ is not a member of ‘std’
                     if (std::isfinite(*x) && std::isfinite(*y)) {
                                              ^
    src/path_converters.h:258:19: error: ‘isfinite’ is not a member of ‘std’
                 if (!(std::isfinite(*x) && std::isfinite(*y))) {
                       ^
    src/path_converters.h:258:40: error: ‘isfinite’ is not a member of ‘std’
                 if (!(std::isfinite(*x) && std::isfinite(*y))) {
                                            ^
    src/path_converters.h:265:28: error: ‘isfinite’ is not a member of ‘std’
                     } while (!(std::isfinite(*x) && std::isfinite(*y)));
                                ^
    src/path_converters.h:265:49: error: ‘isfinite’ is not a member of ‘std’
                     } while (!(std::isfinite(*x) && std::isfinite(*y)));
                                                     ^
    error: command 'gcc' failed with exit status 1
   
    ----------------------------------------
Command "/usr/pkg/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-fjs8o0g_/matplotlib/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-9sc35l8_-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-fjs8o0g_/matplotlib/

This is using bundled gcc:
unixman@sashagrey:~$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/gcc/4.8/lib/gcc/i386-pc-solaris2.11/4.8.2/lto-wrapper
Target: i386-pc-solaris2.11
Configured with: /builds/hudson/workspace/nightly-update/build/i386/components/gcc48/gcc-4.8.2/configure CC=/usr/gcc/4.7/bin/gcc CXX=/usr/gcc/4.7/bin/g++ --prefix=/usr/gcc/4.8 --mandir=/usr/gcc/4.8/share/man --bindir=/usr/gcc/4.8/bin --libdir=/usr/gcc/4.8/lib --sbindir=/usr/gcc/4.8/sbin --infodir=/usr/gcc/4.8/share/info --libexecdir=/usr/gcc/4.8/lib --enable-languages=c,c++,fortran,objc --enable-shared --with-gmp-include=/usr/include/gmp --with-mpfr-include=/usr/include/mpfr --without-gnu-ld --with-ld=/usr/bin/ld --with-gnu-as --with-as=/usr/gnu/bin/as CFLAGS='-g -O2  -mtune=opteron -march=opteron' CXXFLAGS='-g -O2 -mtune=opteron -march=opteron'
Thread model: posix
gcc version 4.8.2 (GCC)

Can someone please provide some suggestion ? Numpy installed smoothly.

TIA
gilberto
Loading...