Attribute Error in xml.sax.saxutils.XMLGenerator on Arch Linux (64bit)
Andreas Hasenkopf
webmaster at hasenkopf2000.net
Wed Jun 29 06:45:17 EDT 2011
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 554 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-list/attachments/20110629/7d1bf715/attachment.sig>
More information about the Python-list
mailing list