#1 — gsxml 0.4.1 installation failed!
by
(anonymous)
—
last modified
Jan 08, 2009 05:44 PM
| State | Resolved |
|---|---|
| Version: | 0.4.1 |
| Area | Functionality |
| Issue type | Bug |
| Severity | Medium |
| Submitted by | (anonymous) |
| Submitted on | Jul 23, 2007 |
| Responsible | Ramon Bartl |
| Target release: | 0.4.1 |
I followed the installation guide but failed in the step of gsxml installation. Below is the error message. I am waiting for use this tool to export the content of my customer's site. Could any one help me on this issue?
My environment is as same as installation guide's requirement.
Traceback (innermost last):
* Module ZPublisher.Publish, line 196, in publish_module_standard
* Module Products.PlacelessTranslationService.PatchStringIO, line 34, in new_publish
* Module ZPublisher.Publish, line 146, in publish
* Module Zope2.App.startup, line 222, in zpublisher_exception_hook
* Module ZPublisher.Publish, line 115, in publish
* Module ZPublisher.mapply, line 88, in mapply
* Module ZPublisher.Publish, line 41, in call_object
* Module Shared.DC.Scripts.Bindings, line 311, in __call__
* Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
* Module Products.CMFCore.FSPageTemplate, line 195, in _exec
* Module Products.CacheSetup.patch_cmf, line 18, in FSPT_pt_render
* Module Products.CacheSetup.patch_utils, line 9, in call_pattern
* Module Products.CMFCore.FSPageTemplate, line 134, in pt_render
* Module Products.CacheSetup.patch_cmf, line 68, in PT_pt_render
* Module Products.CacheSetup.patch_utils, line 9, in call_pattern
* Module Products.PageTemplates.PageTemplate, line 104, in pt_render
<FSPageTemplate at /ploneX/folder_listing>
* Module TAL.TALInterpreter, line 238, in __call__
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 749, in do_useMacro
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 457, in do_optTag_tal
* Module TAL.TALInterpreter, line 442, in do_optTag
* Module TAL.TALInterpreter, line 437, in no_tag
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 749, in do_useMacro
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 511, in do_setGlobal_tal
* Module Products.PageTemplates.TALES, line 221, in evaluate
URL: file:CMFPlone/skins/plone_templates/global_defines.pt
Line 3, Column 0
Expression: standard:'context/@@plone'
Names:
{'container': <PloneSite at /ploneX>,
'context': <PloneSite at /ploneX>,
'default': <Products.PageTemplates.TALES.Default instance at 0xb72b622c>,
'here': <PloneSite at /ploneX>,
'loop': <Products.PageTemplates.TALES.SafeMapping object at 0xb25facc>,
'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0xb72632cc>,
'nothing': None,
'options': {'args': ()},
'repeat': <Products.PageTemplates.TALES.SafeMapping object at 0xb25facc>,
'request': <HTTPRequest, URL=http://localhost:8080/ploneX/folder_listing>,
'root': <Application at >,
'template': <FSPageTemplate at /ploneX/folder_listing>,
'traverse_subpath': [],
'user': <PropertiedUser 'admin'>}
* Module Products.PageTemplates.Expressions, line 185, in __call__
* Module Products.PageTemplates.Expressions, line 173, in _eval
* Module Products.PageTemplates.Expressions, line 127, in _eval
__traceback_info__: context
* Module Products.PageTemplates.Expressions, line 320, in restrictedTraverse
__traceback_info__: {'path': ['@@plone'], 'TraversalRequestNameStack': []}
* Module OFS.ObjectManager, line 728, in __getitem__
My environment is as same as installation guide's requirement.
Traceback (innermost last):
* Module ZPublisher.Publish, line 196, in publish_module_standard
* Module Products.PlacelessTranslationService.PatchStringIO, line 34, in new_publish
* Module ZPublisher.Publish, line 146, in publish
* Module Zope2.App.startup, line 222, in zpublisher_exception_hook
* Module ZPublisher.Publish, line 115, in publish
* Module ZPublisher.mapply, line 88, in mapply
* Module ZPublisher.Publish, line 41, in call_object
* Module Shared.DC.Scripts.Bindings, line 311, in __call__
* Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
* Module Products.CMFCore.FSPageTemplate, line 195, in _exec
* Module Products.CacheSetup.patch_cmf, line 18, in FSPT_pt_render
* Module Products.CacheSetup.patch_utils, line 9, in call_pattern
* Module Products.CMFCore.FSPageTemplate, line 134, in pt_render
* Module Products.CacheSetup.patch_cmf, line 68, in PT_pt_render
* Module Products.CacheSetup.patch_utils, line 9, in call_pattern
* Module Products.PageTemplates.PageTemplate, line 104, in pt_render
<FSPageTemplate at /ploneX/folder_listing>
* Module TAL.TALInterpreter, line 238, in __call__
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 749, in do_useMacro
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 457, in do_optTag_tal
* Module TAL.TALInterpreter, line 442, in do_optTag
* Module TAL.TALInterpreter, line 437, in no_tag
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 749, in do_useMacro
* Module TAL.TALInterpreter, line 281, in interpret
* Module TAL.TALInterpreter, line 511, in do_setGlobal_tal
* Module Products.PageTemplates.TALES, line 221, in evaluate
URL: file:CMFPlone/skins/plone_templates/global_defines.pt
Line 3, Column 0
Expression: standard:'context/@@plone'
Names:
{'container': <PloneSite at /ploneX>,
'context': <PloneSite at /ploneX>,
'default': <Products.PageTemplates.TALES.Default instance at 0xb72b622c>,
'here': <PloneSite at /ploneX>,
'loop': <Products.PageTemplates.TALES.SafeMapping object at 0xb25facc>,
'modules': <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0xb72632cc>,
'nothing': None,
'options': {'args': ()},
'repeat': <Products.PageTemplates.TALES.SafeMapping object at 0xb25facc>,
'request': <HTTPRequest, URL=http://localhost:8080/ploneX/folder_listing>,
'root': <Application at >,
'template': <FSPageTemplate at /ploneX/folder_listing>,
'traverse_subpath': [],
'user': <PropertiedUser 'admin'>}
* Module Products.PageTemplates.Expressions, line 185, in __call__
* Module Products.PageTemplates.Expressions, line 173, in _eval
* Module Products.PageTemplates.Expressions, line 127, in _eval
__traceback_info__: context
* Module Products.PageTemplates.Expressions, line 320, in restrictedTraverse
__traceback_info__: {'path': ['@@plone'], 'TraversalRequestNameStack': []}
* Module OFS.ObjectManager, line 728, in __getitem__
Added by
Ramon Bartl
on
Jul 23, 2007 09:50 PM
Hi,
Issue state:
unconfirmed
→
open
Target release:
None
→
0.4.1
Responsible manager:
(UNASSIGNED)
→
ramonski
the egg has to live in your ´/usr/lib/python2.4/site-packages´ so that you can type something like this::
ramon@brain:~$ python
Python 2.4.4 (#2, Apr 12 2007, 21:03:11)
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import inquant.plone.gsxml
>>>
If you get a traceback here, something went wrong with the installation of the egg. If the error still occurs, feel free to send me an email with additional details;)
Greets ramonski
Added by
(anonymous)
on
Jul 25, 2007 03:15 AM
Hi, ramonski
Thanks for your quick reply. But I still have the problem. Here is my detail environment and installation step.
I am quite new for Zope/Plone and python. Forgive me if my question is too simple.
1. Install Plone2.5.3
hefeng@pc102:~/software/plone/Plone-2.5.3-UnifiedInstaller$ sudo ./install.sh
2. check out Five and Marshall to /opt/Plone2.5.3/zeocluster/client1/Product
hefeng@pc102:~/software/download/plone-gsxml-staff$ sudo cp -pr ./Five /opt/Plone-2.5.3/zeocluster/client1/Products
hefeng@pc102:~/software/download/plone-gsxml-staff$ sudo cp -pr ./Marshall /opt/Plone-2.5.3/zeocluster/client1/Products
3. start Plone and create a Plone site
4. Install easy_install to Plone2.5.3 embeded python2.4
hefeng@pc102:/opt/Plone-2.5.3/Python-2.4.4/bin$ sudo ./python /home/hefeng/software/download/plone-gsxml-staff/ez_setup.py
Downloading http://cheeseshop.python.org/[…]/setuptools-0.6c6-py2.4.egg
Processing setuptools-0.6c6-py2.4.egg
creating /opt/Plone-2.5.3/Python-2.4.4/lib/python2.4/site-packages/setuptools-0.6c6-py2.4.egg
Extracting setuptools-0.6c6-py2.4.egg to /opt/Plone-2.5.3/Python-2.4.4/lib/python2.4/site-packages
Adding setuptools 0.6c6 to easy-install.pth file
Installing easy_install script to /opt/Plone-2.5.3/Python-2.4.4/bin
Installing easy_install-2.4 script to /opt/Plone-2.5.3/Python-2.4.4/bin
Installed /opt/Plone-2.5.3/Python-2.4.4/lib/python2.4/site-packages/setuptools-0.6c6-py2.4.egg
Processing dependencies for setuptools==0.6c6
Finished processing dependencies for setuptools==0.6c6
5. change the python path in /usr/bin/easy_install
vi /usr/bin/easy_install and change the first line as below
#!/opt/Plone-2.5.3/Python-2.4.4/bin/python
6. Install gsxml
hefeng@pc102:/opt/Plone-2.5.3/Python-2.4.4/bin$ sudo easy_install inquant.plone.gsxml
Searching for inquant.plone.gsxml
Reading http://cheeseshop.python.org/pypi/inquant.plone.gsxml/
Reading http://svn.plone.org/svn/plone/plone.app.example
Download error: (111, 'Connection refused') -- Some packages may not be found!
Reading http://cheeseshop.python.org/pypi/inquant.plone.gsxml/0.4.1
Reading http://svn.plone.org/svn/plone/plone.app.example
Download error: (111, 'Connection refused') -- Some packages may not be found!
Best match: inquant.plone.gsxml 0.4.1
Downloading http://cheeseshop.python.or[…]501bc7dd0d74ec66de02464c4d1
Processing inquant.plone.gsxml-0.4.1-py2.4.egg
creating /opt/Plone-2.5.3/Python-2.4.4/lib/python2.4/site-packages/inquant.plone.gsxml-0.4.1-py2.4.egg
Extracting inquant.plone.gsxml-0.4.1-py2.4.egg to /opt/Plone-2.5.3/Python-2.4.4/lib/python2.4/site-packages
Adding inquant.plone.gsxml 0.4.1 to easy-install.pth file
Installed /opt/Plone-2.5.3/Python-2.4.4/lib/python2.4/site-packages/inquant.plone.gsxml-0.4.1-py2.4.egg
Processing dependencies for inquant.plone.gsxml
Finished processing dependencies for inquant.plone.gsxml
6. import inquant.plone.gsxml in python command line
hefeng@pc102:/opt/Plone-2.5.3/Python-2.4.4/bin$ ./python
Python 2.4.4 (#1, Jul 25 2007, 10:12:43)
[GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import inquant.plone.gsxml
>>>
7. restart the plone and check if the site setup has the gsxml product in product list.
The gsxml product wasn't show upt in product list.
Added by
Ramon Bartl
on
Jul 25, 2007 07:55 AM
Hi,
Issue state:
open
→
resolved
ok, looks fine so far, the egg was laid in your `site-packages` directory. Create now a file called `inquant.plone.gsxml-configure.zcml` in your `$INSTANCE_HOME/etc/package-includes` with the following line in it::
<include package="inquant.plone.gsxml" file="configure.zcml" />
In your `$INSTANCE_HOME/etc` folder should also be a file called `site.zcml` file containing that stuff::
<configure xmlns="http://namespaces.zope.org/zope"
xmlns:meta="http://namespaces.zope.org/meta"
xmlns:five="http://namespaces.zope.org/five">
<include package="Products.Five" />
<meta:redefinePermission from="zope2.Public" to="zope.Public" />
<!-- Load the meta -->
<include files="package-includes/*-meta.zcml" />
<five:loadProducts file="meta.zcml"/>
<!-- Load the configuration -->
<include files="package-includes/*-configure.zcml" />
<five:loadProducts />
<!-- Load the configuration overrides-->
<includeOverrides files="package-includes/*-overrides.zcml" />
<five:loadProductsOverrides />
</configure>
After you added these files, start your instance.
NOTE::
- In Plone 2.5.3 GSXML wont appear in the quickinstaller, simply add `gsxml` at the end of your URL and the GSXML Gui should appear.
- We have no adapter for ISiteRoot, so GSXML will fail when you try to export the front-page with e.g. the following URL::
http://localhost:8080/plone/gsxml
Greets
ramonski
No responses can be added.
If you can, please log in before submitting a reaction.
