1
0
-1
Installing matplotlib 1.3.1+2 for generic... BUILD ERROR! From build log: cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ In file included from /home/rgm/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1777, from /home/rgm/local/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:18, from /home/rgm/local/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4, from src/_png.cpp:28: etc maybe I just need to upgrade numpy
    CommentAdd your comment...

    3 answers

    1.  
      2
      1
      0

      Richard, you seem to be building against your system's numpy and not against the eups-provided numpy. You do not need to install numpy, eups will do it for you.

      Make sure that your you are sourcing the right $EUPS_DIR/desdm_eups_setup.sh (csh) and that your $PYTHONPATH is not being modified afterwards.

      1. Matias Carrasco Kind

        I agree, sometime having a separate profile with a clean path can help. with eups, it shouldn't be a problem to install easyaccess. 

      2. Richard McMahon

        I did a reinstall:

        eups distrib install --force easyaccess 1.3.1+1

        Now I get:

        rgm@calx154(~){727}> easyaccess

        RuntimeError: module compiled against API version a but this version of numpy is 9

        Traceback (most recent call last):

          File "/data/vault/rgm/soft/des/DESDM/eups/packages/Linux64/easyaccess/1.3.1+1/bin/easyaccess", line 37, in <module>

            from version import __version__

        ImportError: No module named version

         

        rgm@calx154(~){728}> python

        Python 2.7.6 (default, Aug 26 2016, 17:40:49)

        [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on linux2

        Type "help", "copyright", "credits" or "license" for more information.

        >>> import numpy

        >>> help(numpy)

         

        Help on package numpy:

         

        NAME

            numpy

         

        FILE

            /data/vault/rgm/soft/des/DESDM/eups/packages/Linux64/numpy/1.9.1+2/lib/python2.7/site-packages/numpy/__init__.py

         

         

         

         

         

         

      CommentAdd your comment...
    2.  
      1
      0
      -1

      Hi Felipe, yes, it was my PYTHONPATH.

      I have returned to this and I have got it to work;

      This is the initial state of my shell:

      rgm@calx067(~){542}> which python
      /opt/ioa/software/python/2.7.8/bin/python
      rgm@calx067(~){543}> echo $PYTHONPATH
      /home/rgm/local/lib/python2.7/site-packages:/data/vault/rgm/soft/des/DESDM/eups/1.2.30/python

      So, I cleared my PYTHONPATH

      rgm@calx067(~){544}> unset PYTHONPATH


      setup -v --nolocks easyaccess 1.3.1+1

      easyaccess then worked.

       

        CommentAdd your comment...
      1.  
        1
        0
        -1

        Hi Richard, it still looks like you have issues with your $PYTHONPATH. As you are loading the system's Python and the EUPS one. BTW, you do not need to to do a --force, unless you want to re-install a successfully-installed package.

          CommentAdd your comment...