Python crashes consistently

2008-04-16 Thread Pete Crite
Hello,

I've been trying to install Gnumeric via MacPorts recently, but I  
can't get past the installation of py25-numpy.

It appears that python crashes consistently during installation. I'm  
not sure if this is related to python itself, but I just thought I'd  
ask here, just in case anyone else was aware of this problem. I did  
have a few problems during the installation, so perhaps it might be  
related to them? Is there anyway to check that my installation of  
python is valid?

I'm using OS X 10.4.11 on a Mac Mini PPC. I have attached the error  
messages from the terminal and the mac pop-up window from the crash.

Any help would be very much appreciated!

Cheers,
Pete.


The terminal says:

> Error: Target org.macports.build returned: shell command " cd "/opt/ 
> local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync.macports.org_release_ports_pytho 
> n_py25-numpy/work/numpy-1.0.4" && /opt/local/bin/python2.5 setup.py  
> config_fc --fcompiler g95 --f77exec /opt/local/bin/g95 --f90exec / 
> opt/local/bin/g95 build " returned error 139
> Command output: Running from numpy source directory.
>
> Error: The following dependencies failed to build: py25-gtk py25- 
> cairo py25-numpy
> Error: Status 1 encountered during processing.
>


The crash window that pops up says:

> Date/Time:  2008-03-30 11:30:33.545 +1100
> OS Version: 10.4.11 (Build 8S165)
> Report Version: 4
>
> Command: python2.5
> Path:/opt/local/bin/python2.5
> Parent:  sh [247]
>
> Version: ??? (???)
>
> PID:248
> Thread: 0
>
> Exception:  EXC_BAD_ACCESS (0x0001)
> Codes:  KERN_INVALID_ADDRESS (0x0001) at 0x82008000
>
> Thread 0 Crashed:
> 0   _random.so0x00571334 random_seed + 644  
> (_randommodule.c:297)
> 1   _random.so0x0057131c random_seed + 620  
> (_randommodule.c:292)
> 2   libpython2.5.dylib0x002b1788 PyEval_EvalFrameEx + 17604  
> (ceval.c:3573)
> 3   libpython2.5.dylib0x002b39a8 PyEval_EvalCodeEx + 2148  
> (ceval.c:2836)
> 4   libpython2.5.dylib0x002b19ac PyEval_EvalFrameEx + 18152  
> (ceval.c:3669)
> 5   libpython2.5.dylib0x002b39a8 PyEval_EvalCodeEx + 2148  
> (ceval.c:2836)
> 6   libpython2.5.dylib0x0023969c function_call + 332  
> (funcobject.c:524)
> 7   libpython2.5.dylib0x0020f778 PyObject_Call + 52 (abstract.c: 
> 1862)
> 8   libpython2.5.dylib0x0021960c instancemethod_call + 764  
> (classobject.c:2520)
> 9   libpython2.5.dylib0x0020f778 PyObject_Call + 52 (abstract.c: 
> 1862)
> 10  libpython2.5.dylib0x0026e81c slot_tp_init + 72 (typeobject.c: 
> 4944)
> 11  libpython2.5.dylib0x00273f88 type_call + 664 (typeobject.c:436)
> 12  libpython2.5.dylib0x0020f778 PyObject_Call + 52 (abstract.c: 
> 1862)
> 13  libpython2.5.dylib0x002b2fc8 PyEval_EvalFrameEx + 23812  
> (ceval.c:3786)
> 14  libpython2.5.dylib0x002b39a8 PyEval_EvalCodeEx + 2148  
> (ceval.c:2836)
> 15  libpython2.5.dylib0x002b3a9c PyEval_EvalCode + 48 (ceval.c:500)
> 16  libpython2.5.dylib0x002cbea0 PyImport_ExecCodeModuleEx + 292  
> (import.c:676)
> 17  libpython2.5.dylib0x002cc3a0 load_source_module + 1032  
> (import.c:960)
> 18  libpython2.5.dylib0x002cd564 import_submodule + 392 (import.c: 
> 2401)
> 19  libpython2.5.dylib0x002cd7d4 load_next + 300 (import.c:2221)
> 20  libpython2.5.dylib0x002cde8c import_module_level + 624  
> (import.c:2002)
> 21  libpython2.5.dylib0x002cefc0 PyImport_ImportModuleLevel + 228  
> (import.c:2072)
> 22  libpython2.5.dylib0x002a68a0 builtin___import__ + 132  
> (bltinmodule.c:49)
> 23  libpython2.5.dylib0x0020f778 PyObject_Call + 52 (abstract.c: 
> 1862)
> 24  libpython2.5.dylib0x002abf38 PyEval_CallObjectWithKeywords +  
> 276 (ceval.c:3443)
> 25  libpython2.5.dylib0x002b09cc PyEval_EvalFrameEx + 14088  
> (ceval.c:2067)
> 26  libpython2.5.dylib0x002b39a8 PyEval_EvalCodeEx + 2148  
> (ceval.c:2836)
> 27  libpython2.5.dylib0x002b3a9c PyEval_EvalCode + 48 (ceval.c:500)
> 28  libpython2.5.dylib0x002cbea0 PyImport_ExecCodeModuleEx + 292  
> (import.c:676)
> 29  libpython2.5.dylib0x002cc3a0 load_source_module + 1032  
> (import.c:960)
> 30  libpython2.5.dylib0x002cd564 import_submodule + 392 (import.c: 
> 2401)
> 31  libpython2.5.dylib0x002cd828 load_next + 384 (import.c:2225)
> 32  libpython2.5.dylib0x002cde8c import_module_level + 624  
> (import.c:2002)
> 33  libpython2.5.dylib0x002cefc0 PyImport_ImportModuleLevel + 228  
> (import.c:2072)
> 34  libpython2.5.dylib0x002a68a0 builtin___import__ + 132  
> (bltinmodule.c:49)
> 35  libpython2.5.dylib0x0020f778 PyObject_Call + 52 (abstract.c: 
> 1862)
> 36  libpython2.5.dylib0x002abf38 PyEval_CallObjectWithKeywords +  
> 276 (ceval.c:3443)
> 37  libpython2.5.dylib0x002b09cc PyEval_EvalFrameEx + 14088  
> (ceval.c:2067)
> 38  libpyt

Re: Python crashes consistently

2008-04-16 Thread Pete Crite
On 16/04/2008, at 9:38 PM, [EMAIL PROTECTED]   wrote:
>
> which python ? from macports or macpython ?
> --  
> http://mail.python.org/mailman/listinfo/python-list
>



MacPorts. It automatically downloaded 2.5.2.

My original message is reproduced below.


On 16/04/2008, at 5:50 PM, Pete Crite wrote:
>
> Hello,
>
> I've been trying to install Gnumeric via MacPorts recently, but I
> can't get past the installation of py25-numpy.
>
> It appears that python crashes consistently during installation. I'm
> not sure if this is related to python itself, but I just thought I'd
> ask here, just in case anyone else was aware of this problem. I did
> have a few problems during the installation, so perhaps it might be
> related to them? Is there anyway to check that my installation of
> python is valid?
>
> I'm using OS X 10.4.11 on a Mac Mini PPC. I have attached the error
> messages from the terminal and the mac pop-up window from the crash.
>
> Any help would be very much appreciated!
>
> Cheers,
> Pete.
>
>
> The terminal says:
>
>> Error: Target org.macports.build returned: shell command " cd "/opt/
>> local/var/macports/build/
>> _opt_local_var_macports_sources_rsync.macports.org_release_ports_pyth 
>> o
>> n_py25-numpy/work/numpy-1.0.4" && /opt/local/bin/python2.5 setup.py
>> config_fc --fcompiler g95 --f77exec /opt/local/bin/g95 --f90exec /
>> opt/local/bin/g95 build " returned error 139
>> Command output: Running from numpy source directory.
>>
>> Error: The following dependencies failed to build: py25-gtk py25-
>> cairo py25-numpy
>> Error: Status 1 encountered during processing.
>>
>
>
> The crash window that pops up says:
>
>> Date/Time:  2008-03-30 11:30:33.545 +1100
>> OS Version: 10.4.11 (Build 8S165)
>> Report Version: 4
>>
>> Command: python2.5
>> Path:/opt/local/bin/python2.5
>> Parent:  sh [247]
>>
>> Version: ??? (???)
>>
>> PID:248
>> Thread: 0
>>
>> Exception:  EXC_BAD_ACCESS (0x0001)
>> Codes:  KERN_INVALID_ADDRESS (0x0001) at 0x82008000
>>
>> Thread 0 Crashed:
>> 0   _random.so   0x00571334 random_seed + 644
>> (_randommodule.c:297)
>> 1   _random.so   0x0057131c random_seed + 620
>> (_randommodule.c:292)
>> 2   libpython2.5.dylib   0x002b1788 PyEval_EvalFrameEx + 17604
>> (ceval.c:3573)
>> 3   libpython2.5.dylib   0x002b39a8 PyEval_EvalCodeEx + 2148
>> (ceval.c:2836)
>> 4   libpython2.5.dylib   0x002b19ac PyEval_EvalFrameEx + 18152
>> (ceval.c:3669)
>> 5   libpython2.5.dylib   0x002b39a8 PyEval_EvalCodeEx + 2148
>> (ceval.c:2836)
>> 6   libpython2.5.dylib   0x0023969c function_call + 332
>> (funcobject.c:524)
>> 7   libpython2.5.dylib   0x0020f778 PyObject_Call + 52 (abstract.c:
>> 1862)
>> 8   libpython2.5.dylib   0x0021960c instancemethod_call + 764
>> (classobject.c:2520)
>> 9   libpython2.5.dylib   0x0020f778 PyObject_Call + 52 (abstract.c:
>> 1862)
>> 10  libpython2.5.dylib   0x0026e81c slot_tp_init + 72 (typeobject.c:
>> 4944)
>> 11  libpython2.5.dylib   0x00273f88 type_call + 664 (typeobject.c:436)
>> 12  libpython2.5.dylib   0x0020f778 PyObject_Call + 52 (abstract.c:
>> 1862)
>> 13  libpython2.5.dylib   0x002b2fc8 PyEval_EvalFrameEx + 23812
>> (ceval.c:3786)
>> 14  libpython2.5.dylib   0x002b39a8 PyEval_EvalCodeEx + 2148
>> (ceval.c:2836)
>> 15  libpython2.5.dylib   0x002b3a9c PyEval_EvalCode + 48 (ceval.c:500)
>> 16  libpython2.5.dylib   0x002cbea0 PyImport_ExecCodeModuleEx + 292
>> (import.c:676)
>> 17  libpython2.5.dylib   0x002cc3a0 load_source_module + 1032
>> (import.c:960)
>> 18  libpython2.5.dylib   0x002cd564 import_submodule + 392 (import.c:
>> 2401)
>> 19  libpython2.5.dylib   0x002cd7d4 load_next + 300 (import.c:2221)
>> 20  libpython2.5.dylib   0x002cde8c import_module_level + 624
>> (import.c:2002)
>> 21  libpython2.5.dylib   0x002cefc0 PyImport_ImportModuleLevel + 228
>> (import.c:2072)
>> 22  libpython2.5.dylib   0x002a68a0 builtin___import__ + 132
>> (bltinmodule.c:49)
>> 23  libpython2.5.dylib   0x0020f778 PyObject_Call + 52 (abstract.c:
>> 1862)
>> 24  libpython2.5.dylib   0x002abf38 PyEval_CallObjectWithKeywords +
>> 276 (ceval.c:3443)
>> 25  libpython2.5.dylib   0x002b09cc PyEval_EvalFrameEx + 14088
>> (ceval.c:2067)
>> 26  libpython2.5.dylib   0x002b39a8 PyEval_EvalCodeEx + 2148
>> (cev

Re: Python crashes consistently

2008-04-16 Thread Pete Crite
Thanks for the quick reply,

Just to clarify (sorry, I'm a bit of a command line newbie):

Do you mean to install Python from the .dmg - i.e. into /usr/local/ 
bin? And then to install Numpy directly as well (manually, from  
source), then continue with the MacPorts installation of Gnumeric  
(i.e. into /opt/local/)?

Thanks,
Pete.


On 16/04/2008, at 9:56 PM, Diez B. Roggisch wrote:
>
> Pete Crite wrote:
>
>> Hello,
>>
>> I've been trying to install Gnumeric via MacPorts recently, but I
>> can't get past the installation of py25-numpy.
>
> You are using the wrong python version. Don't use MacPorts for  
> this, because
> it will install a local, non-framework version of python - which  
> will do
> you no good if you e.g. want to use any OSX-specific stuff.
>
>
> Use the official 2.5 framework version. And then install Numpy  
> yourself
> (which is a bit annoying I admit, as you need to install e.g. a  
> fortran
> compiler, but it is pretty well documented)
>
> Diez
> -- 
> http://mail.python.org/mailman/listinfo/python-list
>


-- 
http://mail.python.org/mailman/listinfo/python-list