473,503 Members | 1,749 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python in non-standard location erring with "No module named _sha256"

I'm running into the below "No modules named _sha256" issue, with a
python installed in a non-standard location.

$ python
Python 2.5.2 (r252:60911, May 20 2008, 09:46:50)
[GCC 3.3.3 (SuSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>import md5
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/ws/ompi-tools/lib/python2.5/md5.py", line 6, in <module>
from hashlib import md5
File "/ws/ompi-tools/lib/python2.5/hashlib.py", line 135, in
<module>
sha224 = __get_builtin_constructor('sha224')
File "/ws/ompi-tools/lib/python2.5/hashlib.py", line 63, in
__get_builtin_constructor
import _sha256
ImportError: No module named _sha256

Googling around, this seems to be related to OpenSSL being in a non-
standard location? I've edited the Setup file to set $(SSL) to the non-
standard location. Now Python compiles fine, but I still get the above
error.

Any help would be much appreciated.

Thanks,
Ethan
Jun 27 '08 #1
2 3755
On May 20, 11:27*am, emallove <ethan.mall...@sun.comwrote:
I'm running into the below "No modules named _sha256" issue, with a
python installed in a non-standard location.

$ python
Python 2.5.2 (r252:60911, May 20 2008, 09:46:50)
[GCC 3.3.3 (SuSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.>>import md5

Traceback (most recent call last):
* File "<stdin>", line 1, in <module>
* File "/ws/ompi-tools/lib/python2.5/md5.py", line 6, in <module>
* * from hashlib import md5
* File "/ws/ompi-tools/lib/python2.5/hashlib.py", line 135, in
<module>
* * sha224 = __get_builtin_constructor('sha224')
* File "/ws/ompi-tools/lib/python2.5/hashlib.py", line 63, in
__get_builtin_constructor
* * import _sha256
ImportError: No module named _sha256

Googling around, this seems to be related to OpenSSL being in a non-
standard location? I've edited the Setup file to set $(SSL) to the non-
standard location. Now Python compiles fine, but I still get the above
error.

Any help would be much appreciated.

Thanks,
Ethan
One solution was to just use Python 2.3.7 (instead of 2.5).

-Ethan
Jun 27 '08 #2
Maybe you run the configure, make, make install without addind devel
packages on your system. I mean:

openssl-devel
readline-devel
....

Regards,

emallove wrote:
I'm running into the below "No modules named _sha256" issue, with a
python installed in a non-standard location.

$ python
Python 2.5.2 (r252:60911, May 20 2008, 09:46:50)
[GCC 3.3.3 (SuSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>import md5
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/ws/ompi-tools/lib/python2.5/md5.py", line 6, in <module>
from hashlib import md5
File "/ws/ompi-tools/lib/python2.5/hashlib.py", line 135, in
<module>
sha224 = __get_builtin_constructor('sha224')
File "/ws/ompi-tools/lib/python2.5/hashlib.py", line 63, in
__get_builtin_constructor
import _sha256
ImportError: No module named _sha256

Googling around, this seems to be related to OpenSSL being in a non-
standard location? I've edited the Setup file to set $(SSL) to the non-
standard location. Now Python compiles fine, but I still get the above
error.

Any help would be much appreciated.

Thanks,
Ethan
Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1495
by: Carsten Gehling | last post by:
I've tried to install pso on my webserver and made the first test example. When trying to run it (eg. from the prompt), I get the following error: Traceback (most recent call last): File...
0
4539
by: Carsten Gehling | last post by:
Figured out myself - I just removed the line with "from url import Url" -it doesn't seem to be used anywhere ;-) - Carsten > -----Oprindelig meddelelse----- > Fra:...
2
17624
by: x-herbert | last post by:
Hi, I have a small test to "compile" al litle script as a WMI-Tester. The script include a wmi-wrapper and "insert" the Win32-modeles. here the code: my "WMI-Tester.py" ----- import wmi
0
6269
by: M. Lavasani | last post by:
Hi I am trying to test Python-2.3. Any solution for this problem please: >>>gmake test case $MAKEFLAGS in \ *-s*)...
0
2719
by: F. GEIGER | last post by:
py2exe and datetime -> No module named datetime I've begun to use the stdlib module datetime instead of my home brewn classes. Since then a py2exe app doesn't run anymore: Traceback (most...
1
3761
by: ye juan | last post by:
Hi, all I have some questions to ask: 1. How can I add a standard module named "datetime" in Jython when the error happens :"Traceback (innermost last): File "C:\python\test.py", line 3, in...
0
2222
by: Nico Grubert | last post by:
Dear list members, I have installed Python 2.4.3. and PIL 1.1.5. on a Suse Linux 10 64 Bit machine. If I try I get this error: ImportError: No module named _imagingft
4
3519
by: Neefs | last post by:
hi All, i'm using python 2.4, i get the subject error when i try to import a module (in .pyc format). Following are the details of the error: >>> import thegreek Traceback (most recent...
2
10333
by: rajevar | last post by:
hi, i have seen various post related to this topic but i couldnt resolve my issue yet. Im using python version 2.5 on Linux environment this is the error im getting if i try to import zlib ...
0
7202
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7086
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7280
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5014
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
380
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.