STEAM GROUP
Blender Source Tools BleST
STEAM GROUP
Blender Source Tools BleST
287
IN-GAME
1,666
ONLINE
Founded
8 November, 2013
All Discussions > Bug Reports > Topic Details
Mr L 19 Apr, 2017 @ 11:53pm
error when using bpy.ops.import_scene.smd(filename=f)
Some troubles having encoding == None in
io_scene_valvesource/utils.py::90

fixed it

from
builtins.print(" ".join([str(a) for a in args]).encode(sys.getdefaultencoding()).decode(sys.stdout.encoding), end= "\n" if newline else "", flush=True)

to
builtins.print(
" ".join([str(a) for a in args]).encode(
sys.getdefaultencoding()).decode(
sys.stdout.encoding if sys.stdout.encoding != None else "UTF-8"),
end= "\n" if newline else "", flush=True)

Using last updated version, windows 10 blender 2.78
Last edited by Mr L; 19 Apr, 2017 @ 11:55pm
< >
Showing 1-1 of 1 comments
Artfunkel 22 Apr, 2017 @ 7:13am 
Thanks, I've pushed this fix to the Git repo. It'll be in the next release.
< >
Showing 1-1 of 1 comments
Per page: 1530 50

All Discussions > Bug Reports > Topic Details