[ZCM] [ZC] 1372/ 3 Comment "mkzopeinstance.py fails on Mac OS X Panther"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Thu Jun 10 13:03:02 EDT 2004


Issue #1372 Update (Comment) "mkzopeinstance.py fails on Mac OS X Panther"
 Status Rejected, Zope/bug medium
To followup, visit:
  http://collector.zope.org/Zope/1372

==============================================================
= Comment - Entry #3 by jens on Jun 10, 2004 1:02 pm

The solution is to use the "pythonw" binary to run the script, which then allows any system authentication to work correctly. Also see the "Zope and Python on Mac OS X":http://zope.org/Members/jens/docs/Document.2003-12-27.2431/document_view document.

jens
________________________________________
= Reject - Entry #2 by ajung on Jun 10, 2004 4:21 am

 Status: Pending => Rejected

This is actually a Python problem (if any). mkzopeinstance is actually working fine  (tested on several MacOSX
systems). The problem seems to be that the getpass module 
of Python using some Mac specific UI code to retrieve
the password from the user which does not seem to work on your side. 
________________________________________
= Request - Entry #1 by Selz on Jun 10, 2004 3:02 am

I followed Jens Vagelpohl's directions for installing Python 2.3.4 into /usr/local followed by Zope 2.7.0 into /opt/Zope-2.7. Both installations completed successfully through their make installs. However when executing: /opt/Zope-2.7/bin/mkzopeinstance.py it fails with a MacOS.Error: (-1713, 'no user interaction is allowed'). 

Darwin::dekiefer:10-> /opt/Zope-2.7/bin/mkzopeinstance.py
Please choose a directory in which you'd like to install
Zope "instance home" files such as database files, configuration
files, etc.

Directory: /Volumes/Big_Mother/zope_instance_home
/usr/local/lib/python2.3/termios.py:7: DeprecationWarning: the TERMIOS module is deprecated; please use termios
  DeprecationWarning)
Please choose a username and password for the initial user.
These will be the credentials you use to initially manage
your new Zope instance.

Username: dekiefer
/usr/local/lib/python2.3/fcntl.py:7: DeprecationWarning: the FCNTL module is deprecated; please use fcntl
  DeprecationWarning)
Traceback (most recent call last):
  File "/opt/Zope-2.7/bin/mkzopeinstance.py", line 174, in ?
    main()
  File "/opt/Zope-2.7/bin/mkzopeinstance.py", line 92, in main
    user, password = get_inituser()
  File "/opt/Zope-2.7/bin/mkzopeinstance.py", line 155, in get_inituser
    passwd = getpass.getpass("Password: ")
  File "/usr/local/lib/python2.3/plat-mac/EasyDialogs.py", line 150, in AskPassword
    _interact()
  File "/usr/local/lib/python2.3/plat-mac/EasyDialogs.py", line 53, in _interact
    AE.AEInteractWithUser(50000000)
MacOS.Error: (-1713, 'no user interaction is allowed')
Darwin::dekiefer:11-> 

==============================================================




More information about the Zope-Collector-Monitor mailing list