[issue11960] Python crashes when running numpy test

2011-04-29 Thread Alex Lai

New submission from Alex Lai :

Hi experts,

I’m wondering if anyone would look into this issue. We recently 
installed Python 3.1.2 on a Solaris 10 machine. While testing numpy package, 
Python crashed with the following error:

sbtorsvr391:~ $ cd /home/dcottr/local/tests
sbtorsvr391:~/local/tests $ export 
PYTHONPATH=$PYTHONPATH:~/local/lib/python3.1/site-packages

sbtorsvr391:~/local/tests $ /usr/local/bin/python3 -c "import numpy; 
numpy.test()"
Running unit tests for numpy
NumPy version 1.5.1
NumPy is installed in /home/dcottr/local/lib/python3.1/site-packages/numpy

Python version 3.1.2 (r312:79147, Mar 23 2010, 02:42:06) [GCC 3.4.6]
nose version 1.0.0
..S...SWarning:
 invalid value encountered in isfinite
Warning:
 invalid value encountered in isinf
Warning: invalid value encountered in isinf
..SSSK...K.F.FK.K...SK.F...S...Segmentation
 Fault (core dumped)


Below is the stack trace from the core dump:

 

# mdb core_sbtorsvr391_python3_10439_5000_1304101376_11246

Loading modules: [ libc.so.1 libavl.so.1 libuutil.so.1 ld.so.1 ]

> 
> ::stack
libc.so.1`strlen+0x50(fba55238, ffbf9ef8, ffbf9761, 0, 0, 0)
libc.so.1`sprintf+0x40(ffbf9f18, 7fff, 7c00, 2, 2, 1b74cc)
test_array_from_pyobj_ext.so`array_from_pyobj+0x4e0(6, 17d3ec0, 1, 7, 16176c0, 
ff13a5a0)
test_array_from_pyobj_ext.so`f2py_rout_wrap_call+0xbc(1, 1, 0, 17f000, 
fffe, fba65b94)
PyCFunction_Call+0x90(15ff350, 1841900, 1844e90, 0, 1, 183df38)
PyEval_EvalFrameEx+0x4f10(0, ffbfa1c0, 1615770, 1, 16491b0, 15ff350)
PyEval_EvalCodeEx+0x874(1615770, 161ff60, 0, 160cf3c, 5, 0)
function_call+0x8c(162e270, 160cf30, 0, 17f000, fffe, 40)
PyObject_Call+0x44(162e270, 160cf30, 0, 160cf3c, 4, 16176c0)
method_call+0x8c(162e270, 18418d0, 0, 1849f60, 1, 3f)
PyObject_Call+0x44(176b620, 18418d0, 0, 2ed5c, 2efe0, 176b620)
slot_tp_init+0x7c(176b620, 18418d0, 0, 2, 1, 16296d0)
type_call+0xdc(16521a0, 18418d0, 0, 17f000, fffe, 3e)
PyObject_Call+0x44(16521a0, 18418d0, 0, 18418d8, 1820030, 183ddbc)
PyEval_EvalFrameEx+0x37b4(0, ffbfa688, 162e9b0, 1, 16259c0, 16521a0)
PyEval_EvalFrameEx+0x5c98(0, ffbfa788, 16154e8, 1, 1626030, 162eb28)
PyEval_EvalFrameEx+0x5c98(0, ffbfa888, 52b260, 1, 57ec00, 162e468)
PyEval_EvalCodeEx+0x874(52b260, 5229c0, 0, 1808834, 2, 1ac03c)
function_call+0x8c(5a36a8, 1808828, 0, 17f000, fffe, 3a)
PyObject_Call+0x44(5a36a8, 1808828, 1825a50, 19b000, 163ab30, fe36c4)
PyEval_EvalFrameEx+0x13bc(0, fe36c8, 52b2f0, 1, 526d50, 1808828)
PyEval_EvalCodeEx+0x874(52b2f0, 1, 0, 1808c1c, 2, 0)
function_call+0x8c(5a3738, 1808c10, 0, 17f000, fffe, 38)
PyObject_Call+0x44(5a3738, 1808c10, 0, 1808c10, 1, 1849e50)
method_call+0x8c(5a3738, 1630450, 0, 1630440, 9, 37)
PyObject_Call+0x44(1612850, 1630450, 0, 193618, 2, 1612850)
slot_tp_call+0x7c(163ab30, 1630450, 0, 17f000, fffe, 36)
PyObject_Call+0x44(163ab30, 1630450, 0, 1630458, 1849e50, fe355c)
PyEval_EvalFrameEx+0x37b4(0, ffbfaf78, b1e0f8, 1, a873a0, 163ab30)
PyEval_EvalFrameEx+0x5c98(0, ffbfb078, b1e0b0, 1, b1db58, b1ed20)
PyEval_EvalCodeEx+0x874(b1e0b0, b0e810, 0, 180b67c, 2, 1ac03c)
function_call+0x8c(b1ecd8, 180b670, 0, 17f000, fffe, 33)
PyObject_Call+0x44(b1ecd8, 180b670, 18258a0, 19b000, 163abf0, fe2f3c)
PyEval_EvalFrameEx+0x13bc(0, fe2f40, b1ccc8, 1, b1a350, 180b670)
PyEval_EvalCodeEx+0x874(b1ccc8, 1, 0, 1844dac, 2, 0)
function_call+0x8c(b1ea50, 1844da0, 0, 17f000, fffe, 31)
PyObject_Call+0x44(b1ea50, 1844da0, 0, 1844da0, 1, e4ddf0)
method_call+0x8c(b1ea50, 16306d0, 0, 16306c0, b, 30)
PyObject_Call+0x44(176b5a8, 16306d0, 0, 1ab728, 18f708, 176b5a8)
slot_tp_call+0x7c(163abf0, 16306d0, 0, 17f000, fffe, 2f)
PyObject_Call+0x44(163abf0, 16306d0, 0, 16306d8, e4ddf0, 18374d8)
PyEval_EvalFrameEx+0x37b4(0, ffbfb768, b2e4e8, 1, ad9ce8, 163abf0)
PyEval_EvalCodeEx+0x874(b2e4e8, b1b4b0, 0, 18087bc, 2, 1ac03c)
function_call+0x8c(a00390, 18087b0, 0, 17f000, fffe, 2d)
PyObject_Call+0x44(a00390, 18087b0, 176c810, 19b000, 165c450, 182ea24)
PyEval_EvalFrameEx+0x13bc(0, 182ea28, b2e380, 1, b1ad50, 18087b0)
PyEval_EvalCodeEx+0x874(b2e380, 1, 0, 176b8ac, 2, 0)
function_call+0x8c(a002b8, 17

[issue12013] file /usr/local/lib/python3.1/lib-dynload/_socket.so: symbol inet_aton: referenced symbol not found

2011-05-05 Thread Alex Lai

New submission from Alex Lai :

Hi guys,
  I was knocked down by a error related to a socket library _socket.so when I 
was trying to compile distribute-0.6.14:

# python3 setup.py install
Before install bootstrap.
Scanning installed packages
No setuptools distribution found
running install
Traceback (most recent call last):
  File "setup.py", line 211, in 
scripts = scripts,
  File "/usr/local/lib/python3.1/distutils/core.py", line 149, in setup
dist.run_commands()
  File "/usr/local/lib/python3.1/distutils/dist.py", line 919, in run_commands
self.run_command(cmd)
  File "/usr/local/lib/python3.1/distutils/dist.py", line 938, in run_command
cmd_obj.run()
  File "build/src/setuptools/command/install.py", line 73, in run
self.do_egg_install()
  File "build/src/setuptools/command/install.py", line 82, in do_egg_install
easy_install = self.distribution.get_command_class('easy_install')
  File "build/src/setuptools/dist.py", line 361, in get_command_class
self.cmdclass[command] = cmdclass = ep.load()
  File "build/src/pkg_resources.py", line 1954, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "build/src/setuptools/command/easy_install.py", line 24, in 
from setuptools.package_index import PackageIndex
  File "build/src/setuptools/package_index.py", line 2, in 
import sys, os.path, re, urllib.parse, urllib.request, urllib.error, 
urllib.parse, shutil, random, socket, io
  File "/usr/local/lib/python3.1/urllib/request.py", line 88, in 
import http.client
  File "/usr/local/lib/python3.1/http/client.py", line 69, in 
import email.parser
  File "/usr/local/lib/python3.1/email/parser.py", line 12, in 
from email.feedparser import FeedParser
  File "/usr/local/lib/python3.1/email/feedparser.py", line 27, in 
from email import message
  File "/usr/local/lib/python3.1/email/message.py", line 17, in 
from email import utils
  File "/usr/local/lib/python3.1/email/utils.py", line 28, in 
import socket
  File "/usr/local/lib/python3.1/socket.py", line 45, in 
import _socket
ImportError: ld.so.1: python3: fatal: relocation error: file 
/usr/local/lib/python3.1/lib-dynload/_socket.so: symbol inet_aton: referenced 
symbol not found


# ls -l /usr/local/lib/python3.1/lib-dynload/_socket.so
-rwxr-xr-x   1 bin  bin   113860 Mar 23  2010 
/usr/local/lib/python3.1/lib-dynload/_socket.so
# ldd /usr/local/lib/python3.1/lib-dynload/_socket.so
libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1
libc.so.1 => /lib/libc.so.1
libm.so.2 => /lib/libm.so.2
/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1


Could anyone advise what does this error message mean?

Thanks in advance,

Alex

--
messages: 135257
nosy: alex_lai
priority: normal
severity: normal
status: open
title: file /usr/local/lib/python3.1/lib-dynload/_socket.so: symbol inet_aton: 
referenced symbol not found
type: crash
versions: Python 3.1

___
Python tracker 
<http://bugs.python.org/issue12013>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12013] file /usr/local/lib/python3.1/lib-dynload/_socket.so: symbol inet_aton: referenced symbol not found

2011-05-06 Thread Alex Lai

Alex Lai  added the comment:

Hi Eric,
   Thank you for the reply. I installed Python 3.1.2 pre-compiled by 
sunfreeware.com on one of our sparc servers.
   Would you please let me know what command I should run to test the 
installation?

Regard,

Alex

--

___
Python tracker 
<http://bugs.python.org/issue12013>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12013] file /usr/local/lib/python3.1/lib-dynload/_socket.so: symbol inet_aton: referenced symbol not found

2011-05-07 Thread Alex Lai

Alex Lai  added the comment:

The test fialed on my workstation while successul on another server. Both 
server has the same Pyton installation but different libc and libm version. I 
plan to reinstall the OS(solaris 10 pre-release) on my workstation next week 
and see how it goes.

Regards,

Alex

--

___
Python tracker 
<http://bugs.python.org/issue12013>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12033] AttributeError: 'module' object has no attribute 'scipy'

2011-05-08 Thread Alex Lai

New submission from Alex Lai :

Hi experts,
  I'm new to Python. I've just successfully compiled and installed NumPy and 
SciPy. When I run the tests, Numpy shows no issues:

# python3 -c "import numpy; numpy.test()"
Running unit tests for numpy
NumPy version 1.5.1
NumPy is installed in /usr/local/lib/python3.1/site-packages/numpy
Python version 3.1.2 (r312:79147, Mar 23 2010, 02:42:06) [GCC 3.4.6]
nose version 1.0.0

--
Ran 0 tests in 0.027s


  However, test for Scipy gave the following error:

# python3 -c "import numpy; import scipy; numpy.scipy()"
Traceback (most recent call last):
  File "", line 1, in 
AttributeError: 'module' object has no attribute 'scipy'

  Any idea what might be missing here?

Thanks in advance,

Alex

--
components: Tests
messages: 135533
nosy: alex_lai
priority: normal
severity: normal
status: open
title: AttributeError: 'module' object has no attribute 'scipy'
type: behavior
versions: Python 3.1

___
Python tracker 
<http://bugs.python.org/issue12033>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12013] file /usr/local/lib/python3.1/lib-dynload/_socket.so: symbol inet_aton: referenced symbol not found

2011-05-09 Thread Alex Lai

Alex Lai  added the comment:

I've installed it successfully on another server. That is enough. I haven't got 
time to upgrade my workstation from s10 pre-release to latest s10 release yet.


Thanks for the information,

Alex

--

___
Python tracker 
<http://bugs.python.org/issue12013>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12013] file /usr/local/lib/python3.1/lib-dynload/_socket.so: symbol inet_aton: referenced symbol not found

2011-05-11 Thread Alex Lai

Alex Lai  added the comment:

I haven't get time to upgarde my workstation yet. I don't know when I'm going 
to do it. I compile the software successfully on the other server. and that's 
enough for me.

Thanks,
Alex

--

___
Python tracker 
<http://bugs.python.org/issue12013>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12013] file /usr/local/lib/python3.1/lib-dynload/_socket.so: symbol inet_aton: referenced symbol not found

2011-05-13 Thread Alex Lai

Alex Lai  added the comment:

No bugs.

--

___
Python tracker 
<http://bugs.python.org/issue12013>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12013] file /usr/local/lib/python3.1/lib-dynload/_socket.so: symbol inet_aton: referenced symbol not found

2011-05-16 Thread Alex Lai

Alex Lai  added the comment:

I install the Python package compiled by sunfreeware.

Alex Lai

Senior System Support Specialist
TAG-IPM Application Support, Scotia Capital,
720 King St. West, 6th Floor,
Toronto, Ontario M5V 2T3
Tel: (416) 607-4789
-Original Message-
From: dario frascatani [mailto:rep...@bugs.python.org] 
Sent: May 16, 2011 3:53 AM
To: Alex Lai (Scotia Capital)
Subject: [issue12013] file /usr/local/lib/python3.1/lib-dynload/_socket.so: 
symbol inet_aton: referenced symbol not found

dario frascatani  added the comment:

I have some problem to compile python source code to my server, I can't install 
make.
My problem is only when import the smtplib.

--

___
Python tracker 
<http://bugs.python.org/issue12013>
___

---
The information transmitted is intended only for the person or entity to which 
it is addressed and may contain confidential and/or privileged material. Any 
review, re-transmission, dissemination or other use of, or taking of any action 
in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. If you received this email in error, please 
contact the sender immediately by return electronic transmission and then 
immediately delete this transmission, including all attachments, without 
copying, distributing or disclosing same. No member of the Scotiabank Group is 
liable for any errors or omissions in the content or transmission of this email 
or accepts any responsibility or liability for loss or damage arising from the 
receipt or use of this transmission. Scotiabank Group may monitor, retain 
and/or review email. Trading instructions received by e-mail or voicemail will 
not be accepted or acted upon. Unless indicated in writing, opinions contained 
in this email are those of the author and are not endorsed by any member of the 
Scotiabank Group. 

For information on some members of the Scotiabank Group: 
http://www.scotiacapital.com/EmailDisclaimer/English_entities.htm
For authorized users of the Scotia Capital trademark: 
http://www.scotiacapital.com/EmailDisclaimer/English_trademark.htm

Pour obtenir la traduction en français: 
http://www.scotiacapital.com/EmailDisclaimer/French.htm
Traducción en español: http://www.scotiacapital.com/EmailDisclaimer/Spanish.htm

--
title: file /usr/local/lib/python3.1/lib-dynload/_socket.so: symbol inet_aton: 
referenced symbol not found -> file 
/usr/local/lib/python3.1/lib-dynload/_socket.so: symbol inet_aton: 
referenced symbol not found

___
Python tracker 
<http://bugs.python.org/issue12013>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com