problem with _num.seterr when importing scipy
Hello, I'm getting an error message about "_num.seterr" when importing scipy. Output is below. <diogenes:/home/krlong> python Python 2.4.4 (#1, Feb 9 2007, 14:45:36) [GCC 3.4.6] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import scipy Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/local/lib/python2.4/site-packages/scipy/__init__.py", line 37, in ? _num.seterr(all='ignore') TypeError: seterr() got an unexpected keyword argument 'all'
I've googled the error message, but found no other reports of it. To get past this problem, I commented out line 37 in __init.py__ and pressed bravely (or foolishly) onwards. Things seem to work OK after that, but I'm nervous about commenting something out of your code. This is on SuSE 10.1, but I'm not using the versions of python, gcc, blas, or lapack that were bundled with the system. The python version is 2.4.4. Lapack is the distribution from netlib. The BLAS is the version shipped with netlib's lapack, with srotmg.f, srotm.f, drotm.f, and drotmg.f added (from netlib's blas.tar.gz) to provide the complete BLAS needed by scipy. Everything was built with gcc 3.4.6. Any ideas? Thank you, Kevin Long -- ----------------------------------------------------------------------------- Dr. Kevin Long Computational Science and Mathematics Research Department Sandia National Laboratories MS 9217 krlong@sandia.gov Livermore, CA 94551 (925)-294-4910 -----------------------------------------------------------------------------
Kevin Long wrote:
Hello,
I'm getting an error message about "_num.seterr" when importing scipy. Output is below.
<diogenes:/home/krlong> python Python 2.4.4 (#1, Feb 9 2007, 14:45:36) [GCC 3.4.6] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import scipy Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/local/lib/python2.4/site-packages/scipy/__init__.py", line 37, in ? _num.seterr(all='ignore') TypeError: seterr() got an unexpected keyword argument 'all'
What versions of numpy and scipy do you have installed? E.g.:
import numpy print numpy.__version__ 1.0.2.dev3521 import scipy print scipy.__version__ 0.5.3.dev2620
-- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco
Hi Robert, Numpy 1.0b5 and scipy 0.5.2. - kevin On Friday 09 February 2007 15:24, Robert Kern wrote:
Kevin Long wrote:
Hello,
I'm getting an error message about "_num.seterr" when importing scipy. Output is below.
<diogenes:/home/krlong> python Python 2.4.4 (#1, Feb 9 2007, 14:45:36) [GCC 3.4.6] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import scipy
Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/local/lib/python2.4/site-packages/scipy/__init__.py", line 37, in ? _num.seterr(all='ignore') TypeError: seterr() got an unexpected keyword argument 'all'
What versions of numpy and scipy do you have installed? E.g.:
import numpy print numpy.__version__
1.0.2.dev3521
import scipy print scipy.__version__
0.5.3.dev2620
I was having the same problem. Did this ever get solved? Thanks, Ryan On 2/9/07, Kevin Long <krlong@sandia.gov> wrote:
Hi Robert,
Numpy 1.0b5 and scipy 0.5.2.
- kevin
On Friday 09 February 2007 15:24, Robert Kern wrote:
Kevin Long wrote:
Hello,
I'm getting an error message about "_num.seterr" when importing scipy. Output is below.
<diogenes:/home/krlong> python Python 2.4.4 (#1, Feb 9 2007, 14:45:36) [GCC 3.4.6] on linux2 Type "help", "copyright", "credits" or "license" for more information.
import scipy
Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/local/lib/python2.4/site-packages/scipy/__init__.py", line 37, in ? _num.seterr(all='ignore') TypeError: seterr() got an unexpected keyword argument 'all'
What versions of numpy and scipy do you have installed? E.g.:
import numpy print numpy.__version__
1.0.2.dev3521
import scipy print scipy.__version__
0.5.3.dev2620
SciPy-user mailing list SciPy-user@scipy.org http://projects.scipy.org/mailman/listinfo/scipy-user
Ryan Krauss wrote:
I was having the same problem. Did this ever get solved?
The 'all' keyword was introduced after version 1.0b5, the version that Kevin Long was using. That was the problem. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco
So is this a manifestation of trying to run versions of numpy and scipy that don't go together? On 3/13/07, Robert Kern <robert.kern@gmail.com> wrote:
Ryan Krauss wrote:
I was having the same problem. Did this ever get solved?
The 'all' keyword was introduced after version 1.0b5, the version that Kevin Long was using. That was the problem.
-- Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco _______________________________________________ SciPy-user mailing list SciPy-user@scipy.org http://projects.scipy.org/mailman/listinfo/scipy-user
Ryan Krauss wrote:
So is this a manifestation of trying to run versions of numpy and scipy that don't go together?
Yes. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco
participants (3)
-
Kevin Long
-
Robert Kern
-
Ryan Krauss