python-xml doesn't contain all of the modules
Scott Kitterman
ubuntu at kitterman.com
Sun Aug 3 18:21:07 BST 2008
On Sun, 3 Aug 2008 18:27:08 +0200 "Pawe³ Skar¿yñski" <chesteroni at gmail.com> wrote:
>Hello!
>
>I am running Ubuntu 8.04 and I'm using python 2.5 to develop some applications.
>I just needed to use PyXML. The package containing it is in
>debian/ubuntu called:
>python-xml
>
>The package version is: 0.8.4-10ubuntu2
>So I think it contains PyXML 0.8.4 which is the latest version.
>
>In my code I MUST use such instruction:
><code>
>from xml.dom.ext import Canonicalize
></code>
>
>But python-xml does not made ext module available in Python.
>When I manually installed downloaded tarball from sourceforge with
>PyXML 0.8.4 - it worked.
>It should work without such manual intervention - but it isn't so I
>think, there are two possibilities:
>a) there was an error during creating .deb package and the package
>does not contains extensions (in ext subdirectory)
>b) the package has put ext module in incorrect place so " from
>xml.dom.ext" cannot work.
>
(for those of you not on IRC)
As we discussed python-xml not being installed in the default path is on purpose to avoid stomping on XML functions in Python itself. Add oldxml to your sys.path to work around this if it's really needed.
Scott K
More information about the Ubuntu-motu
mailing list