[Numpy-discussion] numpy build error on Solaris, No module named _md5

2008-12-09 Thread Gong, Shawn (Contractor)
hi list,

I tried to build numpy 1.2.1 on Solaris 9 with gcc 3.4.6

when I typed python setup.py build, I got error from hashlib.py
  File /home/sgong/dev181/dist/lib/python2.5/hashlib.py, line 133, in
module
md5 = __get_builtin_constructor('md5')
  File /home/sgong/dev181/dist/lib/python2.5/hashlib.py, line 60, in
__get_builtin_constructor
import _md5
ImportError: No module named _md5

I then tried python 2.6.1 instead of 2.5.2, but got the same error.
I did not get the error while building on Linux. But I performed steps
on Linux:
1) copy *.a Atlas libraries to my local_install/atlas/
2) ranlib *.a
3) created a site.cfg
Do I need to do the same on Solaris?

Any help is appreciated.

thanks,
Shawn



___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] numpy build error on Solaris, No module named _md5

2008-12-09 Thread Matthieu Brucher
Hi,

Does:

 import md5

work? If it doesn't, it's a packaging problem. md5 must be available.

Matthieu

2008/12/9 Gong, Shawn (Contractor) [EMAIL PROTECTED]:
 hi list,

 I tried to build numpy 1.2.1 on Solaris 9 with gcc 3.4.6

 when I typed python setup.py build, I got error from hashlib.py

   File /home/sgong/dev181/dist/lib/python2.5/hashlib.py, line 133, in
 module

 md5 = __get_builtin_constructor('md5')

   File /home/sgong/dev181/dist/lib/python2.5/hashlib.py, line 60, in
 __get_builtin_constructor

 import _md5

 ImportError: No module named _md5

 I then tried python 2.6.1 instead of 2.5.2, but got the same error.

 I did not get the error while building on Linux. But I performed steps on
 Linux:

 1) copy *.a Atlas libraries to my local_install/atlas/

 2) ranlib *.a

 3) created a site.cfg

 Do I need to do the same on Solaris?

 Any help is appreciated.

 thanks,

 Shawn

 ___
 Numpy-discussion mailing list
 Numpy-discussion@scipy.org
 http://projects.scipy.org/mailman/listinfo/numpy-discussion





-- 
Information System Engineer, Ph.D.
Website: http://matthieu-brucher.developpez.com/
Blogs: http://matt.eifelle.com and http://blog.developpez.com/?blog=92
LinkedIn: http://www.linkedin.com/in/matthieubrucher
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] numpy build error on Solaris, No module named _md5

2008-12-09 Thread David Cournapeau
On Wed, Dec 10, 2008 at 1:00 AM, Gong, Shawn (Contractor)
[EMAIL PROTECTED] wrote:
 hi list,

 Do I need to do the same on Solaris?

This has nothing to do with ATLAS. You did not build correctly python,
or the python you are using is not built correctly. _md5 is a module
from python, not from numpy.

cheers,

David
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] numpy build error on Solaris, No module named _md5

2008-12-09 Thread Gong, Shawn (Contractor)
hi Matthieu,

import md5 doesn't work. I got:

 import md5
Traceback (most recent call last):
  File stdin, line 1, in module
  File /home/sgong/dev181/dist.org/lib/python2.5/md5.py, line 6, in
module
from hashlib import md5
  File /home/sgong/dev181/dist.org/lib/python2.5/hashlib.py, line 133,
in module
md5 = __get_builtin_constructor('md5')
  File /home/sgong/dev181/dist.org/lib/python2.5/hashlib.py, line 60,
in __get_builtin_constructor
import _md5
ImportError: No module named _md5


But I followed the same steps to build python 2.5.2 as on Linux:
config
make clean
make
make -i install  (because there is an older python 2.5.1 on my
/usr/local/bin/)


thanks,
Shawn


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matthieu
Brucher
Sent: Tuesday, December 09, 2008 11:45 AM
To: Discussion of Numerical Python
Subject: Re: [Numpy-discussion] numpy build error on Solaris,No module
named _md5

Hi,

Does:

 import md5

work? If it doesn't, it's a packaging problem. md5 must be available.

Matthieu

2008/12/9 Gong, Shawn (Contractor) [EMAIL PROTECTED]:
 hi list,

 I tried to build numpy 1.2.1 on Solaris 9 with gcc 3.4.6

 when I typed python setup.py build, I got error from hashlib.py

   File /home/sgong/dev181/dist/lib/python2.5/hashlib.py, line 133,
in
 module

 md5 = __get_builtin_constructor('md5')

   File /home/sgong/dev181/dist/lib/python2.5/hashlib.py, line 60, in
 __get_builtin_constructor

 import _md5

 ImportError: No module named _md5

 I then tried python 2.6.1 instead of 2.5.2, but got the same error.

 I did not get the error while building on Linux. But I performed steps
on
 Linux:

 1) copy *.a Atlas libraries to my local_install/atlas/

 2) ranlib *.a

 3) created a site.cfg

 Do I need to do the same on Solaris?

 Any help is appreciated.

 thanks,

 Shawn

 ___
 Numpy-discussion mailing list
 Numpy-discussion@scipy.org
 http://projects.scipy.org/mailman/listinfo/numpy-discussion





-- 
Information System Engineer, Ph.D.
Website: http://matthieu-brucher.developpez.com/
Blogs: http://matt.eifelle.com and http://blog.developpez.com/?blog=92
LinkedIn: http://www.linkedin.com/in/matthieubrucher
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] numpy build error on Solaris, No module named _md5

2008-12-09 Thread Matthieu Brucher
You should ask on a general Python list, as it's a Python problem, not
a numpy one ;)

Matthieu

PS: look at the log when you built Python, there must be a mention of
the not building of the md5 module.

2008/12/9 Gong, Shawn (Contractor) [EMAIL PROTECTED]:
 hi Matthieu,

 import md5 doesn't work. I got:

 import md5
 Traceback (most recent call last):
  File stdin, line 1, in module
  File /home/sgong/dev181/dist.org/lib/python2.5/md5.py, line 6, in
 module
from hashlib import md5
  File /home/sgong/dev181/dist.org/lib/python2.5/hashlib.py, line 133,
 in module
md5 = __get_builtin_constructor('md5')
  File /home/sgong/dev181/dist.org/lib/python2.5/hashlib.py, line 60,
 in __get_builtin_constructor
import _md5
 ImportError: No module named _md5


 But I followed the same steps to build python 2.5.2 as on Linux:
 config
 make clean
 make
 make -i install  (because there is an older python 2.5.1 on my
 /usr/local/bin/)


 thanks,
 Shawn


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Matthieu
 Brucher
 Sent: Tuesday, December 09, 2008 11:45 AM
 To: Discussion of Numerical Python
 Subject: Re: [Numpy-discussion] numpy build error on Solaris,No module
 named _md5

 Hi,

 Does:

 import md5

 work? If it doesn't, it's a packaging problem. md5 must be available.

 Matthieu

 2008/12/9 Gong, Shawn (Contractor) [EMAIL PROTECTED]:
 hi list,

 I tried to build numpy 1.2.1 on Solaris 9 with gcc 3.4.6

 when I typed python setup.py build, I got error from hashlib.py

   File /home/sgong/dev181/dist/lib/python2.5/hashlib.py, line 133,
 in
 module

 md5 = __get_builtin_constructor('md5')

   File /home/sgong/dev181/dist/lib/python2.5/hashlib.py, line 60, in
 __get_builtin_constructor

 import _md5

 ImportError: No module named _md5

 I then tried python 2.6.1 instead of 2.5.2, but got the same error.

 I did not get the error while building on Linux. But I performed steps
 on
 Linux:

 1) copy *.a Atlas libraries to my local_install/atlas/

 2) ranlib *.a

 3) created a site.cfg

 Do I need to do the same on Solaris?

 Any help is appreciated.

 thanks,

 Shawn

 ___
 Numpy-discussion mailing list
 Numpy-discussion@scipy.org
 http://projects.scipy.org/mailman/listinfo/numpy-discussion





 --
 Information System Engineer, Ph.D.
 Website: http://matthieu-brucher.developpez.com/
 Blogs: http://matt.eifelle.com and http://blog.developpez.com/?blog=92
 LinkedIn: http://www.linkedin.com/in/matthieubrucher
 ___
 Numpy-discussion mailing list
 Numpy-discussion@scipy.org
 http://projects.scipy.org/mailman/listinfo/numpy-discussion
 ___
 Numpy-discussion mailing list
 Numpy-discussion@scipy.org
 http://projects.scipy.org/mailman/listinfo/numpy-discussion




-- 
Information System Engineer, Ph.D.
Website: http://matthieu-brucher.developpez.com/
Blogs: http://matt.eifelle.com and http://blog.developpez.com/?blog=92
LinkedIn: http://www.linkedin.com/in/matthieubrucher
___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion


Re: [Numpy-discussion] numpy build error on Solaris, No module named _md5

2008-12-09 Thread Michael Abshoff
Gong, Shawn (Contractor) wrote:
 hi list,

Hi Shawn,

 I tried to build numpy 1.2.1 on Solaris 9 with gcc 3.4.6
 
 when I typed “python setup.py build”, I got error from hashlib.py
 
   File /home/sgong/dev181/dist/lib/python2.5/hashlib.py, line 133, in 
 module
 
 md5 = __get_builtin_constructor('md5')
 
   File /home/sgong/dev181/dist/lib/python2.5/hashlib.py, line 60, in 
 __get_builtin_constructor
 
 import _md5
 
 ImportError: No module named _md5
 
 I then tried python 2.6.1 instead of 2.5.2, but got the same error.
 
 I did not get the error while building on Linux. But I performed steps 
 on Linux:
 
 1) copy *.a Atlas libraries to my local_install/atlas/
 
 2) ranlib *.a
 
 3) created a site.cfg
 
 Do I need to do the same on Solaris?
 
 Any help is appreciated.

This is a pure Python issue and has nothing to do with numpy. When 
Python was build for that install it did either not have access to 
OpenSSL or the Sun crypto libs or you are missing some bits that need to 
be installed on Solaris. Did you build that Python on your own or where 
did it come from?

 thanks,
 
 Shawn
 

Cheers,

Michael
 
 
 
 
 ___
 Numpy-discussion mailing list
 Numpy-discussion@scipy.org
 http://projects.scipy.org/mailman/listinfo/numpy-discussion

___
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion