|
|
|
|
jonathansamuel
()
|
|
||||||||||||
|
The document "Creating Static Text Portlets in Plone 3.0" at
http://plone.org/documentation/how-to/creating-static-text-portlets-in-plone-3.0/?searchterm=cfg tells how to install and use Plone.portlet.static . I had a Plone 3.0.3/Linux website that was operating without problem. It was the standard download from Plone.org that also installs Zope and Python. A backup of of it still works in a Plone 3.0.3 windows site. INITIAL CORRUPTED PLONE 3.0.3 INSTANCE After following the instructions to install Plone.portlet.static my site broke. All of my existing Plone sites now show the following type of error in root directory on the ZMI: """MyPlone (This object from the CMFPlone product is broken!)""" If I click on any of these objects I then see the following error: """This object is broken because the CMFPlone product that created it is no longer installed or is installed incorrectly. Please contact the product maintainer for assistance. Note that the data associated with this product has not been lost, and will be accessible again if the product is reinstalled.""" If I attempt to view the Plone Site I get the following error in my browser: """<PloneSite at broken>""" FRESH CORRUPTED PLONE 3.0.3 INSTANCE: I then reinstalled a fresh copy of Plone 3.0.3. The fresh install does not have a default Plone site installed. I deleted the kupu Product because it was producing an error when I tried to create a new Plone site. Now when I try to create a new Plone site in the fresh copy of Plone 3.0.3 I get the following error: """Site Error An error was encountered while publishing this resource. Error Type: TraversalError Error Value: ('No traversable adapter found', {'extension_profiles': (), 'args': (), 'base_profiles': (), 'default_profile': 'Products.CMFPlone:plone'})""" FRESH CORRUPTED PLONE 3.0.4 INSTANCE: I then installed a fresh copy of Plone-3.0.4. Again I deleted the kupu Product because it was producing an error when I tried to create a new Plone site. The fresh install of Plone 3.0.4 does have a Plone Portal in it called Plone. You can see the error it produces by visiting http://aristede.com:9080/Plone. The first two lines of the error are: """ ('No traversable adapter found', {u'content': [('version', '1.6'), ('mode', 'html'), ('setPosition', (99, 16)), ('setSourceFile', 'file:/ opt/Plone-3.0.4/zeocluster/client1/Products/CMFPlone/skins/ plone_templates/main_template.pt'), ('beginScope', {u'tal:define': u'show_border context/@@plone/showEditableBorder', u'metal:define- macro': u'content', u'tal:attributes': u"class python:test(show_border,'documentEditable','')"}), ('setLocal', (u'show_border', """ I also imported a Plone 3.03 site using *.zexp. The site imported without error but produces the same kind of error as above when I look at it. This imported corrupted site is at http://aristede.com:9080/DelegateNichols When I attempt to create a new Plone site I get the same error as I do in the corrupted 3.0.3 instance: """Site Error An error was encountered while publishing this resource. Error Type: TraversalError Error Value: ('No traversable adapter found', {'extension_profiles': (), 'args': (), 'base_profiles': (), 'default_profile': 'Products.CMFPlone:plone'})""" CONCLUSION: All I really need is to get my Plone 3.0.3 site working, as it did before I attempted to install Plone.portlet.static. I have the Data.fs and *.zexp files. I have a Windows copy of the site on my laptop. The data is not lost, I just need my server environment to be working again. If anyone could help me I would really appreciate it as I need to show this site online to a client. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Plone-Users mailing list Plone-Users@... https://lists.sourceforge.net/lists/listinfo/plone-users |
||||||||||||||
|
|
George L
()
|
|
All of these look like ZCML errors, possibly triggered by an error within Python code. Look in your instance log or run Zope in the foreground, and before "Zope Ready to handle requests" look for what error messages show up. When you find those error messages, please post them and we can help you out more. Peace, George |
||
|
|
jonathansamuel
()
|
|
||||||||||||
|
> All of these look like ZCML errors, possibly triggered by an error within
> Python code. Look in your instance log or run Zope in the foreground, and > before "Zope Ready to handle requests" look for what error messages show up. > When you find those error messages, please post them and we can help you out > more. Thank you so much for offering to help. I am running an ordinary complete Plone/Zope/Python bundled Plone 3.0.3 install in zeocluster mode. #1 ZEOCTL FG I modified ..zeocluster/bin/startcluster.sh from "zeoctl start" to "zeoctl fg" The server would then hang. I changed .startcluster.sh back to what it was originally. #2 CLIENT1 fg I changed ../zeocluster/bin/startclustersh so that client1 started using "zopectl fg" . I left client 2 as it had been. The error messages were as follows: <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< [root@www bin]# ./startcluster.sh | tee server1output Starting ZEO server... . daemon process started, pid=12938 Starting ZEO client1... 2007-12-25 11:38:33 INFO ZServer HTTP server started at Tue Dec 25 11:38:33 2007 Hostname: 0.0.0.0 Port: 9080 2007-12-25 11:38:33 INFO Zope Set effective user to "plone" 2007-12-25 11:38:38 ERROR PortalTransforms Problem importing module web_intelligent_plain_text_to_html : No module named intelligenttext.transforms 2007-12-25 11:38:38 ERROR PortalTransforms Problem importing module html_to_web_intelligent_plain_text : No module named intelligenttext.transforms 2007-12-25 11:38:40 ERROR Application Could not import Products.ATContentTypes Traceback (most recent call last): File "/opt/Plone-3.0.3/lib/python/OFS/Application.py", line 709, in import_product product=__import__(pname, global_dict, global_dict, silly) File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ __init__.py", line 64, in ? import Products.ATContentTypes.content File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ content/__init__.py", line 26, in ? import Products.ATContentTypes.content.link File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ content/link.py", line 39, in ? from Products.ATContentTypes.content.base import registerATCT File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ content/base.py", line 63, in ? from Products.CMFPlone.PloneFolder import ReplaceableWrapper File "/opt/Plone-3.0.3/zeocluster/client1/Products/CMFPlone/ __init__.py", line 215, in ? from browser import ploneview File "/opt/Plone-3.0.3/zeocluster/client1/Products/CMFPlone/browser/ ploneview.py", line 12, in ? from Products.CMFPlone import utils File "/opt/Plone-3.0.3/zeocluster/client1/Products/CMFPlone/ utils.py", line 7, in ? from plone.i18n.normalizer.interfaces import IIDNormalizer ImportError: No module named i18n.normalizer.interfaces Traceback (most recent call last): File "/opt/Plone-3.0.3/lib/python/Zope2/Startup/run.py", line 56, in ? run() File "/opt/Plone-3.0.3/lib/python/Zope2/Startup/run.py", line 21, in run starter.prepare() File "/opt/Plone-3.0.3/lib/python/Zope2/Startup/__init__.py", line 102, in prepare self.startZope() File "/opt/Plone-3.0.3/lib/python/Zope2/Startup/__init__.py", line 278, in startZope Zope2.startup() File "/opt/Plone-3.0.3/lib/python/Zope2/__init__.py", line 47, in startup _startup() File "/opt/Plone-3.0.3/lib/python/Zope2/App/startup.py", line 45, in startup OFS.Application.import_products() File "/opt/Plone-3.0.3/lib/python/OFS/Application.py", line 686, in import_products import_product(product_dir, product_name, raise_exc=debug_mode) File "/opt/Plone-3.0.3/lib/python/OFS/Application.py", line 709, in import_product product=__import__(pname, global_dict, global_dict, silly) File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ __init__.py", line 64, in ? import Products.ATContentTypes.content File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ content/__init__.py", line 26, in ? import Products.ATContentTypes.content.link File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ content/link.py", line 39, in ? from Products.ATContentTypes.content.base import registerATCT File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ content/base.py", line 63, in ? from Products.CMFPlone.PloneFolder import ReplaceableWrapper File "/opt/Plone-3.0.3/zeocluster/client1/Products/CMFPlone/ __init__.py", line 215, in ? from browser import ploneview File "/opt/Plone-3.0.3/zeocluster/client1/Products/CMFPlone/browser/ ploneview.py", line 12, in ? from Products.CMFPlone import utils File "/opt/Plone-3.0.3/zeocluster/client1/Products/CMFPlone/ utils.py", line 7, in ? from plone.i18n.normalizer.interfaces import IIDNormalizer ImportError: No module named i18n.normalizer.interfaces /opt/Plone-3.0.3/zeocluster/client1/bin/runzope -X debug-mode=on Starting ZEO client2... . daemon process started, pid=12947 [root@www bin]# <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< #3 CLIENT2 FG After restoring client1 to what it had been before, I modified startcluster.sh so that it started client2 using "zopectl fg" I got the resulting errors: <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< [root@www bin]# ./startcluster.sh | tee server2Output Starting ZEO server... . daemon process started, pid=12971 Starting ZEO client1... . daemon process started, pid=12977 Starting ZEO client2... 2007-12-25 11:55:40 INFO ZServer HTTP server started at Tue Dec 25 11:55:40 2007 Hostname: 0.0.0.0 Port: 9081 2007-12-25 11:55:40 INFO Zope Set effective user to "plone" 2007-12-25 11:55:42 ERROR PortalTransforms Problem importing module web_intelligent_plain_text_to_html : No module named intelligenttext.transforms 2007-12-25 11:55:42 ERROR PortalTransforms Problem importing module html_to_web_intelligent_plain_text : No module named intelligenttext.transforms 2007-12-25 11:55:44 ERROR Application Could not import Products.ATContentTypes Traceback (most recent call last): File "/opt/Plone-3.0.3/lib/python/OFS/Application.py", line 709, in import_product product=__import__(pname, global_dict, global_dict, silly) File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ __init__.py", line 64, in ? import Products.ATContentTypes.content File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ content/__init__.py", line 26, in ? import Products.ATContentTypes.content.link File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ content/link.py", line 39, in ? from Products.ATContentTypes.content.base import registerATCT File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ content/base.py", line 63, in ? from Products.CMFPlone.PloneFolder import ReplaceableWrapper File "/opt/Plone-3.0.3/zeocluster/client1/Products/CMFPlone/ __init__.py", line 215, in ? from browser import ploneview File "/opt/Plone-3.0.3/zeocluster/client1/Products/CMFPlone/browser/ ploneview.py", line 12, in ? from Products.CMFPlone import utils File "/opt/Plone-3.0.3/zeocluster/client1/Products/CMFPlone/ utils.py", line 7, in ? from plone.i18n.normalizer.interfaces import IIDNormalizer ImportError: No module named i18n.normalizer.interfaces Traceback (most recent call last): File "/opt/Plone-3.0.3/lib/python/Zope2/Startup/run.py", line 56, in ? run() File "/opt/Plone-3.0.3/lib/python/Zope2/Startup/run.py", line 21, in run starter.prepare() File "/opt/Plone-3.0.3/lib/python/Zope2/Startup/__init__.py", line 102, in prepare self.startZope() File "/opt/Plone-3.0.3/lib/python/Zope2/Startup/__init__.py", line 278, in startZope Zope2.startup() File "/opt/Plone-3.0.3/lib/python/Zope2/__init__.py", line 47, in startup _startup() File "/opt/Plone-3.0.3/lib/python/Zope2/App/startup.py", line 45, in startup OFS.Application.import_products() File "/opt/Plone-3.0.3/lib/python/OFS/Application.py", line 686, in import_products import_product(product_dir, product_name, raise_exc=debug_mode) File "/opt/Plone-3.0.3/lib/python/OFS/Application.py", line 709, in import_product product=__import__(pname, global_dict, global_dict, silly) File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ __init__.py", line 64, in ? import Products.ATContentTypes.content File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ content/__init__.py", line 26, in ? import Products.ATContentTypes.content.link File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ content/link.py", line 39, in ? from Products.ATContentTypes.content.base import registerATCT File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ content/base.py", line 63, in ? from Products.CMFPlone.PloneFolder import ReplaceableWrapper File "/opt/Plone-3.0.3/zeocluster/client1/Products/CMFPlone/ __init__.py", line 215, in ? from browser import ploneview File "/opt/Plone-3.0.3/zeocluster/client1/Products/CMFPlone/browser/ ploneview.py", line 12, in ? from Products.CMFPlone import utils File "/opt/Plone-3.0.3/zeocluster/client1/Products/CMFPlone/ utils.py", line 7, in ? from plone.i18n.normalizer.interfaces import IIDNormalizer ImportError: No module named i18n.normalizer.interfaces /opt/Plone-3.0.3/zeocluster/client2/bin/runzope -X debug-mode=on <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Plone-Users mailing list Plone-Users@... https://lists.sourceforge.net/lists/listinfo/plone-users |
||||||||||||||
|
|
Martin Aspeli-2
()
|
|
||||||||||||
|
Jonathan Mark wrote:
> from plone.i18n.normalizer.interfaces import IIDNormalizer > ImportError: No module named i18n.normalizer.interfaces This tells me that somehow the plone.* namespace package has gotten messed up. It's difficult to know why. Can you tell us exactly what you did to precipitate this? That is, explain in detail the steps you took, and what kind of installation you have? If you just want to start again, I'd suggest you follow http://plone.org/documentation/tutorial/buildout, which explains how to install an egg-based product in that particular environment. Martin -- Author of `Professional Plone Development`, a book for developers who want to work with Plone. See http://martinaspeli.net/plone-book ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Plone-Users mailing list Plone-Users@... https://lists.sourceforge.net/lists/listinfo/plone-users |
||||||||||||||
|
|
TIm Terlegård-3
()
|
|
||||||||||||
|
In reply to this post by jonathansamuel
This looks exactly like an error you get when you install plone/zope
packages into the system python. Here it looks like you have plone.i18n in system python. What happens if you do: $ python >>> import plone.i18n >>> print plone.i18n.__file__ Does that work? What does it print? You should not have plone/zope packages in your system python. Remove them and use only virtualenv or buildout (or unified installer) to install anything plone/zope related. /Tim On Dec 25, 2007, at 6:58 PM, Jonathan Mark wrote: >> All of these look like ZCML errors, possibly triggered by an error >> within >> Python code. Look in your instance log or run Zope in the >> foreground, and >> before "Zope Ready to handle requests" look for what error messages >> show up. >> When you find those error messages, please post them and we can >> help you out >> more. > > Thank you so much for offering to help. > > I am running an ordinary complete Plone/Zope/Python bundled Plone > 3.0.3 install in zeocluster mode. > > > #1 ZEOCTL FG > > I modified ..zeocluster/bin/startcluster.sh from "zeoctl start" to > "zeoctl fg" The server would then hang. > > I changed .startcluster.sh back to what it was originally. > > > > #2 CLIENT1 fg > > I changed ../zeocluster/bin/startclustersh so that client1 started > using "zopectl fg" . I left client 2 as it had been. > > The error messages were as follows: > > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< > > [root@www bin]# ./startcluster.sh | tee server1output > Starting ZEO server... > . daemon process started, pid=12938 > Starting ZEO client1... > 2007-12-25 11:38:33 INFO ZServer HTTP server started at Tue Dec 25 > 11:38:33 2007 > Hostname: 0.0.0.0 > Port: 9080 > 2007-12-25 11:38:33 INFO Zope Set effective user to "plone" > 2007-12-25 11:38:38 ERROR PortalTransforms Problem importing module > web_intelligent_plain_text_to_html : No module named > intelligenttext.transforms > 2007-12-25 11:38:38 ERROR PortalTransforms Problem importing module > html_to_web_intelligent_plain_text : No module named > intelligenttext.transforms > 2007-12-25 11:38:40 ERROR Application Could not import > Products.ATContentTypes > Traceback (most recent call last): > File "/opt/Plone-3.0.3/lib/python/OFS/Application.py", line 709, in > import_product > product=__import__(pname, global_dict, global_dict, silly) > File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ > __init__.py", line 64, in ? > import Products.ATContentTypes.content > File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ > content/__init__.py", line 26, in ? > import Products.ATContentTypes.content.link > File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ > content/link.py", line 39, in ? > from Products.ATContentTypes.content.base import registerATCT > File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ > content/base.py", line 63, in ? > from Products.CMFPlone.PloneFolder import ReplaceableWrapper > File "/opt/Plone-3.0.3/zeocluster/client1/Products/CMFPlone/ > __init__.py", line 215, in ? > from browser import ploneview > File "/opt/Plone-3.0.3/zeocluster/client1/Products/CMFPlone/browser/ > ploneview.py", line 12, in ? > from Products.CMFPlone import utils > File "/opt/Plone-3.0.3/zeocluster/client1/Products/CMFPlone/ > utils.py", line 7, in ? > from plone.i18n.normalizer.interfaces import IIDNormalizer > ImportError: No module named i18n.normalizer.interfaces > Traceback (most recent call last): > File "/opt/Plone-3.0.3/lib/python/Zope2/Startup/run.py", line 56, > in ? > run() > File "/opt/Plone-3.0.3/lib/python/Zope2/Startup/run.py", line 21, in > run > starter.prepare() > File "/opt/Plone-3.0.3/lib/python/Zope2/Startup/__init__.py", line > 102, in prepare > self.startZope() > File "/opt/Plone-3.0.3/lib/python/Zope2/Startup/__init__.py", line > 278, in startZope > Zope2.startup() > File "/opt/Plone-3.0.3/lib/python/Zope2/__init__.py", line 47, in > startup > _startup() > File "/opt/Plone-3.0.3/lib/python/Zope2/App/startup.py", line 45, in > startup > OFS.Application.import_products() > File "/opt/Plone-3.0.3/lib/python/OFS/Application.py", line 686, in > import_products > import_product(product_dir, product_name, raise_exc=debug_mode) > File "/opt/Plone-3.0.3/lib/python/OFS/Application.py", line 709, in > import_product > product=__import__(pname, global_dict, global_dict, silly) > File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ > __init__.py", line 64, in ? > import Products.ATContentTypes.content > File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ > content/__init__.py", line 26, in ? > import Products.ATContentTypes.content.link > File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ > content/link.py", line 39, in ? > from Products.ATContentTypes.content.base import registerATCT > File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ > content/base.py", line 63, in ? > from Products.CMFPlone.PloneFolder import ReplaceableWrapper > File "/opt/Plone-3.0.3/zeocluster/client1/Products/CMFPlone/ > __init__.py", line 215, in ? > from browser import ploneview > File "/opt/Plone-3.0.3/zeocluster/client1/Products/CMFPlone/browser/ > ploneview.py", line 12, in ? > from Products.CMFPlone import utils > File "/opt/Plone-3.0.3/zeocluster/client1/Products/CMFPlone/ > utils.py", line 7, in ? > from plone.i18n.normalizer.interfaces import IIDNormalizer > ImportError: No module named i18n.normalizer.interfaces > /opt/Plone-3.0.3/zeocluster/client1/bin/runzope -X debug-mode=on > Starting ZEO client2... > . daemon process started, pid=12947 > [root@www bin]# > > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< > > > #3 CLIENT2 FG > > After restoring client1 to what it had been before, I modified > startcluster.sh so that it started client2 using "zopectl fg" I got > the resulting errors: > > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< > > [root@www bin]# ./startcluster.sh | tee server2Output > Starting ZEO server... > . daemon process started, pid=12971 > Starting ZEO client1... > . daemon process started, pid=12977 > Starting ZEO client2... > 2007-12-25 11:55:40 INFO ZServer HTTP server started at Tue Dec 25 > 11:55:40 2007 > Hostname: 0.0.0.0 > Port: 9081 > 2007-12-25 11:55:40 INFO Zope Set effective user to "plone" > 2007-12-25 11:55:42 ERROR PortalTransforms Problem importing module > web_intelligent_plain_text_to_html : No module named > intelligenttext.transforms > 2007-12-25 11:55:42 ERROR PortalTransforms Problem importing module > html_to_web_intelligent_plain_text : No module named > intelligenttext.transforms > 2007-12-25 11:55:44 ERROR Application Could not import > Products.ATContentTypes > Traceback (most recent call last): > File "/opt/Plone-3.0.3/lib/python/OFS/Application.py", line 709, in > import_product > product=__import__(pname, global_dict, global_dict, silly) > File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ > __init__.py", line 64, in ? > import Products.ATContentTypes.content > File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ > content/__init__.py", line 26, in ? > import Products.ATContentTypes.content.link > File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ > content/link.py", line 39, in ? > from Products.ATContentTypes.content.base import registerATCT > File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ > content/base.py", line 63, in ? > from Products.CMFPlone.PloneFolder import ReplaceableWrapper > File "/opt/Plone-3.0.3/zeocluster/client1/Products/CMFPlone/ > __init__.py", line 215, in ? > from browser import ploneview > File "/opt/Plone-3.0.3/zeocluster/client1/Products/CMFPlone/browser/ > ploneview.py", line 12, in ? > from Products.CMFPlone import utils > File "/opt/Plone-3.0.3/zeocluster/client1/Products/CMFPlone/ > utils.py", line 7, in ? > from plone.i18n.normalizer.interfaces import IIDNormalizer > ImportError: No module named i18n.normalizer.interfaces > Traceback (most recent call last): > File "/opt/Plone-3.0.3/lib/python/Zope2/Startup/run.py", line 56, > in ? > run() > File "/opt/Plone-3.0.3/lib/python/Zope2/Startup/run.py", line 21, in > run > starter.prepare() > File "/opt/Plone-3.0.3/lib/python/Zope2/Startup/__init__.py", line > 102, in prepare > self.startZope() > File "/opt/Plone-3.0.3/lib/python/Zope2/Startup/__init__.py", line > 278, in startZope > Zope2.startup() > File "/opt/Plone-3.0.3/lib/python/Zope2/__init__.py", line 47, in > startup > _startup() > File "/opt/Plone-3.0.3/lib/python/Zope2/App/startup.py", line 45, in > startup > OFS.Application.import_products() > File "/opt/Plone-3.0.3/lib/python/OFS/Application.py", line 686, in > import_products > import_product(product_dir, product_name, raise_exc=debug_mode) > File "/opt/Plone-3.0.3/lib/python/OFS/Application.py", line 709, in > import_product > product=__import__(pname, global_dict, global_dict, silly) > File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ > __init__.py", line 64, in ? > import Products.ATContentTypes.content > File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ > content/__init__.py", line 26, in ? > import Products.ATContentTypes.content.link > File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ > content/link.py", line 39, in ? > from Products.ATContentTypes.content.base import registerATCT > File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ > content/base.py", line 63, in ? > from Products.CMFPlone.PloneFolder import ReplaceableWrapper > File "/opt/Plone-3.0.3/zeocluster/client1/Products/CMFPlone/ > __init__.py", line 215, in ? > from browser import ploneview > File "/opt/Plone-3.0.3/zeocluster/client1/Products/CMFPlone/browser/ > ploneview.py", line 12, in ? > from Products.CMFPlone import utils > File "/opt/Plone-3.0.3/zeocluster/client1/Products/CMFPlone/ > utils.py", line 7, in ? > from plone.i18n.normalizer.interfaces import IIDNormalizer > ImportError: No module named i18n.normalizer.interfaces > /opt/Plone-3.0.3/zeocluster/client2/bin/runzope -X debug-mode=on > > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Plone-Users mailing list > Plone-Users@... > https://lists.sourceforge.net/lists/listinfo/plone-users ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Plone-Users mailing list Plone-Users@... https://lists.sourceforge.net/lists/listinfo/plone-users |
||||||||||||||
|
|
jonathansamuel
()
|
|
||||||||||||
|
On Dec 25, 6:01 pm, Tim Terlegård <tim.terleg...@...> wrote: > This looks exactly like an error you get when you install plone/zope > packages into the system python. Here it looks like you have > plone.i18n in system python. What happens if you do: > > $ python > >>> import plone.i18n > >>> print plone.i18n.__file__ > > Does that work? What does it print? You should not have plone/zope > packages in your system python. Remove them and use only > virtualenv or buildout (or unified installer) to install anything > plone/zope related. > > /Tim > > On Dec 25, 2007, at 6:58 PM, Jonathan Mark wrote: > > >> All of these look like ZCML errors, possibly triggered by an error > >> within > >> Python code. Look in your instance log or run Zope in the > >> foreground, and > >> before "Zope Ready to handle requests" look for what error messages > >> show up. > >> When you find those error messages, please post them and we can > >> help you out > >> more. > > > Thank you so much for offering to help. > > > I am running an ordinary complete Plone/Zope/Python bundled Plone > > 3.0.3 install in zeocluster mode. > > > #1 ZEOCTL FG > > > I modified ..zeocluster/bin/startcluster.sh from "zeoctl start" to > > "zeoctl fg" The server would then hang. > > > I changed .startcluster.sh back to what it was originally. > > > #2 CLIENT1 fg > > > I changed ../zeocluster/bin/startclustersh so that client1 started > > using "zopectl fg" . I left client 2 as it had been. > > > The error messages were as follows: > > > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< > > > [root@www bin]# ./startcluster.sh | tee server1output > > Starting ZEO server... > > . daemon process started, pid=12938 > > Starting ZEO client1... > > 2007-12-25 11:38:33 INFO ZServer HTTP server started at Tue Dec 25 > > 11:38:33 2007 > > Hostname: 0.0.0.0 > > Port: 9080 > > 2007-12-25 11:38:33 INFO Zope Set effective user to "plone" > > 2007-12-25 11:38:38 ERROR PortalTransforms Problem importing module > > web_intelligent_plain_text_to_html : No module named > > intelligenttext.transforms > > 2007-12-25 11:38:38 ERROR PortalTransforms Problem importing module > > html_to_web_intelligent_plain_text : No module named > > intelligenttext.transforms > > 2007-12-25 11:38:40 ERROR Application Could not import > > Products.ATContentTypes > > Traceback (most recent call last): > > File "/opt/Plone-3.0.3/lib/python/OFS/Application.py", line 709, in > > import_product > > product=__import__(pname, global_dict, global_dict, silly) > > File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ > > __init__.py", line 64, in ? > > import Products.ATContentTypes.content > > File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ > > content/__init__.py", line 26, in ? > > import Products.ATContentTypes.content.link > > File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ > > content/link.py", line 39, in ? > > from Products.ATContentTypes.content.base import registerATCT > > File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ > > content/base.py", line 63, in ? > > from Products.CMFPlone.PloneFolder import ReplaceableWrapper > > File "/opt/Plone-3.0.3/zeocluster/client1/Products/CMFPlone/ > > __init__.py", line 215, in ? > > from browser import ploneview > > File "/opt/Plone-3.0.3/zeocluster/client1/Products/CMFPlone/browser/ > > ploneview.py", line 12, in ? > > from Products.CMFPlone import utils > > File "/opt/Plone-3.0.3/zeocluster/client1/Products/CMFPlone/ > > utils.py", line 7, in ? > > from plone.i18n.normalizer.interfaces import IIDNormalizer > > ImportError: No module named i18n.normalizer.interfaces > > Traceback (most recent call last): > > File "/opt/Plone-3.0.3/lib/python/Zope2/Startup/run.py", line 56, > > in ? > > run() > > File "/opt/Plone-3.0.3/lib/python/Zope2/Startup/run.py", line 21, in > > run > > starter.prepare() > > File "/opt/Plone-3.0.3/lib/python/Zope2/Startup/__init__.py", line > > 102, in prepare > > self.startZope() > > File "/opt/Plone-3.0.3/lib/python/Zope2/Startup/__init__.py", line > > 278, in startZope > > Zope2.startup() > > File "/opt/Plone-3.0.3/lib/python/Zope2/__init__.py", line 47, in > > startup > > _startup() > > File "/opt/Plone-3.0.3/lib/python/Zope2/App/startup.py", line 45, in > > startup > > OFS.Application.import_products() > > File "/opt/Plone-3.0.3/lib/python/OFS/Application.py", line 686, in > > import_products > > import_product(product_dir, product_name, raise_exc=debug_mode) > > File "/opt/Plone-3.0.3/lib/python/OFS/Application.py", line 709, in > > import_product > > product=__import__(pname, global_dict, global_dict, silly) > > File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ > > __init__.py", line 64, in ? > > import Products.ATContentTypes.content > > File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ > > content/__init__.py", line 26, in ? > > import Products.ATContentTypes.content.link > > File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ > > content/link.py", line 39, in ? > > from Products.ATContentTypes.content.base import registerATCT > > File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ > > content/base.py", line 63, in ? > > from Products.CMFPlone.PloneFolder import ReplaceableWrapper > > File "/opt/Plone-3.0.3/zeocluster/client1/Products/CMFPlone/ > > __init__.py", line 215, in ? > > from browser import ploneview > > File "/opt/Plone-3.0.3/zeocluster/client1/Products/CMFPlone/browser/ > > ploneview.py", line 12, in ? > > from Products.CMFPlone import utils > > File "/opt/Plone-3.0.3/zeocluster/client1/Products/CMFPlone/ > > utils.py", line 7, in ? > > from plone.i18n.normalizer.interfaces import IIDNormalizer > > ImportError: No module named i18n.normalizer.interfaces > > /opt/Plone-3.0.3/zeocluster/client1/bin/runzope -X debug-mode=on > > Starting ZEO client2... > > . daemon process started, pid=12947 > > [root@www bin]# > > > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< > > > #3 CLIENT2 FG > > > After restoring client1 to what it had been before, I modified > > startcluster.sh so that it started client2 using "zopectl fg" I got > > the resulting errors: > > > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< > > > [root@www bin]# ./startcluster.sh | tee server2Output > > Starting ZEO server... > > . daemon process started, pid=12971 > > Starting ZEO client1... > > . daemon process started, pid=12977 > > Starting ZEO client2... > > 2007-12-25 11:55:40 INFO ZServer HTTP server started at Tue Dec 25 > > 11:55:40 2007 > > Hostname: 0.0.0.0 > > Port: 9081 > > 2007-12-25 11:55:40 INFO Zope Set effective user to "plone" > > 2007-12-25 11:55:42 ERROR PortalTransforms Problem importing module > > web_intelligent_plain_text_to_html : No module named > > intelligenttext.transforms > > 2007-12-25 11:55:42 ERROR PortalTransforms Problem importing module > > html_to_web_intelligent_plain_text : No module named > > intelligenttext.transforms > > 2007-12-25 11:55:44 ERROR Application Could not import > > Products.ATContentTypes > > Traceback (most recent call last): > > File "/opt/Plone-3.0.3/lib/python/OFS/Application.py", line 709, in > > import_product > > product=__import__(pname, global_dict, global_dict, silly) > > File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ > > __init__.py", line 64, in ? > > import Products.ATContentTypes.content > > File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ > > content/__init__.py", line 26, in ? > > import Products.ATContentTypes.content.link > > File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ > > content/link.py", line 39, in ? > > from Products.ATContentTypes.content.base import registerATCT > > File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ > > content/base.py", line 63, in ? > > from Products.CMFPlone.PloneFolder import ReplaceableWrapper > > File "/opt/Plone-3.0.3/zeocluster/client1/Products/CMFPlone/ > > __init__.py", line 215, in ? > > from browser import ploneview > > File "/opt/Plone-3.0.3/zeocluster/client1/Products/CMFPlone/browser/ > > ploneview.py", line 12, in ? > > from Products.CMFPlone import utils > > File "/opt/Plone-3.0.3/zeocluster/client1/Products/CMFPlone/ > > utils.py", line 7, in ? > > from plone.i18n.normalizer.interfaces import IIDNormalizer > > ImportError: No module named i18n.normalizer.interfaces > > Traceback (most recent call last): > > File "/opt/Plone-3.0.3/lib/python/Zope2/Startup/run.py", line 56, > > in ? > > run() > > File "/opt/Plone-3.0.3/lib/python/Zope2/Startup/run.py", line 21, in > > run > > starter.prepare() > > File "/opt/Plone-3.0.3/lib/python/Zope2/Startup/__init__.py", line > > 102, in prepare > > self.startZope() > > File "/opt/Plone-3.0.3/lib/python/Zope2/Startup/__init__.py", line > > 278, in startZope > > Zope2.startup() > > File "/opt/Plone-3.0.3/lib/python/Zope2/__init__.py", line 47, in > > startup > > _startup() > > File "/opt/Plone-3.0.3/lib/python/Zope2/App/startup.py", line 45, in > > startup > > OFS.Application.import_products() > > File "/opt/Plone-3.0.3/lib/python/OFS/Application.py", line 686, in > > import_products > > import_product(product_dir, product_name, raise_exc=debug_mode) > > File "/opt/Plone-3.0.3/lib/python/OFS/Application.py", line 709, in > > import_product > > product=__import__(pname, global_dict, global_dict, silly) > > File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ > > __init__.py", line 64, in ? > > import Products.ATContentTypes.content > > File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ > > content/__init__.py", line 26, in ? > > import Products.ATContentTypes.content.link > > File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ > > content/link.py", line 39, in ? > > from Products.ATContentTypes.content.base import registerATCT > > File "/opt/Plone-3.0.3/zeocluster/client1/Products/ATContentTypes/ > > content/base.py", line 63, in ? > > from Products.CMFPlone.PloneFolder import ReplaceableWrapper > > File "/opt/Plone-3.0.3/zeocluster/client1/Products/CMFPlone/ > > __init__.py", line 215, in ? > > from browser import ploneview > > File "/opt/Plone-3.0.3/zeocluster/client1/Products/CMFPlone/browser/ > > ploneview.py", line 12, in ? > > from Products.CMFPlone import utils > > ... > > read more » ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Plone-Users mailing list Plone-Users@... https://lists.sourceforge.net/lists/listinfo/plone-users |
||||||||||||||
|
|
jonathansamuel
()
|
|
||||||||||||
|
In reply to this post by TIm Terlegård-3
> On Dec 25, 6:01 pm, Tim Terlegård <tim.terleg...@...> wrote:
> This looks exactly like an error you get when you install plone/zope > packages into the system python. Here it looks like you have > plone.i18n in system python. That must be it! I had set up my system python to be my Plone instance python. So if I type from the command line at / python -v the response is from my Plone 3.0.3 instance's python. What is more, I did that just before I installed plone.portlet.static. So it looked to me the install of plone.portlet.static had broken my system but in fact it was changing the system Python that broke things. > What happens if you do: > > $ python > >>> import plone.i18n > >>> print plone.i18n.__file__ > It tells me "no module named i18n". You have identified the problem. Remember, I am pointing to my system python which IS my Plone instance python. So if my system Python doesn't have Plone in it then neither does my Plone instance python! The solution is to undo whatever I did so that typing python -v doesn't respond from my Python instance's Plone anymore. >Remove them and use only > virtualenv or buildout (or unified installer) to install anything > plone/zope related. > > /Tim Will do. Thanks! ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Plone-Users mailing list Plone-Users@... https://lists.sourceforge.net/lists/listinfo/plone-users |
||||||||||||||
|
|
jonathansamuel
()
|
|
||||||||||||
|
After 3.5 days everything is fixed. Thanks. Tim nailed the problem.
One should never, ever, ever set one's system Python instance to be the same as one's Plone Python instance. Why one ought not to do that I have no idea. A second lesson is that it doesn't work to have a development instance in Plone/Windows and a Production instance in Plone/Linux. The two systems are sufficiently different that one cannot fully test a procedure in Plone/Windows and assume that it will work in Plone/ Linux. I am planning to run my development environment in Knoppix and my production in Centos, but I think that ought to be okay. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Plone-Users mailing list Plone-Users@... https://lists.sourceforge.net/lists/listinfo/plone-users |
||||||||||||||
|
|
George L
()
|
|
||||||||||||
Great, glad it worked. Sorry for the red herring about ZCML, on reflection it really doesn't look like a bug with that ... usually those are traversal errors that say "No traversable adapter found." I think that the reason to be careful about having two Pythons is then Zope + Plone might expect a Python library to be available, when it's actually looking in the wrong Python location. It's okay to have the system + Plone python to be the same if it's done consistently. Peace, Geoge |
||||||||||||||
|
|
Reed O'Brien
()
|
|
||||||||||||
|
In reply to this post by jonathansamuel
On Dec 26, 2007, at 10:20 AM, Jonathan Mark wrote:
> After 3.5 days everything is fixed. Thanks. Tim nailed the problem. > One should never, ever, ever set one's system Python instance to be > the same as one's Plone Python instance. > > Why one ought not to do that I have no idea. > > A second lesson is that it doesn't work to have a development instance > in Plone/Windows and a Production instance in Plone/Linux. The two > systems are sufficiently different that one cannot fully test a > procedure in Plone/Windows and assume that it will work in Plone/ > Linux. > > I am planning to run my development environment in Knoppix and my > production in Centos, but I think that ought to be okay. You could also do both using Ubuntu. Then both environments are the same but you could have a decent GUI on the development system. The same is arguably true of Centos. ~ro ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Plone-Users mailing list Plone-Users@... https://lists.sourceforge.net/lists/listinfo/plone-users |
||||||||||||||
|
|
jonathansamuel
()
|
|
||||||||||||
|
In reply to this post by jonathansamuel
The command /opt/Plone-3.0.4/Python-2.4.4/bin/easy_install
plone.portlet.static is broken after all. I have Centos 4. Python 2.51 is my system Python. I do a straight install of the Python.org bundled version of Plone-3.0.4 that includes Python and Zope. I then add the products PloneFormGen and qPloneSkinSchools from Quintagroup. I then follow the instructions on http://plone.org/documentation/how-to/creating-static-text-portlets-in-plone-3.0/?searchterm=cfg for installing plone.portlet.static. I wrote down each step, and tested the Plone install immediately after each step. (1) I run "/opt/Plone-3.0.4/bin/python ez_setup.py -U setuptools" Everything was ok. (2) I run "/opt/Plone-3.0.4/Python-2.4.4/bin/easy_isntall plone.portlet.static . The easy_install command did not return any error messages. But when I bring up the ZMI and look at the root directory all of my Plone instances display with the message "This object from CMFPlone Product is broken." In addition, "Plone Site" is no longer listed in the dropdown of objects which can be added. (3) I fixed the problem by running "easy_install -m plone.portlet.static", which uninstalls plone.portlet.static . Plone went back to working correctly. Although I would like to use the plone.portlet.static egg, I cannot, because it breaks my Plone. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Plone-Users mailing list Plone-Users@... https://lists.sourceforge.net/lists/listinfo/plone-users |
||||||||||||||
|
|
jonathansamuel
()
|
|
||||||||||||
|
I was able to get the very limited functionality I needed simply by
using a classic portlet as described in http://plone.org/documentation/how-to/how-to-manage-portlets-in-plone-3 . ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Plone-Users mailing list Plone-Users@... https://lists.sourceforge.net/lists/listinfo/plone-users |
||||||||||||||
| Free Embeddable Forum Powered by Nabble | Help |