Python "LookupError" when exporting
by David Paul Stewart · in Artist Corner · 06/20/2008 (7:49 pm) · 9 replies
Hello. This is my first time using this exporter plugin, and I'm having a bit of trouble. I'm running OSX 10.5.3, Blender 2.46 with Python 2.5, and version 0.96 of the DTS exporter. Every time I try to export a scene, I receive an error on line 174 in Dts_Shape.py.
The line reads:
mat.name.decode("mbcs").encode("utf_8").
The error this generates is:
LookupError: unknown encoding: mbcs
This is the information I gleaned from the console output. I don't know anything about Python, so I haven't taken a look at the code.
Does anyone know what might be causing this and how it might be fixed?
The line reads:
mat.name.decode("mbcs").encode("utf_8").
The error this generates is:
LookupError: unknown encoding: mbcs
This is the information I gleaned from the console output. I don't know anything about Python, so I haven't taken a look at the code.
Does anyone know what might be causing this and how it might be fixed?
#2
06/21/2008 (12:21 am)
...
#3
06/21/2008 (12:46 am)
...
#4
06/21/2008 (12:50 am)
Thanks a lot, Joseph. That was fast! I'll test it out tomorrow and let you know how it goes.
#5
06/21/2008 (1:02 am)
...
#6
Thanks again for the help.
06/21/2008 (12:30 pm)
The new version works without errors. Now I just need to figure out how to get my UV texture to export properly (doesn't appear in ShowTool Pro). I'm sure that's just my lack of understanding how the exporter works, though, not a problem with the exporter itself :)Thanks again for the help.
#7
06/21/2008 (3:23 pm)
...
#8
Thanks for all your help, Joseph. I appreciate it.
06/22/2008 (4:55 pm)
I got it to work. I tried a simpler model and changed my image from 640x480 to 256x256, and from JPG to PNG. I'm guessing my problem was not using a texture with proper dimensions.Thanks for all your help, Joseph. I appreciate it.
#9
06/22/2008 (5:30 pm)
...
Torque Owner Redacted