[lsst-dm-stack-users] Trying out the Anaconda python with a RHEL6 installation

Heather Kelly heather at slac.stanford.edu
Fri Feb 7 09:09:49 PST 2014


Hi Chris,

Thanks for the tip!

If I do:
bash-4.1$ conda list numpy
# packages in environment at
/astro/astronfs01/workarea/lsst/software/anaconda/1.8.0:
#
numpy                     1.7.1                    py27_0


I'm trying Winter 2013 (as that has been the version we've stuck with
for awhile)..and it does seem to be set up to use numpy 1.6.  I'm
thinking I need to move to Summer2013...   I'll try that
now and cross my fingers.

Take care,
Heather

On 2/7/2014 12:01 PM, Chris Walter wrote:
> Hi Heather,
>
>> Ok.. so here's the real issue I think..  when I go to run one of our
>> scripts that uses scipy, I receive an error:
>>
>> RuntimeError: module compiled against API version 7 but this version of
>> numpy is 6
> I went ahead and built everything on our RHEL6 system yesterday using anaconda 1.8 and Summer2013.  I saw this too, and for me it was a bug in the anaconda system.
>
> I did a 'conda update ananconda' after I finished and it downgraded the numpy version for some reason.  It seems to be some bug related to their package system now.  See here:
>
> Here is a bug report of someone else who saw it:
>
> https://groups.google.com/a/continuum.io/forum/#!topic/conda/xigGqdqeHfw
>
> Since I compiled DM with the python version before I did this (numpy version 2.7) I got this error.  In the end, I wiped out and re-downloaded Anaconda and it started working again.  
>
> So check that you have the right version by doing a 
>
> conda list numpy
>
> and see if you have the same problem.
>
> -Chris
>
>
>
>> Traceback (most recent call last):
>>  File
>> "/astro/astronfs01/workarea/lsst/software/lsstCameraSensor/eotest/bin/run_sims.py",
>> line 13, in <module>
>>    from lsst.eotest.sensor.PhotodiodeResponse \
>>  File
>> "/astro/astronfs01/workarea/lsst/software/lsstCameraSensor/eotest/python/lsst/eotest/sensor/__init__.py",
>> line 9, in <module>
>>    from fe55_psf import PsfGaussFit
>>  File
>> "/astro/astronfs01/workarea/lsst/software/lsstCameraSensor/eotest/python/lsst/eotest/sensor/fe55_psf.py",
>> line 10, in <module>
>>    import scipy.optimize
>>  File
>> "/astro/astronfs01/workarea/lsst/software/anaconda/1.8.0/lib/python2.7/site-packages/scipy/optimize/__init__.py",
>> line 146, in <module>
>>    from .optimize import *
>>  File
>> "/astro/astronfs01/workarea/lsst/software/anaconda/1.8.0/lib/python2.7/site-packages/scipy/optimize/optimize.py",
>> line 35, in <module>
>>    from .linesearch import (line_search_BFGS, line_search_wolfe1,
>>  File
>> "/astro/astronfs01/workarea/lsst/software/anaconda/1.8.0/lib/python2.7/site-packages/scipy/optimize/linesearch.py",
>> line 16, in <module>
>>    from scipy.optimize import minpack2
>> ImportError: numpy.core.multiarray failed to import
>>
>>
>> Anaconda came along with numpy 1.7.1, but the DMstack is expecting
>> 1.6.2+1..and I suspect downloaded it and used it rather than the
>> Anaconda version.  Does that seem possible?
>> Similiarly I see matplotlib 1.1.1+2 installed under DM while Anaconda
>> has 1.3.1.  Definitely need the Anaconda version of numpy to be used,
>> while maybe it doesn't matter for matplotlib.
>>
>> If I fire up python, I see:
>> Python 2.7.5 |Anaconda 1.8.0 (64-bit)| (default, Nov  4 2013, 15:30:26)
>> [GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] on linux2
>> Type "help", "copyright", "credits" or "license" for more information.
>>>>> import numpy
>>>>> print numpy.__version__
>> 1.6.2
>>
>> so somehow my environment picks that older version of numpy up rather
>> than the Anaconda version.  Help!  :)
>>
>> Take care,
>> Heather
>>
>> _______________________________________________
>> lsst-dm-stack-users mailing list
>> lsst-dm-stack-users at lsstcorp.org
>> http://listserv.lsstcorp.org/mailman/listinfo/lsst-dm-stack-users




More information about the dm-users mailing list