I am trying to change the superuser password but I am getting this error. #python zpasswd.py Traceback (innermost last): File "zpasswd.py", line 90, in ? import sys, string, sha, binascii, whrandom, getopt, getpass, os ImportError: No module named sha Matt
On Sun, 19 Mar 2000, matt burleigh wrote:
import sys, string, sha, binascii, whrandom, getopt, getpass, os ImportError: No module named sha
sha is an optional python module. Presumably it wasn't included in Modules/Setup when you compiled your python, or wasn't included in the binary set if you got a binary distrabution. (It should be a dynamically loaded module). The module is used if you request sha encryption on the password. If you choose some other encryption type the sha routines won't get called. So as a quick fix you could remove the sha from the import line. But you probably really want to recompile python to make sure that all modules Zope uses are included. Hopefully there's a list somewhere, though I can't recally seeing one...I just enabled all the modules I could <grin>. --RDM
"R. David Murray" wrote:
On Sun, 19 Mar 2000, matt burleigh wrote:
import sys, string, sha, binascii, whrandom, getopt, getpass, os ImportError: No module named sha
sha is an optional python module.
It's now a standard module as of 1.5.2. I presume matt is using an old python or turned off sha. -Michel
You are either not using the right python, or you are using an old python. Python 1.5.2, including the python that comes with Zope, comes standard with the sha module. -Michel matt burleigh wrote:
I am trying to change the superuser password but I am getting this error.
#python zpasswd.py Traceback (innermost last): File "zpasswd.py", line 90, in ? import sys, string, sha, binascii, whrandom, getopt, getpass, os ImportError: No module named sha
Matt
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (3)
-
matt burleigh -
Michel Pelletier -
R. David Murray