Attribute Error in xml.sax.saxutils.XMLGenerator on Arch Linux (64bit)

A

Andreas Hasenkopf

Hi there,
after switching from Ubuntu to Arch Linux I noticed a disturbing problem
in a Python script I wrote (see
http://sourceforge.net/projects/emcdutilityprog/files/).
Using Windows (Python 2.6) and Ubuntu 11.04 (Python 2.7) I did not
experience any problems.
Using Arch Linux (Python 2.7) I got the following errors:

Traceback (most recent call last):
File "/usr/local/bin/emcd", line 1663, in settings_dialog
self.settings.dialog(self.window)
File "/usr/local/bin/emcd", line 1502, in dialog
self.save()
File "/usr/local/bin/emcd", line 1445, in save
self.prepare_writing()
File "/usr/local/bin/emcd", line 1414, in prepare_writing

self.xmltree.startElementNS((None,u'EELS-GUI-Settings'),u'EELS-GUI-Settings',attrs,True)
File "/usr/local/bin/emcd", line 1352, in startElementNS
self._write('\t'*self.counter)
AttributeError: Generator instance has no attribute '_write'

I'm using the '_write' method in an instance Generator, which has
xml.sax.saxutils.XMLGenerator as parent. I'm using it to make the
resulting xml file more readable for humans.

Have you encountered a similar problem? Maybe you could suggest me some
possible solutions to my little problem?

Thanks a lot
Andi

--
Andreas Hasenkopf
Phone: +49 151 11728439
Homepage: http://www.hasenkopf2000.net
GPG Pub Key: http://goo.gl/4mOsM


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJOCwJAAAoJELGuljs/RfjIJZ4H/itXgTCS2bFM3k1ISD08ST+H
YGi16g8/mHBoL9sfDMWfuB4ryqhuE1kQXZlIacWc08QhCHkQSUtPz2yCDxl0gims
mSg1OyZXqKuFYq0AoYBSwVXuNQBTPEk0aIbQDRu1CdXy140sq1R2SHyXPt9tdWJg
8RpbbttfNPUhB+45jOpJ0wZJdrIrgwFJf/dbtlypNhz4sPUOKeGg9gPIF5DXNkhx
1f+9K3yYdLhZ0iHGpdjT9GVfQYWPIK/r2pmq17ziUXYoPRuaV0MipOyR8pNZMqN5
B3blmXJAb9VTf6F9PLF4KIjldtTH3qA1OedDYN2UVFNjLKufraGCYZJ0TNm1uF0=
=BJDH
-----END PGP SIGNATURE-----
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,736
Latest member
zacharyharris

Latest Threads

Top