#2 — Key Error 'atxml'

by (anonymous) — last modified Jan 08, 2009 05:44 PM
State Resolved
Version:
Area Functionality
Issue type Bug
Severity Medium
Submitted by (anonymous)
Submitted on Aug 03, 2007
Responsible Ramon Bartl
Target release: 0.4.1
If I try to export an ATDocument I get this error-Message on Console:

  Module ZPublisher.Publish, line 115, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module ZPublisher.Publish, line 41, in call_object
  Module zope.formlib.form, line 769, in __call__
  Module Products.Five.formlib.formbase, line 54, in update
  Module zope.formlib.form, line 750, in update
  Module zope.formlib.form, line 594, in success
  Module inquant.plone.gsxml.browser.gsxml_view, line 60, in action_download
  Module inquant.plone.gsxml.content, line 157, in export
  Module inquant.plone.gsxml.content, line 187, in export
  Module zope.interface.interface, line 675, in __call__
  Module zope.interface.interface, line 742, in __adapt__
  Module zope.app.component.hooks, line 96, in adapter_hook
  Module zope.interface.adapter, line 415, in adapter_hook
  Module inquant.plone.gsxml.content, line 92, in __init__
  Module Products.Marshall.registry, line 54, in getComponent
KeyError: 'atxml'
Steps to reproduce:
type '../gsxml' as last element in the url (after my document) and klick the download button.
Added by (anonymous) on Aug 04, 2007 06:00 PM
Target release: 0.4.1None
Responsible manager: ramonski(UNASSIGNED)
Now it works. I have installed libxml2-python and also python-elementtree.

Maybe you should say in your INSTALL or README that libxml2 (and also elementree) is necessary because Marshall can be successfully installed without this python modules.
Added by Ichim Tiberiu on Aug 07, 2007 05:42 PM
A few more details about solving this problem. Indeed, as can be deduced from Marshal's config.py file, you need to have installed the python bindings for libxml2. Sometimes it's not possible to simply install them from the packet manager (for example, if you have a custom python or you have used the Plone Linux installer). You'll have to download the latest version of libxml2-python from ftp://xmlsoft.org/libxml2/python/ and build it with that python (something like: sudo /path/to/python ./setup.py install). You also need a C compiler for this and maybe the -dev packages for libxml2 and libxslt, but you'll probably have that available.
Added by Ramon Bartl on Aug 08, 2007 08:14 AM
Issue state: unconfirmedresolved
Target release: None0.4.1
Responsible manager: (UNASSIGNED)ramonski
Hi Ichim Tiberiu,
Thanks for the instruction how to solve this problem. Yes, I should mention that in the README of GSXML. In the next Version of GSXML everything gets better (hopefully) :>
Greetz ramonski
Added by Zoltan Soos on Oct 09, 2007 06:08 AM
Nice product!

Thanks to this feedback I was able to install it with Plone 3.0.1 on Centos5. In this case I had to install the

"libxml2-python-2.6.21" python package and the dev package as mentioned by Ichim:

"yum install libxml2-devel"

Thanks you!

Zoltan Soos

No responses can be added.