# Xml.dom.minidom in gateway script

**URL:** <https://forum.inductiveautomation.com/t/xml-dom-minidom-in-gateway-script/9965>\
**Category:** Ignition\
**Created:** [April 28, 2015, 7:42pm UTC](https://forum.inductiveautomation.com/t/xml-dom-minidom-in-gateway-script/9965 "2015-04-28T19:42:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sonny\_Vallgren](https://avatars.discourse-cdn.com/v4/letter/s/e19b73/32.png) [@Sonny\_Vallgren](https://forum.inductiveautomation.com/u/Sonny_Vallgren)\
**Post date:** [April 28, 2015, 7:42pm UTC](https://forum.inductiveautomation.com/t/xml-dom-minidom-in-gateway-script/9965/1 "2015-04-28T19:42:52Z")

</div>

I’m running ignition 7.7.4

When I try to run:

from xml.dom.minidom import parseString

In a time triggerd gateway script I get this error.

Traceback (most recent call last):  
INFO | jvm 2 | 2015/04/28 21:28:22 | File “\<TimerScript:Danfoss\_XML/danfoss1min @6,000ms \>”, line 1, in   
INFO | jvm 2 | 2015/04/28 21:28:22 | File “user-lib\pylib\xml\dom\__init_\_.py”, line 226, in   
INFO | jvm 2 | 2015/04/28 21:28:22 | import MessageSource  
INFO | jvm 2 | 2015/04/28 21:28:22 | File “user-lib\pylib\xml\dom\MessageSource.py”, line 21, in   
INFO | jvm 2 | 2015/04/28 21:28:22 | \_ = get\_translator(“dom”)  
INFO | jvm 2 | 2015/04/28 21:28:22 | File “user-lib\pylib\xml\FtCore.py”, line 54, in get\_translator  
INFO | jvm 2 | 2015/04/28 21:28:22 | f = gettext.translation(‘4Suite’, locale\_dir).gettext  
INFO | jvm 2 | 2015/04/28 21:28:22 | File “user-lib\pylib\xml\FtCore.py”, line 54, in get\_translator  
INFO | jvm 2 | 2015/04/28 21:28:22 | f = gettext.translation(‘4Suite’, locale\_dir).gettext  
INFO | jvm 2 | 2015/04/28 21:28:22 | File “user-lib\pylib\gettext.py”, line 466, in translation  
INFO | jvm 2 | 2015/04/28 21:28:22 | mofiles = find(domain, localedir, languages, all=1)  
INFO | jvm 2 | 2015/04/28 21:28:22 | File “user-lib\pylib\gettext.py”, line 438, in find  
INFO | jvm 2 | 2015/04/28 21:28:22 | for nelang in _expand\_lang(lang):  
INFO | jvm 2 | 2015/04/28 21:28:22 | File “user-lib\pylib\gettext.py”, line 133, in expand\_lang  
INFO | jvm 2 | 2015/04/28 21:28:22 | locale = normalize(locale)  
INFO | jvm 2 | 2015/04/28 21:28:22 | File “user-lib\pylib\locale.py”, line 329, in normalize  
INFO | jvm 2 | 2015/04/28 21:28:22 | norm\_encoding = encodings.normalize\_encoding(encoding)  
INFO | jvm 2 | 2015/04/28 21:28:22 | File "user-lib\pylib\encodings\_init.py", line 68, in normalize\_encoding  
INFO | jvm 2 | 2015/04/28 21:28:22 | return '_’.join(encoding.translate(\_norm\_encoding\_map).split())  
INFO | jvm 2 | 2015/04/28 21:28:22 | TypeError: translate() only works for 8-bit character strings

It seems to work in 7.7.0, the only thing that differs in the setup is that the one which is failing is running in redundant mode.

Any ideas?
