[SciPy-User] running script error (eigen symmetric)
Mon Dec 3 15:29:27 CST 2012
the scipy you installed via Macports is version 0.11 :
$ port installed py27-scipy
The following ports are currently installed:
py27-scipy @0.11.0_0+gcc45 (active)
Indeed for that version of scipy there is no function eigen_symmetric in scipy.sparse.linalg.eigen.arpack, as the ImportError in your script said:
Python 2.7.3 (default, Oct 22 2012, 20:01:15)
[GCC 4.2.1 Compatible Apple Clang 4.0 ((tags/Apple/clang-421.0.60))] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from scipy.sparse.linalg.eigen.arpack import eigen_symmetric
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name eigen_symmetric
>>> from scipy.sparse.linalg.eigen.arpack import eigs
It is possible to install an older version of scipy with Macports, but it looks complicated (I've never done this):
Installing scipy 0.9 on a modern Mac outside Macports is also not simple.
You could try a binary or source install from http://sourceforge.net/projects/scipy/files/scipy/ .
Is updating your script to use eigs instead of eigen_symmetric an option?
Or ask the guy that wrote it do update it for you?
On Dec 3, 2012, at 10:19 PM, Amy Anderson <firstname.lastname@example.org> wrote:
> I am actually having an issue getting an older version of Scipy to install through macports. I need a version of scipy before 0.9 because the eigen symmetric module was not changed yet. I have been using macports to install scipy etc because I thought it was the easier way but at this point I really just need to get this script working and need an older version of scipy. if anyone has any ideas please let me know.
> On Mon, Dec 3, 2012 at 2:58 PM, Daπid <email@example.com> wrote:
> In Mac, the python command corresponds to the python that come shipped
> with it, not the one installed by macports, and therefore, the one
> that has scipy installed. It is something like python-macports2.6 or
> so (tupe python and tab/double tab on the shell to make sure).
> On Mon, Dec 3, 2012 at 5:29 PM, Anderson, Amy <firstname.lastname@example.org> wrote:
> > Dear Scipy users,
> > I am a new python and scipy user and I am looking for some help to
> > troubleshoot an error I have been getting when trying to run a script in
> > python. The script I am trying to run is called pyCluster ROI and it needs
> > python, pynifti, scipy, and numpy to run. I have installed all these
> > programs successfully using macports on Mac OS 10.8.
> > I unarchived the scripts and ran the test script getting this error:
> > $ python pyClusterROI_test.py
> > Traceback (most recent call last):
> > File "pyClusterROI_test.py", line 48, in <module>
> > from make_local_connectivity_scorr import *
> > File
> > "/Users/matthewnye/Downloads/pyClusterROI/make_local_connectivity_scorr.py",
> > line 40, in <module>
> > from scipy.sparse.linalg.eigen.arpack import eigen_symmetric
> > ImportError: cannot import name eigen_symmetric
> > I have been trying to hunt down what this error may be and it seems that
> > older versions of scipy might have used
> > ‘scipy.sparse.linalg.eigen.arpack.eigen symmetric()’ where as new versions
> > it has been renamed as "scipy.sparse.linalg.eigen.arpack.eigs()."
> > Does anyone know what might be causing this error or if it is a version
> > problem is there any way to get an older version of scipy through macports?
> > Also I have considered installing all these modules through a manual install
> > but since i am a novice user I did not want to attempt that if there was a
> > potentially simpler solution.
> > Any help would be much appreciated!
> > -Amy
> > _______________________________________________
> > SciPy-User mailing list
> > SciPy-User@scipy.org
> > http://mail.scipy.org/mailman/listinfo/scipy-user
> SciPy-User mailing list
> SciPy-User mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SciPy-User