
Would anyone be willing to help me interpret an error while trying to build and install Numpy? I've searched around, and haven't seen this elsewhere. I've been running into this wall for about half the day now. I've tried reinstalling Python, using numpy 1.2.0 and 1.2.1. I have Python 2.6.1, running on OS X 10.4.11, with a G4 PPC processor. Here's the print out: Ganymede:~/Desktop/numpy-1.2.1 username$ python setup.py build Running from numpy source directory. Traceback (most recent call last): File "setup.py", line 96, in <module> setup_package() File "setup.py", line 68, in setup_package from numpy.distutils.core import setup File "/Users/username/Desktop/numpy/numpy/distutils/__init__.py", line 6, in <module> File "/Users/username/Desktop/numpy/numpy/distutils/ccompiler.py", line 11, in <module> File "/Users/username/Desktop/numpy/numpy/distutils/log.py", line 7, in <module> File "/Users/username/Desktop/numpy/numpy/distutils/misc_util.py", line 8, in <module> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/tempfile.py", line 34, in <module> from random import Random as _Random File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/random.py", line 871, in <module> _inst = Random() File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/random.py", line 96, in __init__ self.seed(x) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/random.py", line 115, in seed super(Random, self).seed(a) SystemError: error return without exception set Any ideas? I've had numpy/scipy installed in the past, but recently had to wipe everything and start from scratch. Everything should be pretty clean right now. Am I missing something obvious? Thanks, NJW

On 2009-01-24, at 11:34 AM, Nat Wilson wrote:
Would anyone be willing to help me interpret an error while trying to build and install Numpy? I've searched around, and haven't seen this elsewhere.
I've been running into this wall for about half the day now. I've tried reinstalling Python, using numpy 1.2.0 and 1.2.1.
I have Python 2.6.1, running on OS X 10.4.11, with a G4 PPC processor.
Have you tried setting the environment variable MACOSX_DEPLOYMENT_TARGET=10.4 before building?

I had not, but that doesn't seem to make any difference. By the way, I'm using gfortran 4.2.3 as I do this. Nat On Jan 24, 2009, at 4:38 PM, John Gleeson wrote:
On 2009-01-24, at 11:34 AM, Nat Wilson wrote:
Would anyone be willing to help me interpret an error while trying to build and install Numpy? I've searched around, and haven't seen this elsewhere.
I've been running into this wall for about half the day now. I've tried reinstalling Python, using numpy 1.2.0 and 1.2.1.
I have Python 2.6.1, running on OS X 10.4.11, with a G4 PPC processor.
Have you tried setting the environment variable
MACOSX_DEPLOYMENT_TARGET=10.4
before building? _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Nat Wilson wrote:
Would anyone be willing to help me interpret an error while trying to build and install Numpy? I've searched around, and haven't seen this elsewhere.
I've been running into this wall for about half the day now. I've tried reinstalling Python, using numpy 1.2.0 and 1.2.1.
I have Python 2.6.1, running on OS X 10.4.11, with a G4 PPC processor.
Here's the print out:
Ganymede:~/Desktop/numpy-1.2.1 username$ python setup.py build Running from numpy source directory. Traceback (most recent call last): File "setup.py", line 96, in <module> setup_package() File "setup.py", line 68, in setup_package from numpy.distutils.core import setup File "/Users/username/Desktop/numpy/numpy/distutils/__init__.py", line 6, in <module> File "/Users/username/Desktop/numpy/numpy/distutils/ccompiler.py", line 11, in <module> File "/Users/username/Desktop/numpy/numpy/distutils/log.py", line 7, in <module> File "/Users/username/Desktop/numpy/numpy/distutils/misc_util.py", line 8, in <module> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/tempfile.py", line 34, in <module> from random import Random as _Random File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/random.py", line 871, in <module> _inst = Random() File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/random.py", line 96, in __init__ self.seed(x) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/random.py", line 115, in seed super(Random, self).seed(a) SystemError: error return without exception set
Any ideas? I've had numpy/scipy installed in the past, but recently had to wipe everything and start from scratch. Everything should be pretty clean right now. Am I missing something obvious?
Thanks, NJW
numpy 1.2 doesn't work with python 2.6. You'll either need to revert to python 2.5 or get the latest svn numpy (which still may have some python 2.6 glitches). -Jeff

Nat Wilson wrote:
Would anyone be willing to help me interpret an error while trying to build and install Numpy? I've searched around, and haven't seen this elsewhere.
I've been running into this wall for about half the day now. I've tried reinstalling Python, using numpy 1.2.0 and 1.2.1.
I have Python 2.6.1, running on OS X 10.4.11, with a G4 PPC processor.
Here's the print out:
Ganymede:~/Desktop/numpy-1.2.1 username$ python setup.py build Running from numpy source directory. Traceback (most recent call last): File "setup.py", line 96, in <module> setup_package() File "setup.py", line 68, in setup_package from numpy.distutils.core import setup File "/Users/username/Desktop/numpy/numpy/distutils/__init__.py", line 6, in <module> File "/Users/username/Desktop/numpy/numpy/distutils/ccompiler.py", line 11, in <module> File "/Users/username/Desktop/numpy/numpy/distutils/log.py", line 7, in <module> File "/Users/username/Desktop/numpy/numpy/distutils/misc_util.py", line 8, in <module> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/tempfile.py", line 34, in <module> from random import Random as _Random File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/random.py", line 871, in <module> _inst = Random() File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/random.py", line 96, in __init__ self.seed(x) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/random.py", line 115, in seed super(Random, self).seed(a) SystemError: error return without exception set
Any ideas? I've had numpy/scipy installed in the past, but recently had to wipe everything and start from scratch. Everything should be pretty clean right now. Am I missing something obvious?
Thanks, NJW
Nat: numpy 1.2.x doesn't work with python 2.6. You'll either need to revert to python 2.5 or get the latest svn numpy (which still may have some python 2.6 glitches). -Jeff

On Sat, Jan 24, 2009 at 12:34, Nat Wilson <njwilson23@gmail.com> wrote:
Would anyone be willing to help me interpret an error while trying to build and install Numpy? I've searched around, and haven't seen this elsewhere.
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/tempfile.py", line 34, in <module> from random import Random as _Random File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/random.py", line 871, in <module> _inst = Random() File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/random.py", line 96, in __init__ self.seed(x) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/random.py", line 115, in seed super(Random, self).seed(a) SystemError: error return without exception set
Any ideas?
It looks unrelated to numpy. Can you import the random module in other situations? -- 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

from random import Random as _Random Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
Ah, no, I can't import it. What does this mean? As far as I know, I built Python as instructed. Python 2.6.1 (r261:67515, Jan 24 2009, 16:08:37) [GCC 4.0.0 20041026 (Apple Computer, Inc. build 4061)] on darwin Type "help", "copyright", "credits" or "license" for more information. python2.6/random.py", line 871, in <module> _inst = Random() File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/random.py", line 96, in __init__ self.seed(x) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/random.py", line 115, in seed super(Random, self).seed(a) SystemError: error return without exception set Nat On Jan 24, 2009, at 6:09 PM, Robert Kern wrote:
On Sat, Jan 24, 2009 at 12:34, Nat Wilson <njwilson23@gmail.com> wrote:
Would anyone be willing to help me interpret an error while trying to build and install Numpy? I've searched around, and haven't seen this elsewhere.
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/tempfile.py", line 34, in <module> from random import Random as _Random File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/random.py", line 871, in <module> _inst = Random() File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/random.py", line 96, in __init__ self.seed(x) File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/random.py", line 115, in seed super(Random, self).seed(a) SystemError: error return without exception set
Any ideas?
It looks unrelated to numpy. Can you import the random module in other situations?
-- 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 _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

On Sat, Jan 24, 2009 at 17:58, Nat Wilson <njwilson23@gmail.com> wrote:
Ah, no, I can't import it.
What does this mean? As far as I know, I built Python as instructed.
I'm not sure. Can you show me what os.urandom(16) gives you? -- 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

It throws this out. Python 2.6.1 (r261:67515, Jan 24 2009, 16:08:37) [GCC 4.0.0 20041026 (Apple Computer, Inc. build 4061)] on darwin Type "help", "copyright", "credits" or "license" for more information.
import os os.urandom(16) '\xe0;n\x8a*\xb4\x08N\x80<\xef\x9b*\x06\x1b\xc4'
Nat On Jan 24, 2009, at 7:12 PM, Robert Kern wrote:
On Sat, Jan 24, 2009 at 17:58, Nat Wilson <njwilson23@gmail.com> wrote:
Ah, no, I can't import it.
What does this mean? As far as I know, I built Python as instructed.
I'm not sure. Can you show me what os.urandom(16) gives you?
-- 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 _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

On Sat, Jan 24, 2009 at 18:31, Nat Wilson <njwilson23@gmail.com> wrote:
It throws this out.
Python 2.6.1 (r261:67515, Jan 24 2009, 16:08:37) [GCC 4.0.0 20041026 (Apple Computer, Inc. build 4061)] on darwin Type "help", "copyright", "credits" or "license" for more information.
import os os.urandom(16) '\xe0;n\x8a*\xb4\x08N\x80<\xef\x9b*\x06\x1b\xc4'
Well, looking at the C code for random_seed(), I don't see a way for it to return NULL without having an exception set (assuming that the Python API calls aren't buggy). Except maybe the assert() call in there. When you built your Python, are you sure that -DNDEBUG was being used? -- 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

To be honest, I really don't know. I followed the directions in /Mac/ README for a framework install. How would I check this? Thanks a lot for sticking with me, Nat On Jan 24, 2009, at 7:41 PM, Robert Kern wrote:
On Sat, Jan 24, 2009 at 18:31, Nat Wilson <njwilson23@gmail.com> wrote:
It throws this out.
Python 2.6.1 (r261:67515, Jan 24 2009, 16:08:37) [GCC 4.0.0 20041026 (Apple Computer, Inc. build 4061)] on darwin Type "help", "copyright", "credits" or "license" for more information.
import os os.urandom(16) '\xe0;n\x8a*\xb4\x08N\x80<\xef\x9b*\x06\x1b\xc4'
Well, looking at the C code for random_seed(), I don't see a way for it to return NULL without having an exception set (assuming that the Python API calls aren't buggy). Except maybe the assert() call in there. When you built your Python, are you sure that -DNDEBUG was being used?
-- 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 _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

On Sat, Jan 24, 2009 at 19:13, Nat Wilson <njwilson23@gmail.com> wrote:
To be honest, I really don't know. I followed the directions in /Mac/ README for a framework install.
How would I check this?
Rebuild and look at the compiler command lines as they go by. -- 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

On Sat, Jan 24, 2009 at 19:13, Nat Wilson <njwilson23@gmail.com> wrote:
To be honest, I really don't know. I followed the directions in /Mac/ README for a framework install.
How would I check this?
Another possibility for tracking down the problem would be to start up Python under gdb, add a breakpoint for the function random_seed() then step through. That would help you find out the code path that makes it return NULL without setting the exception. -- 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

Robert Kern wrote:
On Sat, Jan 24, 2009 at 18:31, Nat Wilson <njwilson23@gmail.com> wrote:
It throws this out.
Python 2.6.1 (r261:67515, Jan 24 2009, 16:08:37) [GCC 4.0.0 20041026 (Apple Computer, Inc. build 4061)] on darwin Type "help", "copyright", "credits" or "license" for more information.
import os os.urandom(16) '\xe0;n\x8a*\xb4\x08N\x80<\xef\x9b*\x06\x1b\xc4'
Well, looking at the C code for random_seed(), I don't see a way for it to return NULL without having an exception set (assuming that the Python API calls aren't buggy). Except maybe the assert() call in there. When you built your Python, are you sure that -DNDEBUG was being used?
Well, the gcc used to compiler Python is rather ancient and that gcc release by Apple has the reputation to be "buggier than a Florida swamp in July" and at least for building Sage it is blacklisted. So I would suggest updating gcc by using some more recent XCode and trying again. Cheers, Michael

I ended by giving up and grabbing the binary. I'll get 2.5 for Numpy too. I did grab Xcode 2.5, which has gcc 4.0.1. I didn't feel up to manually doing a complete change to the latest gcc, at least while my needs are being met. Thanks, Nat On Jan 24, 2009, at 9:04 PM, Michael Abshoff wrote:
Robert Kern wrote:
On Sat, Jan 24, 2009 at 18:31, Nat Wilson <njwilson23@gmail.com> wrote:
It throws this out.
Python 2.6.1 (r261:67515, Jan 24 2009, 16:08:37) [GCC 4.0.0 20041026 (Apple Computer, Inc. build 4061)] on darwin Type "help", "copyright", "credits" or "license" for more information.
import os os.urandom(16) '\xe0;n\x8a*\xb4\x08N\x80<\xef\x9b*\x06\x1b\xc4'
Well, looking at the C code for random_seed(), I don't see a way for it to return NULL without having an exception set (assuming that the Python API calls aren't buggy). Except maybe the assert() call in there. When you built your Python, are you sure that -DNDEBUG was being used?
Well, the gcc used to compiler Python is rather ancient and that gcc release by Apple has the reputation to be "buggier than a Florida swamp in July" and at least for building Sage it is blacklisted. So I would suggest updating gcc by using some more recent XCode and trying again.
Cheers,
Michael _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion
participants (5)
-
Jeff Whitaker
-
John Gleeson
-
Michael Abshoff
-
Nat Wilson
-
Robert Kern