Silly me, I lost my password to the zope-management interface. I try to set a new one via the shell, but I receive following error: [root@*** zope]# python zpasswd.py inituser Username: admin Password: *** Verify password: *** Please choose a format from: SHA - SHA-1 hashed password (default) CRYPT - UNIX-style crypt password CLEARTEXT - no protection Encoding: SHA Traceback (innermost last): File "zpasswd.py", line 200, in ? if __name__=='__main__': main(sys.argv) File "zpasswd.py", line 184, in main if encoding.upper() in ['SHA', 'CRYPT', 'CLEARTEXT']: AttributeError: 'string' object has no attribute 'upper' Anyone know a solution? Since execution halts, the new inituser-account is not active, so I can't login. Wouter Vanden Hove
On Tue, Jul 22, 2003 at 08:56:42PM +0200, Wouter Vanden Hove wrote:
Silly me, I lost my password to the zope-management interface. I try to set a new one via the shell, but I receive following error:
(snip)
AttributeError: 'string' object has no attribute 'upper'
Sounds like this system has a very old python installed somewhere. Strings have had the 'upper' method for a long time now. Try just running this: python ... and see what version it says. You may need to run the script with an explicit python version, maybe python2.1 zpasswd.py or just python2 zpasswd.py -- Paul Winkler http://www.slinkp.com Look! Up in the sky! It's OVERSHOE EYE FROM MONACO! (random hero from isometric.spaceninja.com)
Use "python2" instead of "python" (you've got it installed somewhere ;-) On Tue, 2003-07-22 at 14:56, Wouter Vanden Hove wrote:
Silly me, I lost my password to the zope-management interface. I try to set a new one via the shell, but I receive following error:
[root@*** zope]# python zpasswd.py inituser Username: admin Password: *** Verify password: ***
Please choose a format from:
SHA - SHA-1 hashed password (default) CRYPT - UNIX-style crypt password CLEARTEXT - no protection
Encoding: SHA Traceback (innermost last): File "zpasswd.py", line 200, in ? if __name__=='__main__': main(sys.argv) File "zpasswd.py", line 184, in main if encoding.upper() in ['SHA', 'CRYPT', 'CLEARTEXT']: AttributeError: 'string' object has no attribute 'upper'
Anyone know a solution? Since execution halts, the new inituser-account is not active, so I can't login.
Wouter Vanden Hove
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (3)
-
Chris McDonough -
Paul Winkler -
Wouter Vanden Hove