Can't enable Object:SuperTuxKart Panel plugin in blender

Posted:
04 May 2012, 03:21
by zootal
I'm trying to setup blender to work on a track for STK, and one of the plugins we are supposed to enable is Object: SuperTuxKart Panel. When I try to enable it by checking the box, nothing happens. All of the other plugins enabled just fine, but this one just sits there and ignores me.
Any ideas how to get this module to enable?
Re: Can't enable Object:SuperTuxKart Panel plugin in blender

Posted:
04 May 2012, 03:53
by Auria
Hi,
can you give more info, like which blender version and which OS? and can you run blender from terminal and see if any error message is printed when trying to enable them
Re: Can't enable Object:SuperTuxKart Panel plugin in blender

Posted:
04 May 2012, 04:24
by zootal
Blender 2.63
Slackware 13.37 64 bit
3.3.3 kernel
I get a nice long list of stuff in the console:
Traceback (most recent call last):
File "/opt/blender/2.63/scripts/modules/addon_utils.py", line 259, in enable
mod = __import__(module_name)
File "/opt/blender/2.63/scripts/addons/stk_panel.py", line 732, in <module>
SCENE_PROPS = getPropertiesFromXML(os.path.join(datapath, "stk_panel_parameters.xml"), contextLevel=CONTEXT_SCENE)
File "/opt/blender/2.63/scripts/addons/stk_panel.py", line 715, in getPropertiesFromXML
node = xml.dom.minidom.parse(filename)
File "/opt/blender/2.63/python/lib/python3.2/xml/dom/minidom.py", line 1945, in parse
return expatbuilder.parse(file)
File "/opt/blender/2.63/python/lib/python3.2/xml/dom/expatbuilder.py", line 924, in parse
result = builder.parseFile(fp)
File "/opt/blender/2.63/python/lib/python3.2/xml/dom/expatbuilder.py", line 207, in parseFile
parser.Parse(buffer, 0)
xml.parsers.expat.ExpatError: junk after document element: line 50, column 0
I did a fresh download of stk_panel.py, but it was identical to the one I already had. I'm not quite sure what the error message is telling me, as I haven't done python for along time.
Re: Can't enable Object:SuperTuxKart Panel plugin in blender

Posted:
05 May 2012, 03:12
by Auria
Did you also download the XML files in folder 'stkdata'? Those are also required
Re: Can't enable Object:SuperTuxKart Panel plugin in blender

Posted:
05 May 2012, 17:34
by zootal
Mystery solved - the xml file was corrupt. I traced the code, and it choked on the line that parses the file, and the only thing I could think of that would cause this is an invalid xml file. Sure enough. A fresh download fixed the problem. :-)
Re: Can't enable Object:SuperTuxKart Panel plugin in blender

Posted:
06 May 2012, 20:31
by Auria
zootal {l Wrote}:Mystery solved - the xml file was corrupt. I traced the code, and it choked on the line that parses the file, and the only thing I could think of that would cause this is an invalid xml file. Sure enough. A fresh download fixed the problem. :-)
weird, but glad it's solved

Re: Can't enable Object:SuperTuxKart Panel plugin in blender

Posted:
07 May 2012, 19:21
by zootal
Auria {l Wrote}:zootal {l Wrote}:Mystery solved - the xml file was corrupt. I traced the code, and it choked on the line that parses the file, and the only thing I could think of that would cause this is an invalid xml file. Sure enough. A fresh download fixed the problem. :-)
weird, but glad it's solved

The files all downloaded just fine except the xml file - it had the html from the download site, not the actual xml. Go figure....