Re: [Zope] first attempt to use RELSTORAGE

2008-05-11 Thread Stefan H. Holek
There is a buldout-friendly version of RS now. A sample buildout.cfg  
file has been posted to zodb-dev:

http://mail.zope.org/pipermail/zodb-dev/2008-April/011828.html

HTH,
Stefan


On 9. Mai 2008, at 18:05, David Bear wrote:


Any adivce?


--
Anything that, in happening, causes something else to happen,
causes something else to happen.  --Douglas Adams


___
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 )


[Zope] first attempt to use RELSTORAGE

2008-05-09 Thread David Bear
I installed relstorage using the instructions for easy_setup, i.e.
'easy_install RelStorage'. I realized as I read through more of the
instructions that this likely put the relstorage modules in my python home
rather than in my zope software home. I don't know if this would have caused
the error I am seeing.

However, after reading more through the instructions, and watching
easy_install do its magic, I reached a point where I make a new zope
instance, then when in to that instance home and modified the zope.conf  to
use relstorage instead of filestorage, I was ready to start my new instance.
I was disappointed to have a traceback just running zopectl. I ran
$INSTANCE_HOME/bin/zopectl

and got the following traceback:

Traceback (most recent call last):
 File /servers/webenv1/lib/python/Zope2/Startup/zopectl.py, line 329, in ?
   main()
 File /servers/webenv1/lib/python/Zope2/Startup/zopectl.py, line 287, in
main
   options.realize(args)
 File /servers/webenv1/lib/python/Zope2/Startup/zopectl.py, line 95, in
realize
   ZDOptions.realize(self, *args, **kw)
 File
/servers/webenv1/lib/python2.4/site-packages/zdaemon-2.0.2-py2.4.egg/zdaemon/zdoptions.py,
line 279, in realize
   self.load_schema()
 File
/servers/webenv1/lib/python2.4/site-packages/zdaemon-2.0.2-py2.4.egg/zdaemon/zdoptions.py,
line 327, in load_schema
   self.schema = ZConfig.loadSchema(self.schemafile)
 File
/servers/webenv1/lib/python2.4/site-packages/ZConfig-2.5.1-py2.4.egg/ZConfig/loader.py,
line 32, in loadSchema
   return SchemaLoader().loadURL(url)
 File
/servers/webenv1/lib/python2.4/site-packages/ZConfig-2.5.1-py2.4.egg/ZConfig/loader.py,
line 66, in loadURL
   return self.loadResource(r)
 File
/servers/webenv1/lib/python2.4/site-packages/ZConfig-2.5.1-py2.4.egg/ZConfig/loader.py,
line 187, in loadResource
   schema = ZConfig.schema.parseResource(resource, self)
 File
/servers/webenv1/lib/python2.4/site-packages/ZConfig-2.5.1-py2.4.egg/ZConfig/schema.py,
line 27, in parseResource
   xml.sax.parse(resource.file, parser)
 File /servers/webenv1//lib/python2.4/xml/sax/__init__.py, line 33, in
parse
   parser.parse(source)
 File /servers/webenv1//lib/python2.4/xml/sax/expatreader.py, line 107, in
parse
   xmlreader.IncrementalParser.parse(self, source)
 File /servers/webenv1//lib/python2.4/xml/sax/xmlreader.py, line 123, in
parse
   self.feed(buffer)
 File /servers/webenv1//lib/python2.4/xml/sax/expatreader.py, line 207, in
feed
   self._parser.Parse(data, isFinal)
 File /servers/webenv1//lib/python2.4/xml/sax/expatreader.py, line 300, in
start_element
   self._cont_handler.startElement(name, AttributesImpl(attrs))
 File
/servers/webenv1/lib/python2.4/site-packages/ZConfig-2.5.1-py2.4.egg/ZConfig/schema.py,
line 99, in startElement
   getattr(self, start_ + name)(attrs)
 File
/servers/webenv1/lib/python2.4/site-packages/ZConfig-2.5.1-py2.4.egg/ZConfig/schema.py,
line 475, in start_schema
   keytype, valuetype, datatype = self.get_sect_typeinfo(attrs)
 File
/servers/webenv1/lib/python2.4/site-packages/ZConfig-2.5.1-py2.4.egg/ZConfig/schema.py,
line 201, in get_sect_typeinfo
   datatype = self.get_datatype(attrs, datatype, null, base)
 File
/servers/webenv1/lib/python2.4/site-packages/ZConfig-2.5.1-py2.4.egg/ZConfig/schema.py,
line 194, in get_datatype
   return self._registry.get(dtname)
 File
/servers/webenv1/lib/python2.4/site-packages/ZConfig-2.5.1-py2.4.egg/ZConfig/datatypes.py,
line 398, in get
   t = self.search(name)
 File
/servers/webenv1/lib/python2.4/site-packages/ZConfig-2.5.1-py2.4.egg/ZConfig/datatypes.py,
line 423, in search
   package = __import__(n, g, g, component)
 File /servers/webenv1/lib/python/Zope2/Startup/datatypes.py, line 21, in
?
   import OFS.Uninstalled
 File /servers/webenv1/lib/python/OFS/Uninstalled.py, line 20, in ?
   import SimpleItem, Globals, Acquisition
 File /servers/webenv1/lib/python/OFS/SimpleItem.py, line 26, in ?
   import AccessControl.Role, AccessControl.Owned, App.Common
 File /servers/webenv1/lib/python/AccessControl/__init__.py, line 17, in ?
   from Implementation import setImplementation
 File /servers/webenv1/lib/python/AccessControl/Implementation.py, line
98, in ?
   setImplementation(C)
 File /servers/webenv1/lib/python/AccessControl/Implementation.py, line
51, in setImplementation
   from AccessControl import ImplC as impl
 File /servers/webenv1/lib/python/AccessControl/ImplC.py, line 18, in ?
   from cAccessControl import rolesForPermissionOn, \
 File /servers/webenv1/lib/python/AccessControl/SimpleObjectPolicies.py,
line 82, in ?
   from DocumentTemplate.DT_Util import TemplateDict
 File /servers/webenv1/lib/python/DocumentTemplate/__init__.py, line 21,
in ?
   from DocumentTemplate import String, File, HTML, HTMLDefault, HTMLFile
 File /servers/webenv1/lib/python/DocumentTemplate/DocumentTemplate.py,
line 112, in ?
   from DT_String import String, File
 File /servers/webenv1/lib/python/DocumentTemplate/DT_String.py, line 19,
in ?
   from DT_Util import ParseError, InstanceDict, 

Re: [Zope] first attempt to use RELSTORAGE

2008-05-09 Thread Martijn Pieters
On Fri, May 9, 2008 at 6:05 PM, David Bear [EMAIL PROTECTED] wrote:
 I installed relstorage using the instructions for easy_setup, i.e.
 'easy_install RelStorage'. I realized as I read through more of the
 instructions that this likely put the relstorage modules in my python home
 rather than in my zope software home. I don't know if this would have caused
 the error I am seeing.

Probably. RelStorage declares a dependency on ZODB, and likely an
incompatible version has been installed in your python's site-packages
directory.

Remove  the RelStorage, ZODB and any zope-related eggs from your
python site-packages directory to remove.

Better to not use easy_install for your Zope2 install, as Zope2
doesn't (yet) declare that it already *has* ZODB included. Just
install RelStorage in your instance home lib/python directory. Note
that RelStorage requires you to patch your Zope installation!

-- 
Martijn Pieters
___
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 )