[Zope] Tracebacks...Need Help
Hi;I have a number of tracebacks from products I'm trying to install in Zope/Plone. I'm on Zope 2.7.8/Plone 2.1.2. Thanks in advance for any help you can offer to get me started towards solutions to these problems.TIA,Javier--2006-10-21T20:36:30 ERROR(200) Zope Could not import Products.CMFManagedFileTraceback (most recent call last): File "/usr/local/zope/278/lib/python/OFS/Application.py", line 673, in import_product product=__import__(pname, global_dict, global_dict, silly) File "/usr/local/zope/instance2/Products/CMFManagedFile/__init__.py", line 29, in ? from Products.CMFManagedFile import tool File "/usr/local/zope/instance2/Products/CMFManagedFile/tool.py", line 44, in ? from batch import manage_addBatch File "/usr/local/zope/instance2/Products/CMFManagedFile/batch.py", line 29, in ? from Products.CMFManagedFile.scripts.filename_verify import Translator File "/usr/local/zope/instance2/Products/CMFManagedFile/scripts/filename_verify.py", line 36, in ? from Products.normalizer.lang import normalize, registry, LangNormalizerImportError: No module named normalizer.lang--2006-10-21T20:36:31 ERROR(200) Zope Could not import Products.GenericSetupTraceback (most recent call last): File "/usr/local/zope/278/lib/python/OFS/Application.py", line 673, in import_product product=__import__(pname, global_dict, global_dict, silly) File "/usr/local/zope/instance2/Products/GenericSetup/__init__.py", line 8, in ? from interfaces import BASE, EXTENSION File "/usr/local/zope/instance2/Products/GenericSetup/interfaces.py", line 19, in ? from zope.schema import TextImportError: No module named schema --2006-10-21T20:36:33 ERROR(200) Zope Could not import Products.ZOptTraceback (most recent call last): File "/usr/local/zope/278/lib/python/OFS/Application.py", line 673, in import_product product=__import__(pname, global_dict, global_dict, silly) File "/usr/local/zope/instance2/Products/ZOpt/__init__.py", line 6, in ? import libxml2, libxsltImportError: No module named libxml2NOTE: This s/w is installed and it functions!--2006-10-21T20:36:36 ERROR(200) Zope Could not import Products.filterTraceback (most recent call last): File "/usr/local/zope/278/lib/python/OFS/Application.py", line 673, in import_product product=__import__(pname, global_dict, global_dict, silly) File "/usr/local/zope/instance2/Products/filter/__init__.py", line 9, in ? from Extensions import Install File "/usr/local/zope/instance2/Products/filter/Extensions/Install.py", line 2, in ? from Products.filter.example.smartlink import usingRBW File "/usr/local/zope/instance2/Products/filter/example/__init__.py", line 4, in ? from smartlink import Smartlink File "/usr/local/zope/instance2/Products/filter/example/smartlink.py", line 28, in ? from Products.filter import utils, field, config, api File "/usr/local/zope/instance2/Products/filter/field.py", line 19, in ? from zope.app import zapiImportError: No module named app NOTE: This apparently is a Z3 module. Is there any workaround for Z2?--2006-10-21T20:36:38 ERROR(200) Zope Couldn't install CompoundFieldTraceback (most recent call last): File "/usr/local/zope/278/lib/python/OFS/Application.py", line 751, in install_product initmethod(context) File "/usr/local/zope/instance2/Products/CompoundField/__init__.py", line 84, in initialize import testClasses File "/usr/local/zope/instance2/Products/CompoundField/testClasses/__init__.py", line 29, in ? import CompoundFieldTest File "/usr/local/zope/instance2/Products/CompoundField/testClasses/CompoundFieldTest.py", line 34, in ? schema=Schema((IntegerField('x'),IntegerField('y'))) File "/usr/local/zope/instance2/Products/CompoundField/CompoundField.py", line 190, in __init__ schema=self.schema.copy() File "/usr/local/zope/instance2/Products/Archetypes/Schema/__init__.py", line 668, in copy c.addField(field.copy()) File "/usr/local/zope/instance2/Products/Archetypes/Field.py", line 215, in copy properties = deepcopy(cdict) File "/usr/local/zope/py235/lib/python2.3/copy.py", line 192, in deepcopy y = copier(x, memo) File "/usr/local/zope/py235/lib/python2.3/copy.py", line 286, in _deepcopy_dict y[deepcopy(key, memo)] = deepcopy(value, memo) File "/usr/local/zope/py235/lib/python2.3/copy.py", line 222, in deepcopy y = _reconstruct(x, rv, 1, memo) File "/usr/local/zope/py235/lib/python2.3/copy.py", line 354, in _reconstruct y = callable(*args)TypeError: ExtensionClass object argument after * must be a sequence--2006-10-21T20:36:56 ERROR(200) Zope Couldn't install ReviewStorageExampleTraceback (most recent call last): File "/usr/local/zope/278/lib/python/OFS/Application.py", line 751, in install_product initmethod(context) File "/usr/local/zope/instance2/Products/ReviewStorageExample/__init__.py", line 12, in initialize import ReviewArticle File "/usr/local/zope/instance2/Products/ReviewStorageExample/ReviewArticle.py", line 2, in ? from Products.ReviewStorage.ReviewStorage import ReviewStorage, ReviewSupport File
Re: [Zope] Tracebacks...Need Help
I have a number of tracebacks from products I'm trying to install in Zope/Plone. I'm on Zope 2.7.8/Plone 2.1.2. Thanks in advance for any help you can offer to get me started towards solutions to these problems. You should post Plone related problems to a Plone mailing list. -- 2006-10-21T20:36:31 ERROR(200) Zope Could not import Products.GenericSetup Traceback (most recent call last): File /usr/local/zope/278/lib/python/OFS/Application.py, line 673, in import_product product=__import__(pname, global_dict, global_dict, silly) File /usr/local/zope/instance2/Products/GenericSetup/__init__.py, line 8, in ? from interfaces import BASE, EXTENSION File /usr/local/zope/instance2/Products/GenericSetup/interfaces.py, line 19, in ? from zope.schema import Text ImportError: No module named schema Are you sure, Plone 2.1.2 is supposed to work with Zope 2.7. Apparently, your Plone cries for a newer Zope version -- Dieter ___ 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] tracebacks
Hi, Can somebody explain me how you can use the given tracebacks to find the possible error? For example, I get the following error and I know what causes it, but I don't know where I must go to find the code-line where the error starts: I get the following error when I use a table in which a field is defined with a default string value. eg : MY_NAME CHAR(20) DEFAULT 'tom' MY_DATE TIMESTAMP DEFAULT '6/07/2000' MY_DATE TIMESTAMP DEFAULT 'NOW' --- Zope Error Zope has encountered an error while publishing this resource. Error Type: cPickle.PicklingError Error Value: Cannot pickle objects. --- !-- Traceback (innermost last): File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/zope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 175, in publish File /usr/local/zope/lib/python/Zope/__init__.py, line 235, in commit File /usr/local/zope/lib/python/ZODB/Transaction.py, line 251, in commit File /usr/local/zope/lib/python/ZODB/Connection.py, line 348, in commit (Info: (('Products.ZnolkSQLWizard.Wizard', 'ZnolkSQLWizard'), '\000\000\000\000\000\000\015\025', '')) cPickle.PicklingError: (see above) -- Thanks for any advice. Tom ___ Zope maillist - [EMAIL PROTECTED] 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 )
RE: [Zope] tracebacks
A) your SQL is wrong, you want a VARCHAR not a CHAR there. and i doubt 'NOW' is a valid value for a TIMESTAMP type in your DB. You'll be wanting a SQL function like Date(), not a string. Probably. Look in your DB docs. Not that I'm much of a SQL person - someone else will probably correct me. I'm using an Interbase database. You can use CHAR and VARCHAR. The last one is a variable char, while the first has a fixed length. Anyway, this was just an example out of my head to explain what I'm experiencing. 'NOW' can be used in Interbase as it will insert the current datetime when a value is not given for a record. (Although, I'm not sure it will work through Zope, I'm just curious :-) ). Anyway, '12/07/2000' should work. B) Now why you'd get a pickling error when you've got bad SQL i don't know - and 'cannot pickle objects' is a blantant lie. Surely that's what pickling's all about. MY_NAME VARCHAR(20) DEFAULT 'tom', gives the same error. And yes, it's strange that I get an error with a default literal value. Could it be that Zope handles the tom in 'tom' as a python expresion or something? Anyway you read the traceback from bottom to top. The error occured on line 348 of Connection.py, which threw an error in Transaction.py, blah blah, which threw an error in Publish.py, which caused Zope to exit the publisher and print the stack trace. Thanks Seb, this is what I wanted to know about the traceback. Tom. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Tom Deprez Sent: 01 August 2000 12:41 To: [EMAIL PROTECTED] Subject: [Zope] tracebacks Hi, Can somebody explain me how you can use the given tracebacks to find the possible error? For example, I get the following error and I know what causes it, but I don't know where I must go to find the code-line where the error starts: I get the following error when I use a table in which a field is defined with a default string value. eg : MY_NAME CHAR(20) DEFAULT 'tom' MY_DATE TIMESTAMP DEFAULT '6/07/2000' MY_DATE TIMESTAMP DEFAULT 'NOW' --- Zope Error Zope has encountered an error while publishing this resource. Error Type: cPickle.PicklingError Error Value: Cannot pickle objects. --- !-- Traceback (innermost last): File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/zope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 175, in publish File /usr/local/zope/lib/python/Zope/__init__.py, line 235, in commit File /usr/local/zope/lib/python/ZODB/Transaction.py, line 251, in commit File /usr/local/zope/lib/python/ZODB/Connection.py, line 348, in commit (Info: (('Products.ZnolkSQLWizard.Wizard', 'ZnolkSQLWizard'), '\000\000\000\000\000\000\015\025', '')) cPickle.PicklingError: (see above) -- Thanks for any advice. Tom ___ Zope maillist - [EMAIL PROTECTED] 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 ) ___ Zope maillist - [EMAIL PROTECTED] 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 )
Re: [Zope] tracebacks
A) your SQL is wrong, you want a VARCHAR not a CHAR there. and i doubt 'NOW' is a valid value for a TIMESTAMP type in your DB. You'll be wanting a SQL function like Date(), not a string. Probably. Look in your DB docs. Not that I'm much of a SQL person - someone else will probably correct me. B) Now why you'd get a pickling error when you've got bad SQL i don't know - and 'cannot pickle objects' is a blantant lie. Surely that's what pickling's all about. Anyway you read the traceback from bottom to top. The error occured on line 348 of Connection.py, which threw an error in Transaction.py, blah blah, which threw an error in Publish.py, which caused Zope to exit the publisher and print the stack trace. seb. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Tom Deprez Sent: 01 August 2000 12:41 To: [EMAIL PROTECTED] Subject: [Zope] tracebacks Hi, Can somebody explain me how you can use the given tracebacks to find the possible error? For example, I get the following error and I know what causes it, but I don't know where I must go to find the code-line where the error starts: I get the following error when I use a table in which a field is defined with a default string value. eg : MY_NAME CHAR(20) DEFAULT 'tom' MY_DATE TIMESTAMP DEFAULT '6/07/2000' MY_DATE TIMESTAMP DEFAULT 'NOW' --- Zope Error Zope has encountered an error while publishing this resource. Error Type: cPickle.PicklingError Error Value: Cannot pickle objects. --- !-- Traceback (innermost last): File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 222, in publish_module File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/zope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 175, in publish File /usr/local/zope/lib/python/Zope/__init__.py, line 235, in commit File /usr/local/zope/lib/python/ZODB/Transaction.py, line 251, in commit File /usr/local/zope/lib/python/ZODB/Connection.py, line 348, in commit (Info: (('Products.ZnolkSQLWizard.Wizard', 'ZnolkSQLWizard'), '\000\000\000\000\000\000\015\025', '')) cPickle.PicklingError: (see above) -- Thanks for any advice. Tom ___ Zope maillist - [EMAIL PROTECTED] 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 ) ___ Zope maillist - [EMAIL PROTECTED] 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 )