[Hardy] ImportError: No module named ext

Bug #215723 reported by Simone Tolotti
10
Affects Status Importance Assigned to Milestone
python-xml (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: python-xml

I don't know what's this related... I hope I've posted this bug in the right place...
I use a billing program written in python that worked flawlessy in Feisty and Gutsy, after upgrading to Hardy, it stopped working and give me this message:

simone@simone-desktop:~$ promoGest
Traceback (most recent call last):
  File "./promogest.py", line 25, in <module>
    from promogest.ui.Login import Login
  File "/opt/promogest/python/promogest/ui/Login.py", line 26, in <module>
    from Main import Main
  File "/opt/promogest/python/promogest/ui/Main.py", line 25, in <module>
    from GladeWidget import GladeWidget
  File "/opt/promogest/python/promogest/ui/GladeWidget.py", line 29, in <module>
    from xml.dom.ext import PrettyPrint
ImportError: No module named ext

All dependencies seems satisfied.

simone@simone-desktop:~$ apt-cache showpkg promogest
Package: promogest
Versions:
0.9.4.3 (/var/lib/dpkg/status)
 Description Language:
                 File: /var/lib/dpkg/status
                  MD5: 482308c03bc0934a66ac44e5d22cb280

Reverse Depends:
Dependencies:
0.9.4.3 - python2.5 (0 (null)) libpq-dev (0 (null)) python-gtk2 (0 (null)) python-glade2 (0 (null)) python-reportlab (0 (null)) python-imaging (0 (null)) python-gnome2-extras (0 (null)) python-libxslt1 (0 (null)) python-dev (0 (null)) python-setuptools (0 (null)) python-egenix-mxdatetime (0 (null)) python-psycopg2 (0 (null)) python-xml (0 (null)) python-gtkhtml2 (0 (null))
Provides:
0.9.4.3 -
Reverse Provides:

If you need more info, please ask...

Revision history for this message
Scott Kitterman (kitterman) wrote : Re: [Bug 215723] [NEW] [Hardy] ImportError: No module named ext

Most of the functionality of python-xml was implemented in Python itself
starting with Python 2.4. For Hardy we've moved python-xml out of the
default path. I don't have the details handy, but your program will need
some small changes.

Revision history for this message
Morten Kjeldgaard (mok0) wrote :

This is a consequence of the fact the python-xml has been removed from hardy (see the discussion & explanation at bug #199014 ).

Python ships with its own implementation of the xml module, and that is where your program finds the xml.dom module. Unfortunately, the function "PrettyPrint" is not a part of that implementation, which is why you are getting an exception.

The package python-4suite-xml contains a PrettyPrint function, but you may need access to the source code of the billing program to make the necessary changes.

Alternatively, you can install the old python-xml package on your system.

Revision history for this message
laga (laga) wrote :

Check the changelog of 0.8.4-10ubuntu1 at https://launchpad.net/ubuntu/+source/python-xml/ for a quick work around. A 'proper' fix for your application might be better. I'm not sure if the old XML modules will be removed..

Revision history for this message
Simone Tolotti (simontol) wrote :

python-xml was installed as a dependency of the app.
I'll ask application developers to fix this.
Thanks.

Morten Kjeldgaard (mok0)
Changed in python-xml:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.