-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 01/06/2011 02:10 PM, Dan Gaibel wrote:
> As luck would have it, I found Zope 2.8 in Macports. Ran  
> mkzopeinstance without trouble, but starting up zopectl yields:
> 
> Traceback (most recent call last):
>    File "/opt/local/libexec/Zope/lib/python/Zope2/Startup/zopectl.py",  
> line 322, in <module>
>      main()
>    File "/opt/local/libexec/Zope/lib/python/Zope2/Startup/zopectl.py",  
> line 280, in main
>      options.realize(args)
>    File "/opt/local/libexec/Zope/lib/python/Zope2/Startup/zopectl.py",  
> line 91, in realize
>      ZDOptions.realize(self, *args, **kw)
>    File "/opt/local/libexec/Zope/lib/python/zdaemon/zdoptions.py",  
> line 273, in realize
>      self.load_schema()
>    File "/opt/local/libexec/Zope/lib/python/zdaemon/zdoptions.py",  
> line 321, in load_schema
>      self.schema = ZConfig.loadSchema(self.schemafile)
>    File "/opt/local/libexec/Zope/lib/python/ZConfig/loader.py", line  
> 31, in loadSchema
>      return SchemaLoader().loadURL(url)
>    File "/opt/local/libexec/Zope/lib/python/ZConfig/loader.py", line  
> 65, in loadURL
>      return self.loadResource(r)
>    File "/opt/local/libexec/Zope/lib/python/ZConfig/loader.py", line  
> 159, in loadResource
>      schema = ZConfig.schema.parseResource(resource, self)
>    File "/opt/local/libexec/Zope/lib/python/ZConfig/schema.py", line  
> 27, in parseResource
>      xml.sax.parse(resource.file, parser)
>    File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/ 
> lib/python2.6/xml/sax/__init__.py", line 33, in parse
>      parser.parse(source)
>    File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/ 
> lib/python2.6/xml/sax/expatreader.py", line 107, in parse
>      xmlreader.IncrementalParser.parse(self, source)
>    File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/ 
> lib/python2.6/xml/sax/xmlreader.py", line 123, in parse
>      self.feed(buffer)
>    File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/ 
> lib/python2.6/xml/sax/expatreader.py", line 207, in feed
>      self._parser.Parse(data, isFinal)
>    File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/ 
> lib/python2.6/xml/sax/expatreader.py", line 301, in start_element
>      self._cont_handler.startElement(name, AttributesImpl(attrs))
>    File "/opt/local/libexec/Zope/lib/python/ZConfig/schema.py", line  
> 103, in startElement
>      getattr(self, "start_" + name)(attrs)
>    File "/opt/local/libexec/Zope/lib/python/ZConfig/schema.py", line  
> 306, in start_import
>      src = self._loader.schemaComponentSource(pkg, file)
>    File "/opt/local/libexec/Zope/lib/python/ZConfig/loader.py", line  
> 176, in schemaComponentSource
>      __import__(package)
>    File "/opt/local/libexec/Zope/lib/python/ZServer/__init__.py", line  
> 41, in <module>
>      from HTTPServer import zhttp_server, zhttp_handler
>    File "/opt/local/libexec/Zope/lib/python/ZServer/HTTPServer.py",  
> line 45, in <module>
>      from HTTPResponse import make_response
>    File "/opt/local/libexec/Zope/lib/python/ZServer/HTTPResponse.py",  
> line 23, in <module>
>      from ZPublisher.HTTPResponse import HTTPResponse
>    File "/opt/local/libexec/Zope/lib/python/ZPublisher/__init__.py",  
> line 24, in <module>
>      from Publish import publish_module, Retry
>    File "/opt/local/libexec/Zope/lib/python/ZPublisher/Publish.py",  
> line 20, in <module>
>      from Request import Request
>    File "/opt/local/libexec/Zope/lib/python/ZPublisher/Request.py",  
> line 13, in <module>
>      import HTTPRequest
>    File "/opt/local/libexec/Zope/lib/python/ZPublisher/ 
> HTTPRequest.py", line 18, in <module>
>      from BaseRequest import BaseRequest
>    File "/opt/local/libexec/Zope/lib/python/ZPublisher/ 
> BaseRequest.py", line 41, in <module>
>      from AccessControl.ZopeSecurityPolicy import getRoles
>    File "/opt/local/libexec/Zope/lib/python/AccessControl/ 
> __init__.py", line 17, in <module>
>      from Implementation import setImplementation
>    File "/opt/local/libexec/Zope/lib/python/AccessControl/ 
> Implementation.py", line 98, in <module>
>      setImplementation("C")
>    File "/opt/local/libexec/Zope/lib/python/AccessControl/ 
> Implementation.py", line 51, in setImplementation
>      from AccessControl import ImplC as impl
>    File "/opt/local/libexec/Zope/lib/python/AccessControl/ImplC.py",  
> line 18, in <module>
>      from cAccessControl import rolesForPermissionOn, \
>    File "/opt/local/libexec/Zope/lib/python/AccessControl/ 
> SimpleObjectPolicies.py", line 82, in <module>
>      from DocumentTemplate.DT_Util import TemplateDict
>    File "/opt/local/libexec/Zope/lib/python/DocumentTemplate/ 
> __init__.py", line 21, in <module>
>      from DocumentTemplate import String, File, HTML, HTMLDefault,  
> HTMLFile
>    File "/opt/local/libexec/Zope/lib/python/DocumentTemplate/ 
> DocumentTemplate.py", line 112, in <module>
>      from DT_String import String, File
>    File "/opt/local/libexec/Zope/lib/python/DocumentTemplate/ 
> DT_String.py", line 19, in <module>
>      from DT_Util import ParseError, InstanceDict, TemplateDict,  
> render_blocks, str
>    File "/opt/local/libexec/Zope/lib/python/DocumentTemplate/ 
> DT_Util.py", line 19, in <module>
>      from html_quote import html_quote, ustr # for import by other  
> modules, dont remove!
>    File "/opt/local/libexec/Zope/lib/python/DocumentTemplate/ 
> html_quote.py", line 4, in <module>
>      from ustr import ustr
>    File "/opt/local/libexec/Zope/lib/python/DocumentTemplate/ustr.py",  
> line 18, in <module>
>      nasty_exception_str = Exception.__str__.im_func
> AttributeError: 'wrapper_descriptor' object has no attribute 'im_func'
> 
> Does this make sense to anyone? Has anyone had any luck with Macports  
> (using zope) under os x 10.6 (Snow Leopard?)
> 

I think you must be running with a much-too-recent version of Python.
Quoting the 'doc/INSTALL.txt' from the 2.8 branch::

- -------------------- %< -------------------------------
System requirements when building from source

   bash or another Bourne shell variant
   Python 2.3.5 or later installed somewhere in the system PATH
   (Note: Python 2.4 is officially *not* supported because there has not
   been a security audit for Python 2.4 and Zope 2 so far. If you use
   Python 2.4 with Zope then you use it at your own risk from the security
   perspective).
   GNU make
   A C compiler (gcc recommended)
- -------------------- %< ------------------------------


Tres.
- -- 
===================================================================
Tres Seaver          +1 540-429-0999          tsea...@palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0mXbkACgkQ+gerLs4ltQ5FPACeLhwmwIOiHyafy3DyHAhPVVMz
WXAAmwcBCpYwlSa60wEr6QhiQn+Wd4yT
=xLZZ
-----END PGP SIGNATURE-----

_______________________________________________
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to