so i diagnosed an error like this recently with regards to exif in ATPhoto or ATImage or whatever. Its rather difficult - if not impossible to debug this w/o zopectl. I would download the PloneShell from enfoldsystems.com website.
I would read over the 'conversing with zope' article. basically what you can do is use post-mortem debugging. zope will throw exception; you get a python debugger: - then you step up the call stack finding where you actually ahve your 'broken' object orthe object that is causign the problem. - poke the object and see what has a reference to Validators I would *imagine* your problem is something like you have a persistent Validator in your databse; and validators shouldnt be persistent. It would be nice to have objects in ZOpe that not possible to persist ;-) like class Validator: _p_never_persist = True this would tell the zodb that its impossible to persist a instance of this type. and would throw a runtime error in zodb. but this isnt the zodb list ;-) I would imagine its something in your own code base if you have written anotehr product. alan > I have a very strange problem here when I try to migrate my site to the > latest > and greatest Plone (2.1.1). > > First the most important facts of my current setup: > WinXP > Python 2.3.5 > Zope 2.7.7 > Plone 2.0.5 > Archetypes 1.3.3 > ATContentTypes 0.2 > > Also, I have almost all of the types of ATContentTypes subclassed in a > product > I called ATContentTypesExtd. This just gives the default types some extra > fields > and templates. > I have upgraded all of the products above several times during their > lives, > which might have led to inconsistencies. The site runs perfectly fine, > however. > > > Second, how I tried to migrate: > -Shut down > -Backed up Data.fs > -Changed Plone 2.0.5 products to new ones > -Edited my own products to be compatible with 2.1.1 > -Restarted > > Then I got this error in left (tree) frame of the ZMI as well as when > clicking > on my site in the right frame: > > "ImportError: No module named Validators" [1] > > Validators?? I searched for such a module in the code and found two: > 'ATContentTypes.Validators' and another in one of my own products, let's > call it > 'MyProduct.Validators'. I could rule out ATCT's Validators because of > another > site that uses ATCT, but not MyProduct, and doesn't give any errors. > > Now, the thing with MyProduct is, that in its _init_.py it's importing > Validators, but it's not being used anywhere. In the directory, there's > only a > compiled Validators.pyc, but no Validators.py. > I tried several things to no avail: > - removed the import statement and the .pyc, restarted under Plone > 2.0.5 > (fine) and then did the migration steps as above > - added the former MyProduct/Validators.py (luckily found it), also > tested > fine under 2.0.5 and then tried to migrate > - added a dummy product Validators with a simple type Validators > > Also, I can actually access all the subfolders of my site, but not the > root. > > So.. I went ahead and ignored the warning and manually entered the URL for > portal_migration. The migration worked!! But the ImportError is still > there, > with one little exception: It is now rendered in my Plone layout instead > of just > plain HTML. > > Please, does anybody have a clue how to solve this, or how to investigate > this > or whatever else to try? I would be very grateful. > > Thanks a lot for your help! > > -- André > > > [1] With some playing around, I got two different trackbacks, probably > relating > to the different calls: > > ------------------------------------------------------- > Request URL http://localhost:8080/manage_menu > Exception Type ImportError > Exception Value No module named Validators > > Traceback (innermost last): > > * Module ZPublisher.Publish, line 101, in publish > * Module ZPublisher.mapply, line 88, in mapply > * Module ZPublisher.Publish, line 39, in call_object > * Module Shared.DC.Scripts.Bindings, line 306, in __call__ > * Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec > * Module App.special_dtml, line 175, in _exec > * Module TreeDisplay.TreeTag, line 88, in render > * Module TreeDisplay.TreeTag, line 209, in tpRender > * Module TreeDisplay.TreeTag, line 461, in tpRenderTABLE > __traceback_info__: (['AAAAAAAAAAE=', []], {'url': 'tpURL', > 'nowrap': > '1', 'branches': 'tpValues', 'id': 'tpId', 'childless_decoration': ''}, > [['AAAAAAAAAAE=', []]], [['AAAAAAAAAAE=', []]]) > * Module TreeDisplay.TreeTag, line 262, in tpRenderTABLE > * Module OFS.OrderSupport, line 275, in tpValues > * Module ZODB.Connection, line 600, in setstate > * Module ZODB.Connection, line 639, in _set_ghost_state > > ImportError: No module named Validators > > --------------------------------------------------------- > > ImportError > Sorry, a site error occurred. > > Traceback (innermost last): > > * Module ZPublisher.Publish, line 175, in publish_module_standard > * Module Products.PlacelessTranslationService.PatchStringIO, line 51, > in > new_publish > * Module ZPublisher.Publish, line 132, in publish > * Module Zope.App.startup, line 204, in zpublisher_exception_hook > * Module ZPublisher.Publish, line 101, in publish > * Module ZPublisher.mapply, line 88, in mapply > * Module ZPublisher.Publish, line 39, in call_object > * Module Shared.DC.Scripts.Bindings, line 306, in __call__ > * Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec > * Module App.special_dtml, line 175, in _exec > * Module DocumentTemplate.DT_Let, line 76, in render > * Module DocumentTemplate.DT_In, line 643, in renderwob > * Module DocumentTemplate.DT_In, line 771, in sort_sequence > * Module ZODB.Connection, line 600, in setstate > * Module ZODB.Connection, line 639, in _set_ghost_state > > ImportError: No module named Validators > > _______________________________________________ > Setup mailing list > [email protected] > http://lists.plone.org/mailman/listinfo/setup > _______________________________________________ Setup mailing list [email protected] http://lists.plone.org/mailman/listinfo/setup
