Subject: Re: Python 2.3.3 and Zope 2.7
To: None <netbsd-users@NetBSD.org>
From: Bob Bernstein <rs@bernstein.providence.ri.us>
List: netbsd-users
Date: 04/28/2004 23:25:35
On Tue, 27 Apr 2004 01:55:23 -0400, Bob Bernstein said:

>  Traceback (most recent call last):
>    File "/usr/local/lib/Zope2.7/lib/python/Zope/Startup/run.py", line 49, in ?
>      run()
>    File "/usr/local/lib/Zope2.7/lib/python/Zope/Startup/run.py", line 19, in run
>      start_zope(opts.configroot)
>    File "/usr/local/lib/Zope2.7/lib/python/Zope/Startup/__init__.py", line 48, in start_zope
>      starter.dropPrivileges()
>    File "/usr/local/lib/Zope2.7/lib/python/Zope/Startup/__init__.py", line 203, in dropPrivileges
>      return dropPrivileges(self.cfg)
>    File "/usr/local/lib/Zope2.7/lib/python/Zope/Startup/__init__.py", line 347, in dropPrivileges
>      initgroups.initgroups(effective_user, gid)
>  AttributeError: 'module' object has no attribute 'initgroups'

Just for the record, this problem is addressed in the Zope Collector:

http://zope.org/Collectors/Zope/1301

The fix is to comment out lines 347-358:

  #try:
      #import initgroups
      #initgroups.initgroups(effective_user, gid)
      #os.setgid(gid)
  #except OSError:
  #    zLOG.LOG("Zope", zLOG.INFO,
  #		'Could not set group id of effective user',
  #		error=sys.exc_info())

of $ZOPE/lib/python/Zope/Startup/__init__.py


-- 
Bob Bernstein

If you're going to do something tonight that you'll be sorry for
tomorrow morning, sleep late.
				     -- Henny Youngman