Stepper1.5.0 failed to run
Hi I may have missed something, first time i m trying Stepper, i really want to use it, and i don't understand the trace. I have read the whole readme, just i have done a really simple step but it doesn't work. How i have tryied to start it $ export STEPPER_CONFIG=Products.AntiCancerMigrations.20081017 $ ./bin/zopectl run Products/Stepper/run.py /anticancer/www.anticancer.fr mychain1 Traceback (most recent call last): File "<string>", line 1, in ? File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/Zope2/Startup/run.py", line 31, in configure opts = _setconfig(configfile) File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/Zope2/Startup/run.py", line 46, in _setconfig opts.realize(doc="Sorry, no option docs yet.", raise_getopt_errs=0) File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/zdaemon/zdoptions.py", line 273, in realize self.load_schema() File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/zdaemon/zdoptions.py", line 321, in load_schema self.schema = ZConfig.loadSchema(self.schemafile) File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/ZConfig/loader.py", line 31, in loadSchema return SchemaLoader().loadURL(url) File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/ZConfig/loader.py", line 65, in loadURL return self.loadResource(r) File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/ZConfig/loader.py", line 159, in loadResource schema = ZConfig.schema.parseResource(resource, self) File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/ZConfig/schema.py", line 27, in parseResource xml.sax.parse(resource.file, parser) File "/home/toutpt/workspace/minitage/dependencies/python-2.4/parts/part/lib/python2.4/xml/sax/__init__.py", line 33, in parse parser.parse(source) File "/home/toutpt/workspace/minitage/dependencies/python-2.4/parts/part/lib/python2.4/xml/sax/expatreader.py", line 107, in parse xmlreader.IncrementalParser.parse(self, source) File "/home/toutpt/workspace/minitage/dependencies/python-2.4/parts/part/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse self.feed(buffer) File "/home/toutpt/workspace/minitage/dependencies/python-2.4/parts/part/lib/python2.4/xml/sax/expatreader.py", line 207, in feed self._parser.Parse(data, isFinal) File "/home/toutpt/workspace/minitage/dependencies/python-2.4/parts/part/lib/python2.4/xml/sax/expatreader.py", line 300, in start_element self._cont_handler.startElement(name, AttributesImpl(attrs)) File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/ZConfig/schema.py", line 99, in startElement getattr(self, "start_" + name)(attrs) File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/ZConfig/schema.py", line 475, in start_schema keytype, valuetype, datatype = self.get_sect_typeinfo(attrs) File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/ZConfig/schema.py", line 201, in get_sect_typeinfo datatype = self.get_datatype(attrs, "datatype", "null", base) File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/ZConfig/schema.py", line 194, in get_datatype return self._registry.get(dtname) File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/ZConfig/datatypes.py", line 398, in get t = self.search(name) File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/ZConfig/datatypes.py", line 423, in search package = __import__(n, g, g, component) File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/Zope2/Startup/datatypes.py", line 21, in ? import OFS.Uninstalled File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/OFS/Uninstalled.py", line 20, in ? import SimpleItem, Globals, Acquisition File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/OFS/SimpleItem.py", line 26, in ? import AccessControl.Role, AccessControl.Owned, App.Common File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/AccessControl/Role.py", line 21, in ? import Globals, ExtensionClass, PermissionMapping, Products File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/AccessControl/PermissionMapping.py", line 29, in ? from Owned import UnownableOwner File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/AccessControl/Owned.py", line 276, in ? Globals.default__class_init__(Owned) File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/App/class_init.py", line 69, in default__class_init__ AccessControl.Permission.registerPermissions(self.__ac_permissions__) File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/AccessControl/Permission.py", line 132, in registerPermissions Products.__ac_permissions__=( AttributeError: 'module' object has no attribute '__ac_permissions__' Have you any idea of what happens ? -- JeanMichel FRANCOIS Makina Corpus
Yes. You've a __init__.py inside your $INSTANCE_HOME/Products directory. Try removing it, and I think it will work. Regards Marco On Thu, Oct 16, 2008 at 6:13 PM, JeanMichel FRANCOIS <jeanmichel.francois@makina-corpus.com> wrote:
Hi
I may have missed something, first time i m trying Stepper, i really want to use it, and i don't understand the trace.
I have read the whole readme, just i have done a really simple step but it doesn't work.
How i have tryied to start it
$ export STEPPER_CONFIG=Products.AntiCancerMigrations.20081017
$ ./bin/zopectl run Products/Stepper/run.py /anticancer/www.anticancer.fr mychain1
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/Zope2/Startup/run.py", line 31, in configure
opts = _setconfig(configfile)
File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/Zope2/Startup/run.py", line 46, in _setconfig
opts.realize(doc="Sorry, no option docs yet.", raise_getopt_errs=0)
File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/zdaemon/zdoptions.py", line 273, in realize
self.load_schema()
File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/zdaemon/zdoptions.py", line 321, in load_schema
self.schema = ZConfig.loadSchema(self.schemafile)
File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/ZConfig/loader.py", line 31, in loadSchema
return SchemaLoader().loadURL(url)
File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/ZConfig/loader.py", line 65, in loadURL
return self.loadResource(r)
File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/ZConfig/loader.py", line 159, in loadResource
schema = ZConfig.schema.parseResource(resource, self)
File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/ZConfig/schema.py", line 27, in parseResource
xml.sax.parse(resource.file, parser)
File "/home/toutpt/workspace/minitage/dependencies/python-2.4/parts/part/lib/python2.4/xml/sax/__init__.py", line 33, in parse
parser.parse(source)
File "/home/toutpt/workspace/minitage/dependencies/python-2.4/parts/part/lib/python2.4/xml/sax/expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/home/toutpt/workspace/minitage/dependencies/python-2.4/parts/part/lib/python2.4/xml/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/home/toutpt/workspace/minitage/dependencies/python-2.4/parts/part/lib/python2.4/xml/sax/expatreader.py", line 207, in feed
self._parser.Parse(data, isFinal)
File "/home/toutpt/workspace/minitage/dependencies/python-2.4/parts/part/lib/python2.4/xml/sax/expatreader.py", line 300, in start_element
self._cont_handler.startElement(name, AttributesImpl(attrs))
File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/ZConfig/schema.py", line 99, in startElement
getattr(self, "start_" + name)(attrs)
File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/ZConfig/schema.py", line 475, in start_schema
keytype, valuetype, datatype = self.get_sect_typeinfo(attrs)
File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/ZConfig/schema.py", line 201, in get_sect_typeinfo
datatype = self.get_datatype(attrs, "datatype", "null", base)
File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/ZConfig/schema.py", line 194, in get_datatype
return self._registry.get(dtname)
File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/ZConfig/datatypes.py", line 398, in get
t = self.search(name)
File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/ZConfig/datatypes.py", line 423, in search
package = __import__(n, g, g, component)
File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/Zope2/Startup/datatypes.py", line 21, in ?
import OFS.Uninstalled
File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/OFS/Uninstalled.py", line 20, in ?
import SimpleItem, Globals, Acquisition
File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/OFS/SimpleItem.py", line 26, in ?
import AccessControl.Role, AccessControl.Owned, App.Common
File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/AccessControl/Role.py", line 21, in ?
import Globals, ExtensionClass, PermissionMapping, Products
File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/AccessControl/PermissionMapping.py", line 29, in ?
from Owned import UnownableOwner
File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/AccessControl/Owned.py", line 276, in ?
Globals.default__class_init__(Owned)
File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/App/class_init.py", line 69, in default__class_init__
AccessControl.Permission.registerPermissions(self.__ac_permissions__)
File "/home/toutpt/workspace/minitage/zope/plone25-guerir-dev/parts/zope2/lib/python/AccessControl/Permission.py", line 132, in registerPermissions
Products.__ac_permissions__=(
AttributeError: 'module' object has no attribute '__ac_permissions__'
Have you any idea of what happens ?
--
JeanMichel FRANCOIS
Makina Corpus
_______________________________________________ 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 )
-- Marco Bizzarri http://notenotturne.blogspot.com/ http://iliveinpisa.blogspot.com/
Thx Marco I don't know what was the pb, but after having this issue, my instance was not able to start. So i have re-buildout it and now, all is OK. Stepper work with those Products/__init__.py files. In fact i m adding __init__ file to every Products folder because Pydev index source in it only in that case (to make it as areal python package) So now every things is fine. so, I m asking a new question about stepper now, is there more steps somewhere for plone. I have writting many steps to replace my old way of migrating data: - a Password class to change every password of every users to a new password set in arg (DONE) - a Profile class to apply a genericsetup profile (DONE) - a EMail class to change mail of every users set in arg (DONE) .... If there is no package that get all that step classes, i can put it on plone collective. May i need to ask this on plone mailing list before. -- JeanMichel FRANCOIS Makina Corpus Le Thursday 16 October 2008 18:20:57 Marco Bizzarri, vous avez écrit :
Yes.
You've a __init__.py inside your $INSTANCE_HOME/Products directory.
Try removing it, and I think it will work.
Regards Marco
JeanMichel FRANCOIS wrote:
so, I m asking a new question about stepper now, is there more steps somewhere for plone.
Probably, but they're usually not in the public domain :-S
- a Password class to change every password of every users to a new password set in arg (DONE)
Cool.
- a Profile class to apply a genericsetup profile (DONE)
Ditto.
- a EMail class to change mail of every users set in arg (DONE)
Sounds good. It would be nice if these *could* make it into the public domain, maybe even with unit tests and docs ;-) cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
participants (3)
-
Chris Withers -
JeanMichel FRANCOIS -
Marco Bizzarri