ImportError: No module named sha
Hi Zopers, i'm trying to install zope on FreeBSD 2.2.8. i got this error. Have you ever seen it before? i know sha has to do with the way that the password is encrypted but i didn't realize that i might need something other than python. i'm using the latest source. Any thoughts? i appreciate the help. ------------------------------------------------------------------------------ setting dir permissions ------------------------------------------------------------------------------ creating default database chmod 0600 /u/.2/p/portrait/Zope-2.1.4-src/var/Data.fs Traceback (innermost last): File "w_pcgi.py", line 111, in ? if __name__=='__main__': main(sys.argv[0]) File "w_pcgi.py", line 109, in main import wo_pcgi; wo_pcgi.main(me) File "/u/.2/p/portrait/Zope-2.1.4-src/wo_pcgi.py", line 107, in main import zpasswd; zpasswd.write_access(home, user, group) File "/u/.2/p/portrait/Zope-2.1.4-src/zpasswd.py", line 90, in ? import sys, string, sha, binascii, whrandom, getopt, getpass, os ImportError: No module named sha -- ~darcy w. christ Elegant Communications Inc. 416.362.9772 x222 | 416.362.8324 fax
This happens usually when you try to install Zope using Python 1.5.1 instead of 1.5.2 "darcy w. christ" wrote:
Hi Zopers,
i'm trying to install zope on FreeBSD 2.2.8. i got this error. Have you ever seen it before? i know sha has to do with the way that the password is encrypted but i didn't realize that i might need something other than python. i'm using the latest source. Any thoughts? i appreciate the help.
------------------------------------------------------------------------------ setting dir permissions ------------------------------------------------------------------------------ creating default database chmod 0600 /u/.2/p/portrait/Zope-2.1.4-src/var/Data.fs Traceback (innermost last): File "w_pcgi.py", line 111, in ? if __name__=='__main__': main(sys.argv[0]) File "w_pcgi.py", line 109, in main import wo_pcgi; wo_pcgi.main(me) File "/u/.2/p/portrait/Zope-2.1.4-src/wo_pcgi.py", line 107, in main import zpasswd; zpasswd.write_access(home, user, group) File "/u/.2/p/portrait/Zope-2.1.4-src/zpasswd.py", line 90, in ? import sys, string, sha, binascii, whrandom, getopt, getpass, os ImportError: No module named sha
-- ~darcy w. christ Elegant Communications Inc. 416.362.9772 x222 | 416.362.8324 fax
_______________________________________________ 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 )
-- Chris McDonough - Digital Creations, Inc. Publishers of Zope - http://www.zope.org
Hi, ----- Original Message ----- From: "darcy w. christ" <darcy@elegant.com>
Hi Zopers,
i'm trying to install zope on FreeBSD 2.2.8. i got this error. Have you ever seen it before? i know sha has to do with the way that the password is encrypted but i didn't realize that i might need something other than python. i'm using the latest source. Any thoughts? i appreciate the help.
if you used the Python Port, then you have to enable the sha module manualy. Therefore you must edit the file Setup in the Python Port directory, e.g. /var/port/lang/python/files/Setup Uncomment the line with the sha module or update your ports collection (at least in the 3.x stable ports version sha is enabled by default) Ciao, Jochen
participants (3)
-
Chris McDonough -
darcy w. christ -
Jochen Knuth