There are more problems with this package. I do not personally know
enough about it to propose a real solution, what worked for me was to
remove some things that kid/et.py tried to export which are no longer
found in the ElementTree module.

After the initial changes involving wrong precedence of _future_ imports
I still was getting the following traceback:

[EMAIL PROTECTED]:~/media/music$ sudo python -c "import kid"                
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/var/lib/python-support/python2.5/kid/__init__.py", line 30, in 
<module>   
    from kid.codewriter import KID_XMLNS
  File "/var/lib/python-support/python2.5/kid/codewriter.py", line 16, in 
<module> 
    from kid.parser import *
  File "/var/lib/python-support/python2.5/kid/parser.py", line 9, in <module>
    from kid.et import *  # ElementTree
AttributeError: 'module' object has no attribute 'ElementTree'


I was able to solve it and successfuly run my code by doing the following (diff 
on kid/et.py):
134c134,136
<            'Fragment']
---
>            'Fragment', 'ElementTree', 'QName', 'dump',
>            'parse', 'tostring', 'namespaces', 'escape_map',
>            'encode_entity', 'raise_serialization_error']

However I don't know if it's safe for other people using Kid.

-- 
Python-kid package breaks on import
https://launchpad.net/bugs/87372

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to