Ошибка при создании XML
Добавлено: Сб ноя 30, 2013 9:55 am
При создании XML многоконтурного ЗУ выдает ошибку:
Traceback (most recent call last):
File "C:\Users\vitte\.qgis2\python\plugins\openLand\tools\xmlmpcreate.py", line 140, in startExport
ElementTree(self.rootXml).write(self.nameXmlFile, 'utf-8', True)
File "d:\PROGRA~1\QGISDU~1\apps\Python27\lib\xml\etree\ElementTree.py", line 820, in write
serialize(write, self._root, encoding, qnames, namespaces)
File "d:\PROGRA~1\QGISDU~1\apps\Python27\lib\xml\etree\ElementTree.py", line 939, in _serialize_xml
_serialize_xml(write, e, encoding, qnames, None)
File "d:\PROGRA~1\QGISDU~1\apps\Python27\lib\xml\etree\ElementTree.py", line 939, in _serialize_xml
_serialize_xml(write, e, encoding, qnames, None)
File "d:\PROGRA~1\QGISDU~1\apps\Python27\lib\xml\etree\ElementTree.py", line 932, in _serialize_xml
v = _escape_attrib(v, encoding)
File "d:\PROGRA~1\QGISDU~1\apps\Python27\lib\xml\etree\ElementTree.py", line 1092, in _escape_attrib
_raise_serialization_error(text)
File "d:\PROGRA~1\QGISDU~1\apps\Python27\lib\xml\etree\ElementTree.py", line 1052, in _raise_serialization_error
"cannot serialize %r (type %s)" % (text, type(text).__name__)
TypeError: cannot serialize NULL (type QPyNullVariant)
Версия Python:
2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]
Версия:
2.0.1-Dufour Dufour, d94c044
Что делать, где смотреть?
Traceback (most recent call last):
File "C:\Users\vitte\.qgis2\python\plugins\openLand\tools\xmlmpcreate.py", line 140, in startExport
ElementTree(self.rootXml).write(self.nameXmlFile, 'utf-8', True)
File "d:\PROGRA~1\QGISDU~1\apps\Python27\lib\xml\etree\ElementTree.py", line 820, in write
serialize(write, self._root, encoding, qnames, namespaces)
File "d:\PROGRA~1\QGISDU~1\apps\Python27\lib\xml\etree\ElementTree.py", line 939, in _serialize_xml
_serialize_xml(write, e, encoding, qnames, None)
File "d:\PROGRA~1\QGISDU~1\apps\Python27\lib\xml\etree\ElementTree.py", line 939, in _serialize_xml
_serialize_xml(write, e, encoding, qnames, None)
File "d:\PROGRA~1\QGISDU~1\apps\Python27\lib\xml\etree\ElementTree.py", line 932, in _serialize_xml
v = _escape_attrib(v, encoding)
File "d:\PROGRA~1\QGISDU~1\apps\Python27\lib\xml\etree\ElementTree.py", line 1092, in _escape_attrib
_raise_serialization_error(text)
File "d:\PROGRA~1\QGISDU~1\apps\Python27\lib\xml\etree\ElementTree.py", line 1052, in _raise_serialization_error
"cannot serialize %r (type %s)" % (text, type(text).__name__)
TypeError: cannot serialize NULL (type QPyNullVariant)
Версия Python:
2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]
Версия:
2.0.1-Dufour Dufour, d94c044
Что делать, где смотреть?