-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I'm getting the following errors when starting Zope after copying the Plone CMF* directories into the Products directory of my Zope instance... can anyone help with this? File "/opt/Zope-2.7/lib/python/Zope/Startup/run.py", line 49, in ? run() File "/opt/Zope-2.7/lib/python/Zope/Startup/run.py", line 19, in run start_zope(opts.configroot) File "/opt/Zope-2.7/lib/python/Zope/Startup/__init__.py", line 51, in start_zope starter.startZope() File "/opt/Zope-2.7/lib/python/Zope/Startup/__init__.py", line 230, in startZope Zope.startup() File "/opt/Zope-2.7/lib/python/Zope/__init__.py", line 46, in startup _startup() File "/opt/Zope-2.7/lib/python/Zope/App/startup.py", line 93, in startup OFS.Application.initialize(application) File "/opt/Zope-2.7/lib/python/OFS/Application.py", line 279, in initialize initializer.initialize() File "/opt/Zope-2.7/lib/python/OFS/Application.py", line 306, in initialize self.install_products() File "/opt/Zope-2.7/lib/python/OFS/Application.py", line 553, in install_products return install_products(app) File "/opt/Zope-2.7/lib/python/OFS/Application.py", line 584, in install_products folder_permissions, raise_exc=debug_mode) File "/opt/Zope-2.7/lib/python/OFS/Application.py", line 732, in install_product initmethod(context) File "/data/sszope/Products/CMFPlone/__init__.py", line 102, in initialize from Products.Formulator.StandardFields import StringField, EmailField ImportError: No module named Formulator.StandardFields Clayton T. Dillard SECURESPEED, LLC Office: (919) 557-5126 Mobile: (919) 395-9870 Fax: (919) 577-0943 Email: cdillard@securespeed.cc "Information Assurance and Security Solutions" -----BEGIN PGP SIGNATURE----- Version: PGP 8.0.3 iQA/AwUBQKLZR+vKXu6K7abIEQL4FQCgtFjxzyYd4F0nvJKg7J+n5wibJ48AoNaP hjREQVWQf/6J3lnFGbB2wowQ =+eim -----END PGP SIGNATURE-----
On Wed, May 12, 2004 at 10:11:20PM -0400, Clayton T. Dillard wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
I'm getting the following errors when starting Zope after copying the Plone CMF* directories into the Products directory of my Zope instance... can anyone help with this?
(snip)
File "/data/sszope/Products/CMFPlone/__init__.py", line 102, in initialize from Products.Formulator.StandardFields import StringField, EmailField ImportError: No module named Formulator.StandardFields
That's pretty clear. You probably don't have Formulator in your Products directory. It's required by (and distributed with) Plone. -- Paul Winkler http://www.slinkp.com
Clayton T. Dillard wrote at 2004-5-12 22:11 -0400:
... initialize from Products.Formulator.StandardFields import StringField, EmailField ImportError: No module named Formulator.StandardFields
Do you have a package "Formulator" in your "Products" folder? -- Dieter
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Thanks all! I got that fixed but am now having another problem .... See error below. suse02:/data/sszope/bin # ./runzope - ------ 2004-05-13T09:58:16 INFO(0) ZServer HTTP server started at Thu May 13 09:58:16 2004 Hostname: suse02.securespeed.cc Port: 80 - ------ 2004-05-13T09:58:16 INFO(0) ZServer FTP server started at Thu May 13 09:58:16 2004 Hostname: suse02 Port: 21 - ------ 2004-05-13T09:58:16 INFO(0) Zope Set effective user to "zopeprocess" - ------ 2004-05-13T09:58:17 ERROR(200) Zope Could not import Products.CMFCalendar Traceback (most recent call last): File "/opt/Zope-2.7/lib/python/OFS/Application.py", line 654, in import_product product=__import__(pname, global_dict, global_dict, silly) File "/data/sszope/Products/CMFCalendar/__init__.py", line 13, in ? ImportError: cannot import name Portal Traceback (most recent call last): File "/opt/Zope-2.7/lib/python/Zope/Startup/run.py", line 49, in ? run() File "/opt/Zope-2.7/lib/python/Zope/Startup/run.py", line 19, in run start_zope(opts.configroot) File "/opt/Zope-2.7/lib/python/Zope/Startup/__init__.py", line 51, in start_zope starter.startZope() File "/opt/Zope-2.7/lib/python/Zope/Startup/__init__.py", line 230, in startZope Zope.startup() File "/opt/Zope-2.7/lib/python/Zope/__init__.py", line 46, in startup _startup() File "/opt/Zope-2.7/lib/python/Zope/App/startup.py", line 45, in startup OFS.Application.import_products() File "/opt/Zope-2.7/lib/python/OFS/Application.py", line 631, in import_products import_product(product_dir, product_name, raise_exc=debug_mode) File "/opt/Zope-2.7/lib/python/OFS/Application.py", line 654, in import_product product=__import__(pname, global_dict, global_dict, silly) File "/opt/Zope-2.7/lib/python/Zope/Startup/__init__.py", line 13, in ? ###################################################################### ######## ImportError: cannot import name Portal Clayton T. Dillard Chief Executive Officer SECURESPEED, LLC Office: (919) 557-5126 Mobile: (919) 395-9870 Fax: (919) 577-0943 Email: cdillard@securespeed.cc "Information Assurance and Security Solutions" - -----Original Message----- From: Dieter Maurer [mailto:dieter@handshake.de] Sent: Thursday, May 13, 2004 4:17 PM To: Clayton T. Dillard Cc: zope@zope.org Subject: Re: [Zope] Plone/Zope errors Clayton T. Dillard wrote at 2004-5-12 22:11 -0400:
... initialize from Products.Formulator.StandardFields import StringField, EmailField ImportError: No module named Formulator.StandardFields
Do you have a package "Formulator" in your "Products" folder? - -- Dieter -----BEGIN PGP SIGNATURE----- Version: PGP 8.0.3 iQA/AwUBQKPeO+vKXu6K7abIEQIHgwCfX7wpYQBDXoUnFEcTL45dkex5p+8AoIie zzaF6GeAhYjSxsmTvhfx1CQO =/4A/ -----END PGP SIGNATURE-----
Clayton T. Dillard wrote at 2004-5-13 16:44 -0400:
... 2004-05-13T09:58:17 ERROR(200) Zope Could not import Products.CMFCalendar
Some problem with the import of "Products.CMFCalendar"...
Traceback (most recent call last): ... File "/opt/Zope-2.7/lib/python/OFS/Application.py", line 654, in import_product product=__import__(pname, global_dict, global_dict, silly) File "/opt/Zope-2.7/lib/python/Zope/Startup/__init__.py", line 13, in ?
###################################################################### ######## ImportError: cannot import name Portal
Apparently, some "Portal" cannot be imported. Look at "Products/CMFCalendar/__init__.py" where this "Portal" import comes from. You may get a clue why it cannot be imported. When you just want to start Zope (despite this error), the following part of the traceback is the key:
File "/opt/Zope-2.7/lib/python/OFS/Application.py", line 631, in import_products import_product(product_dir, product_name, raise_exc=debug_mode)
Replace this "raise_exc=debug_mode" by "raise_exc=0". You will still get the traceback in your log file but Zope will come up and be partially usable. I do not understand why Zope should not start in debug_mode when a product cannot be imported. Unfortunately, I was not convincing enough that the Zope maintainers would change it. -- Dieter
participants (3)
-
Clayton T. Dillard -
Dieter Maurer -
Paul Winkler