Error 'No module named _sha256' when importing random in python 2.7.1

Chris Rebert clp2 at rebertia.com
Tue Sep 27 11:51:30 CEST 2011


On Tue, Sep 27, 2011 at 2:28 AM, Wong Wah Meng-R32813
<r32813 at freescale.com> wrote:
> I just built python 2.7.1 on my HP Itanium 64-bit platform, using aCC. I encountered following issue when importing the random module. Does anyone know why am I getting this error? Thanks in advance for your reply.
<snip>
>  File "hashlib.py", line 74, in __get_builtin_constructor
>    import _sha256
> ImportError: No module named _sha256

Did you get a message along the lines of "Python build finished, but
the necessary bits to build these modules were not found:" when you
built Python?

Cheers,
Chris



More information about the Python-list mailing list