ImportError with unlrelated and obsolete module
I think some time in the past the transactions must have got tangled. ZSQLMethods has nothing to do with PTKBase. When I try to access any advanced tab from an ZQLMethod I get the following error. (PTKBase is no longer installed and I have to need to install it) <p> Error type: ImportError<br> Error value: No module named PTKBase </p> </p> </BODY></HTML> <!-- Traceback (innermost last): File C:\PROGRA~1\Zope\25228D~1.1\lib\python\ZPublisher\Publish.py, line 150, in publish_module File C:\PROGRA~1\Zope\25228D~1.1\lib\python\ZPublisher\Publish.py, line 114, in publish File C:\PROGRA~1\Zope\25228D~1.1\lib\python\Zope\__init__.py, line 159, in zpublisher_exception_hook (Object: qryGetPersonInfoSQL) File C:\PROGRA~1\Zope\25228D~1.1\lib\python\ZPublisher\Publish.py, line 98, in publish File C:\PROGRA~1\Zope\25228D~1.1\lib\python\ZPublisher\mapply.py, line 88, in mapply (Object: manage_advancedForm) File C:\PROGRA~1\Zope\25228D~1.1\lib\python\ZPublisher\Publish.py, line 39, in call_object (Object: manage_advancedForm) File C:\PROGRA~1\Zope\25228D~1.1\lib\python\Shared\DC\Scripts\Bindings.py, line 252, in __call__ (Object: manage_advancedForm) File C:\PROGRA~1\Zope\25228D~1.1\lib\python\Shared\DC\Scripts\Bindings.py, line 283, in _bindAndExec (Object: manage_advancedForm) File C:\PROGRA~1\Zope\25228D~1.1\lib\python\App\special_dtml.py, line 172, in _exec (Object: manage_advancedForm) File C:\PROGRA~1\Zope\25228D~1.1\lib\python\Shared\DC\ZRDB\DA.py, line 476, in manage_product_zclass_info (Object: qryGetPersonInfoSQL) File C:\PROGRA~1\Zope\25228D~1.1\lib\python\ZODB\Connection.py, line 472, in setstate ImportError: (see above) --> Can I reinstall/clear/something ZQLMethods or something? I've had these kind of problems before and they suck.
Jay, Dylan writes:
.. ZSQLMethods has nothing to do with PTKBase. When I try to access any advanced tab from an ZQLMethod I get the following error. (PTKBase is no longer installed and I have to need to install it) ... (Object: manage_advancedForm) File C:\PROGRA~1\Zope\25228D~1.1\lib\python\Shared\DC\ZRDB\DA.py, line 476, in manage_product_zclass_info (Object: qryGetPersonInfoSQL) File C:\PROGRA~1\Zope\25228D~1.1\lib\python\ZODB\Connection.py, line 472, in setstate ImportError: (see above) You know the custom classes you can use in the ZSQL Advanced tab? You can use ZClasses to implement such classes.
The method "Shared.DC.ZRDB.DA.DA.manage_product_zclass_info" runs through all ZClasses and tries to build a list of ZClasses that can be used for this purpose. Thereby, it hits a ZClass that is dependent on a product that is no longer installed. Your options: * find the ZClass that produces the problem and delete it. It is probably an old Portal Toolkit ZClass. * add a "try ... except" round line 476 of "Shared/DC/ZRDB/DA.py" File a bug report to "<http://collector.zope.org>" with your patch Dieter
participants (2)
-
Dieter Maurer -
Jay, Dylan