![](https://secure.gravatar.com/avatar/6068e8f7c1fb3e3ce7dcbd218c9da971.jpg?s=120&d=mm&r=g)
import numpy numpy.__version__ '1.1.1' import scipy Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
I tried to install the current svn trunk and ran into this problem skathi:~] tgrav% python ActivePython 2.5.1.1 (ActiveState Software Inc.) based on Python 2.5.1 (r251:54863, May 1 2007, 17:40:00) [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin Type "help", "copyright", "credits" or "license" for more information. python2.5/site-packages/scipy/__init__.py", line 86, in <module> from numpy.testing import Tester ImportError: cannot import name Tester
Is the current bleeding edge copy broken? Cheers Tommy Grav + -----------------------------------------------------------------------------------------------------------------+ Associate Research Scientist Dept. of Physics and Astronomy Johns Hopkins University Bloomberg 243 tgrav@pha.jhu.edu 3400 N. Charles St. (410) 516-7683 Baltimore, MD21218 + -----------------------------------------------------------------------------------------------------------------+
![](https://secure.gravatar.com/avatar/764323a14e554c97ab74177e0bce51d4.jpg?s=120&d=mm&r=g)
On Mon, Aug 4, 2008 at 08:29, Tommy Grav <tgrav@mac.com> wrote:
I tried to install the current svn trunk and ran into this problem
import numpy numpy.__version__ '1.1.1' import scipy Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
skathi:~] tgrav% python ActivePython 2.5.1.1 (ActiveState Software Inc.) based on Python 2.5.1 (r251:54863, May 1 2007, 17:40:00) [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin Type "help", "copyright", "credits" or "license" for more information. python2.5/site-packages/scipy/__init__.py", line 86, in <module> from numpy.testing import Tester ImportError: cannot import name Tester
Is the current bleeding edge copy broken?
No. SVN scipy currently requires SVN numpy. -- 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
![](https://secure.gravatar.com/avatar/573ed3088eea742af8bcfeac90bc882d.jpg?s=120&d=mm&r=g)
Robert Kern wrote:
On Mon, Aug 4, 2008 at 08:29, Tommy Grav <tgrav@mac.com> wrote:
I tried to install the current svn trunk and ran into this problem
import numpy numpy.__version__ '1.1.1' import scipy Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
skathi:~] tgrav% python ActivePython 2.5.1.1 (ActiveState Software Inc.) based on Python 2.5.1 (r251:54863, May 1 2007, 17:40:00) [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin Type "help", "copyright", "credits" or "license" for more information. python2.5/site-packages/scipy/__init__.py", line 86, in <module> from numpy.testing import Tester ImportError: cannot import name Tester
Is the current bleeding edge copy broken?
No. SVN scipy currently requires SVN numpy.
I have the same problem, and I cannot compile SVN numpy, see below. Do you have an idea where does the problem come from? r. building 'numpy.core.multiarray' extension compiling C sources C compiler: i486-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -fPIC creating build/temp.linux-i686-2.4 creating build/temp.linux-i686-2.4/numpy creating build/temp.linux-i686-2.4/numpy/core creating build/temp.linux-i686-2.4/numpy/core/src compile options: '-Ibuild/src.linux-i686-2.4/numpy/core/src -Inumpy/core/include -Ibuild/src.linux-i686-2.4/numpy/core/include/numpy -Inumpy/core/src -Inumpy/core/include -I/usr/include/python2.4 -I/usr/include/python2.4 -c' i486-pc-linux-gnu-gcc: numpy/core/src/multiarraymodule.c numpy/core/src/multiarraymodule.c:130: error: static declaration of 'PyArray_OverflowMultiplyList' follows non-static declaration numpy/core/src/arrayobject.c:10185: error: previous implicit declaration of 'PyArray_OverflowMultiplyList' was here numpy/core/src/multiarraymodule.c:130: error: static declaration of 'PyArray_OverflowMultiplyList' follows non-static declaration numpy/core/src/arrayobject.c:10185: error: previous implicit declaration of 'PyArray_OverflowMultiplyList' was here error: Command "i486-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -fPIC -Ibuild/src.linux-i686-2.4/numpy/core/src -Inumpy/core/include -Ibuild/src.linux-i686-2.4/numpy/core/include/numpy -Inumpy/core/src -Inumpy/core/include -I/usr/include/python2.4 -I/usr/include/python2.4 -c numpy/core/src/multiarraymodule.c -o build/temp.linux-i686-2.4/numpy/core/src/multiarraymodule.o" failed with exit status 1
![](https://secure.gravatar.com/avatar/573ed3088eea742af8bcfeac90bc882d.jpg?s=120&d=mm&r=g)
Robert Cimrman wrote:
Robert Kern wrote:
On Mon, Aug 4, 2008 at 08:29, Tommy Grav <tgrav@mac.com> wrote:
I tried to install the current svn trunk and ran into this problem
import numpy numpy.__version__ '1.1.1' import scipy Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/
skathi:~] tgrav% python ActivePython 2.5.1.1 (ActiveState Software Inc.) based on Python 2.5.1 (r251:54863, May 1 2007, 17:40:00) [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin Type "help", "copyright", "credits" or "license" for more information. python2.5/site-packages/scipy/__init__.py", line 86, in <module> from numpy.testing import Tester ImportError: cannot import name Tester Is the current bleeding edge copy broken? No. SVN scipy currently requires SVN numpy.
I have the same problem, and I cannot compile SVN numpy, see below. Do you have an idea where does the problem come from?
r.
building 'numpy.core.multiarray' extension compiling C sources C compiler: i486-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -fPIC
creating build/temp.linux-i686-2.4 creating build/temp.linux-i686-2.4/numpy creating build/temp.linux-i686-2.4/numpy/core creating build/temp.linux-i686-2.4/numpy/core/src compile options: '-Ibuild/src.linux-i686-2.4/numpy/core/src -Inumpy/core/include -Ibuild/src.linux-i686-2.4/numpy/core/include/numpy -Inumpy/core/src -Inumpy/core/include -I/usr/include/python2.4 -I/usr/include/python2.4 -c' i486-pc-linux-gnu-gcc: numpy/core/src/multiarraymodule.c numpy/core/src/multiarraymodule.c:130: error: static declaration of 'PyArray_OverflowMultiplyList' follows non-static declaration numpy/core/src/arrayobject.c:10185: error: previous implicit declaration of 'PyArray_OverflowMultiplyList' was here numpy/core/src/multiarraymodule.c:130: error: static declaration of 'PyArray_OverflowMultiplyList' follows non-static declaration numpy/core/src/arrayobject.c:10185: error: previous implicit declaration of 'PyArray_OverflowMultiplyList' was here error: Command "i486-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -fPIC -Ibuild/src.linux-i686-2.4/numpy/core/src -Inumpy/core/include -Ibuild/src.linux-i686-2.4/numpy/core/include/numpy -Inumpy/core/src -Inumpy/core/include -I/usr/include/python2.4 -I/usr/include/python2.4 -c numpy/core/src/multiarraymodule.c -o build/temp.linux-i686-2.4/numpy/core/src/multiarraymodule.o" failed with exit status 1
I have persuaded numpy to compile: In [2]: nm.__version__ Out[2]: '1.2.0.dev5610' $ gcc --version gcc (GCC) 4.1.2 (Gentoo 4.1.2 p1.1) I had to do: Index: numpy/core/src/arrayobject.c =================================================================== --- numpy/core/src/arrayobject.c (revision 5610) +++ numpy/core/src/arrayobject.c (working copy) @@ -44,6 +44,10 @@ return priority; } +static intp +PyArray_OverflowMultiplyList(register intp *l1, register int n); + + static int _check_object_rec(PyArray_Descr *descr) {
participants (3)
-
Robert Cimrman
-
Robert Kern
-
Tommy Grav