I have installed the prerequisites properly and I checked ... working...
What this error shows?
#make install Compiling /home/mailman//Mailman/pythonlib/tempfile.py ... Compiling /home/mailman//Mailman/versions.py ... Traceback (innermost last): File "bin/update", line 32, in ? from Mailman import MailList File "/home/mailman/Mailman/MailList.py", line 41, in ? from Mailman.ListAdmin import ListAdmin File "/home/mailman/Mailman/ListAdmin.py", line 33, in ? from Mailman import Message File "/home/mailman/Mailman/Message.py", line 30, in ? import sha ImportError: No module named sha
Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/
"gv" == gv venkateswaran <gv_indian@yahoo.com> writes:
gv> I have installed the prerequisites properly and I
gv> checked ... working...
gv> What this error shows?
| ImportError: No module named sha
What version of Python are you using? It doesn't have the sha module enabled. Depending on the Python version, you may have to edit Python's Modules/Setup file to enable it. It should be auto-enabled in Python 2.1.
-Barry
"v" == venkateswaran <gv_indian@yahoo.com> 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.
-Barry
I have tried with pythin1.5.2 & python2.0. But same error. How to enable sha module?. In Modules/Setup there is a line sha shamodule.c. Is there anything more than this?
Thanks for your reply, Venkatesh
"gv" == gv venkateswaran <gv_indian@yahoo.com> writes:
gv> I have installed the prerequisites properly and I gv> checked ... working... gv> What this error shows? | ImportError: No module named sha
What version of Python are you using? It doesn't have the sha module enabled. Depending on the Python version, you may have to edit Python's Modules/Setup file to enable it. It should be auto-enabled in Python 2.1.
-Barry
Mailman-Users maillist - Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users
Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
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.
Thanks, Venkatesh
"v" == venkateswaran <gv_indian@yahoo.com> 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.
-Barry
Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
"v" == venkateswaran <gv_indian@yahoo.com> writes:
v> Still I am in trouble. I have not commented out the line shared
v> in Setup. It compiled as a static and could see shamodule.o in
v> Modules directory. I did not get any errors while
v> installing. run make test, lists the modules with "test_sha"
v> without any comments. Still I am getting the same error sha
v> module import error. I too tried to install python2.1 also and
v> failed to figure it out.
v> I do not know what should be the next step.
I can't imagine what your problem is. Are you sure that Mailman is using the exact same executable as you built and tested? There isn't another Python executable somewhere else on your path that it is finding instead. Try using Mailman's --with-python configure switch.
Python 2.1 should be as easy as just typing "configure ; make install". When all else fails try that.
Otherwise, I'm stumped.
-Barry
On Mon, May 28, 2001 at 12:32:41PM -0400, Barry A. Warsaw wrote:
"v" == venkateswaran <gv_indian@yahoo.com> writes:
v> Still I am in trouble. I have not commented out the line shared v> in Setup. It compiled as a static and could see shamodule.o in v> Modules directory. I did not get any errors while v> installing. run make test, lists the modules with "test_sha" v> without any comments. Still I am getting the same error sha v> module import error. I too tried to install python2.1 also and v> failed to figure it out. v> I do not know what should be the next step.
I can't imagine what your problem is. Are you sure that Mailman is using the exact same executable as you built and tested? There isn't another Python executable somewhere else on your path that it is finding instead. Try using Mailman's --with-python configure switch.
Python 2.1 should be as easy as just typing "configure ; make install". When all else fails try that.
I installed Mailman-2.0.5 with Python-2.1, and also had module import errors. I discovered that the problem is that Python-2.1's "make install" installed files into /usr/lib/python2.1 with severely FUBARed permissions.
Try this:
chown -R root.root /usr/lib/python2.1 chmod -R go-w,a+rX /usr/lib/python2.1
Then see if Mailman works better for you.
-- Linux Now! ..........Because friends don't let friends use Microsoft. phil stracchino -- the renaissance man -- mystic zen biker geek Vr00m: 2000 Honda CBR929RR -- Cage: 2000 Dodge Intrepid R/T Previous vr00mage: 1986 VF500F (sold), 1991 VFR750F3 (foully murdered)
"v" == venkateswaran <gv_indian@yahoo.com> writes:
v> Still I am in trouble. I have not commented out the line shared
v> in Setup. It compiled as a static and could see shamodule.o in
v> Modules directory. I did not get any errors while
v> installing. run make test, lists the modules with "test_sha"
v> without any comments. Still I am getting the same error sha
v> module import error. I too tried to install python2.1 also and
v> failed to figure it out.
v> I do not know what should be the next step.
When you built the Python that passes test_sha, did you do a "make install"?
The only other thing I can think is that you've got a different (and broken) python executable on your path earlier than the one you think you're getting (i.e. the one that has a working sha module). Try using --with-python option to configure to point it exactly at the python executable that seems to work for you.
-Barry
participants (4)
-
barry@digicool.com
-
gv venkateswaran
-
Phil Stracchino
-
venkateswaran