Htoa-5.6.3.0 Error UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 136

Htoa-5.6.3.0 Error UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 136

648212712
Explorer Explorer
1,044 Views
7 Replies
Message 1 of 8

Htoa-5.6.3.0 Error UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 136

648212712
Explorer
Explorer

arnold-bug.png

0 Likes
Accepted solutions (1)
1,045 Views
7 Replies
Replies (7)
Message 2 of 8

Stephen.Blair
Community Manager
Community Manager

Python 3 version of Houdini?



// Stephen Blair
// Arnold Renderer Support
0 Likes
Message 3 of 8

648212712
Explorer
Explorer

@Stephen Blair no,it's python2.7 and I install python2.7 houdini and arnold.

0 Likes
Message 4 of 8

Stephen.Blair
Community Manager
Community Manager

Run this python in Houdini, do you get the same error?

from arnold import *

paramValueMap = AiParamValueMap()
#AiADPDialogStrings(paramValueMap, str("in the HtoA menu item  Help | Autodesk-Analytics").encode("utf-8"))

AiADPDialogStrings(paramValueMap, str("in the HtoA menu item").encode("utf-8") )

allText = ''

titleText = AtStringStruct(None)
AiParamValueMapGetStr(paramValueMap, 'title', ctypes.byref(titleText))

introText = AtStringStruct(None)
AiParamValueMapGetStr(paramValueMap, 'introduction_intro', ctypes.byref(introText))
allText += str(introText) + "\n\n"

print( str(introText) )


1628350839428.png



// Stephen Blair
// Arnold Renderer Support
0 Likes
Message 5 of 8

648212712
Explorer
Explorer

still have problem.....arnold-bug-fix.pngarnold-bug-fix-fail.png

0 Likes
Message 6 of 8

648212712
Explorer
Explorer

@ 错误.png I still can't render

0 Likes
Message 7 of 8

Stephen.Blair
Community Manager
Community Manager

The UnicodeDecodeError is a bug, and I'll log it.
It has nothing to do with your other problems.


Please ask a new question for your other problem.
And please include the Houdini details from Help > About Houdini > Show Details, and anything that is logged in the Houdini Console at startup.



// Stephen Blair
// Arnold Renderer Support
0 Likes
Message 8 of 8

648212712
Explorer
Explorer
Accepted solution

@Stephen Blair I try python 3 version, it work for me, thank you.

0 Likes