import error - No module named iclass
Uups, I forgot the subject and the html encoding .... Hi everybody, I'm upgrading to zope 2.6.0. When I try to import a ZClass based Product from zope 2.5.1 i get the following error. Error Type: ImportError Error Value: No module named iclass Any ideas ??? Harry
That's a problem of the changed Interface package in Zope 2.6. -aj --On Montag, 11. November 2002 15:47 +0100 Harald Winkelmann <winkelmann@fh-weingarten.de> wrote:
Uups, I forgot the subject and the html encoding ....
Hi everybody,
I'm upgrading to zope 2.6.0. When I try to import a ZClass based Product from zope 2.5.1 i get the following error.
Error Type: ImportError Error Value: No module named iclass
Any ideas ??? Harry
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
--------------------------------------------------------------------- - Andreas Jung http://www.andreas-jung.com - - EMail: andreas at andreas-jung.com - - "Life is too short to (re)write parsers" - ---------------------------------------------------------------------
Harald Winkelmann wrote:
Uups, I forgot the subject and the html encoding ....
Hi everybody,
I'm upgrading to zope 2.6.0. When I try to import a ZClass based Product from zope 2.5.1 i get the following error.
Error Type: ImportError Error Value: No module named iclass
Any ideas ??? Harry
Yup. This was discussed about a week ago. Search the mailing list archives; but as I remember, only the ZClasses descended from ObjectManager have the problem, and then only if there is a non-empty list on the SubObjects tab. To export from 2.5.x, remove all from that list; then it will import fine into 2.6. Then, I presume that you can recreate the list of allowed subobjects, though I have not tried this. -- Jim Washington
Hi everybody,
I'm upgrading to zope 2.6.0. When I try to import a ZClass based Product from zope 2.5.1 i get the following error.
Error Type: ImportError Error Value: No module named iclass
Any ideas ??? Harry
Yup. This was discussed about a week ago. Search the mailing list archives; but as I remember, only the ZClasses descended from ObjectManager have the problem, and then only if there is a non-empty list on the SubObjects tab. To export from 2.5.x, remove all from that list; then it will import fine into 2.6. Then, I presume that you can recreate the list of allowed subobjects, though I have not tried this.
-- Jim Washington
This worked fine. Thanks. Harry
I'm upgrading to zope 2.6.0. When I try to import a ZClass based Product from zope 2.5.1 i get the following error.
Error Type: ImportError Error Value: No module named iclass
Yup. This was discussed about a week ago. Search the mailing list archives; but as I remember, only the ZClasses descended from ObjectManager have the problem, and then only if there is a non-empty list on the SubObjects tab. To export from 2.5.x, remove all from that list; then it will import fine into 2.6. Then, I presume that you can recreate the list of allowed subobjects, though I have not tried this.
This worked fine. Thanks.
Hi, I'm having the same problem migrating a zclass from 2.5.1 to 2.6. I've tryed the collector fix of ZClasses/ObjectManager.py and the subobjects tab thing, but that didnt solved my problem. My zclass has ZFolder as base class instead of ObjectManager: Base Classes: ZObject, ZFolder, CatalogAwareBase I'm looking at the ObjectManager.py to see if I can put it to work for my zclass, but I think in my case that doesnt make sense because my class dont have a subobject tab... I'm looking into the zen of iclass... Any ideias? thanks. Regards, Julio Silva --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.416 / Virus Database: 232 - Release Date: 11/6/2002
At 07:28 PM, you wrote:
I'm upgrading to zope 2.6.0. When I try to import a ZClass based Product from zope 2.5.1 i get the following error.
Error Type: ImportError Error Value: No module named iclass
Yup. This was discussed about a week ago. Search the mailing list archives; but as I remember, only the ZClasses descended from ObjectManager have the problem, and then only if there is a non-empty list on the SubObjects tab. To export from 2.5.x, remove all from that list; then it will import fine into 2.6. Then, I presume that you can recreate the list of allowed subobjects, though I have not tried this.
This worked fine. Thanks.
Hi,
I'm having the same problem migrating a zclass from 2.5.1 to 2.6. I've tryed the collector fix of ZClasses/ObjectManager.py and the subobjects tab thing, but that didnt solved my problem.
My zclass has ZFolder as base class instead of ObjectManager:
Base Classes: ZObject, ZFolder, CatalogAwareBase
I'm looking at the ObjectManager.py to see if I can put it to work for my zclass, but I think in my case that doesnt make sense because my class dont have a subobject tab...
I'm looking into the zen of iclass...
I've solved my problem. The problem was my class has ZFolder as base class and not ObjectManager. Then I remembered that my zclass had ObjectManager has the base class a long time ago, but I changed the base classes with ChangeBaseClass script you can find in http://www.zope.org/Members/AlexR/ChangingBaseClasses. So I figure out that the zclass had the meta-types dictionary set but since no longer has ObjectManager as base class I didnt have the SubObjects tab. I changed my class base class to ObjectManager, submited the subobjects tab with an empty-list, changed my class base classes again to Zfolder and exported from 2.5.1 to 2.6.0, no need for the ZClasses/ObjectManager.py collector fix, and it works. Best Regards, Julio Silva --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.416 / Virus Database: 232 - Release Date: 11/6/2002
participants (4)
-
Andreas Jung -
Harald Winkelmann -
Jim Washington -
Júlio Silva