Still I am in trouble. I have not commented out the line shared in Setup. It compiled as a static and could see shamodule.o in Modules directory. I did not get any errors while installing. run make test, lists the modules with "test_sha" without any comments. Still I am getting the same error sha module import error. I too tried to install python2.1 also and failed to figure it out.
I do not know what should be the next step.
"v" == venkateswaran firstname.lastname@example.org writes:
v> I have tried with pythin1.5.2 & python2.0. But same error. How v> to enable sha module?. In Modules/Setup there is a line sha v> shamodule.c. Is there anything more than this?
Nope, although I'm quite surprised this isn't enabled by default. In vanilla Python 2.0's Setup file, sha is enabled so it /should/ be compiled in by default.
Did you uncomment the *shared* line? If so, perhaps something broke when you did a "make install" and you didn't notice it (i.e. shamodule.so got built, but not installed correctly). If *shared* is commented out, then shamodule.o should be statically linked into the Python executable.
Did you run "make tests" when you built Python? Did you get any errors during that process? There's definitely a test_sha.py test for that module.
Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com