[Zope-PTK] Failed to import class _ZClass_for_DemoPortalBase

Jonathan listsmurf@vgmi.net
Mon, 19 Jun 2000 17:19:34 +0200


Hi,

Started digging deeper into Zope and thought I'd try to install the 
Portal Toolkit. Followed the instructions from the download page. Got 
an error. The error output below is from a virgin Zope 2.1.6 binary 
install with the hotfix applied. I also tried the same with the CVS 
version of Zope and another compiled from the source distribution. 
Two separate machines, both i686 running Linux.

----
   Error Type: SystemError
   Error Value: Failed to import class _ZClass_for_DemoPortalBase from
   module Products.PTKDemo

   Troubleshooting Suggestions

       The URL may be incorrect.
       The parameters passed to this resource may be incorrect.
       A resource that this resource relies on may be encountering an
       error.

   For more detailed information about the error, please refer to the HTML
   source for this page.

   If the error persists please contact the site maintainer. Thank you for
   your patience.

   Traceback (innermost last):
     File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 214, in
     publish_module
     File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 179, in
     publish
     File /usr/local/zope/lib/python/Zope/__init__.py, line 202, in
     zpublisher_exception_hook
       (Object: ElementWithAttributes)
     File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 165, in
     publish
     File /usr/local/zope/lib/python/ZPublisher/mapply.py, line 160, in
     mapply
       (Object: manage_importObject)
     File /usr/local/zope/lib/python/ZPublisher/Publish.py, line 102, in
     call_object
       (Object: manage_importObject)
     File /usr/local/zope/lib/python/OFS/ObjectManager.py, line 484, in
     manage_importObject
       (Object: ElementWithAttributes)
     File /usr/local/zope/lib/python/ZODB/ExportImport.py, line 284, in
     importFile
     SystemError: (see above)
----

With the CVS version I got another error when starting Zope:

------
2000-06-19T12:28:24 ERROR(200) Zope Couldn't import Products.LoginManager
Traceback (innermost last):
   File /home/cvs/Zope2/lib/python/OFS/Application.py, line 396, in 
import_products
     (Object: string)
   File /home/cvs/Zope2/lib/python/Products/LoginManager/__init__.py, 
line 1, in ?
   File 
/home/cvs/Zope2/lib/python/Products/LoginManager/LoginManager.py, 
line 7, in ?
ImportError: No module named ZPatterns.PlugIns


------
2000-06-19T12:28:25 ERROR(200) Zope Couldn't import Products.Membership
Traceback (innermost last):
   File /home/cvs/Zope2/lib/python/OFS/Application.py, line 396, in 
import_products
     (Object: string)
   File /home/cvs/Zope2/lib/python/Products/Membership/__init__.py, line 3, in ?
   File 
/home/cvs/Zope2/lib/python/Products/Membership/PersistentUserSource.py 
, line 15, in ?
   File 
/home/cvs/Zope2/lib/python/Products/LoginManager/UserSources.py, line 
5, in ?
ImportError: No module named ZPatterns.Rack


------
2000-06-19T12:28:25 ERROR(200) Zope Couldn't import Products.PTKDemo
Traceback (innermost last):
   File /home/cvs/Zope2/lib/python/OFS/Application.py, line 396, in 
import_products
     (Object: string)
   File /home/cvs/Zope2/lib/python/Products/PTKDemo/__init__.py, line 3, in ?
   File /home/cvs/Zope2/lib/python/Products/PTKDemo/Portal.py, line 5, in ?
ImportError: cannot import name LoginManager


------
2000-06-19T12:28:26 PROBLEM(100) ZServer Computing default hostname
------
2000-06-19T12:28:26 INFO(0) ZServer Medusa (V1.16) started at Mon Jun 
19 14:28:26 2000
	Hostname: thematrix.vgmi.net
	Port:8080

------
2000-06-19T12:28:26 INFO(0) ZServer FTP server started at Mon Jun 19 
14:28:26 2000
	Authorizer:None
	Hostname: thematrix.vgmi.net
	Port: 8021
------
2000-06-19T12:28:26 INFO(0) ZServer PCGI Server started at Mon Jun 19 
14:28:26 2000
	Unix socket: /home/cvs/Zope2/var/pcgi.soc
------
2000-06-19T12:28:26 INFO(0) ZServer Monitor Server (V1.8) started on port 8099



Long e-mail :)  Any ideas?

Thnx
Jonathan