After trying to enable the Arnold plugin, I get the following error.
import arnold // Successfully imported python module 'arnold' import mtoa // Successfully imported python module 'mtoa' import mtoa.cmds.registerArnoldRenderer;mtoa.cmds.registerArnoldRenderer.registerArnoldRenderer() # Error: line 1: LookupError: file C:\solidangle\mtoadeploy\2017\scripts\mtoa\cmds\registerArnoldRenderer.py line 16: unknown encoding: cp0 # // Error: Failed to register renderer 'arnold' // // Error: line 1: initializePlugin function failed (mtoa) //
Was working perfectly in 2016. I updated to 2017 Update 2 today, and unable to load Arnold.
Thanks.
Solved! Go to Solution.
Solved by Stephen.Blair. Go to Solution.
Thanks for replying.
I installed the latest 1.4.1.1 version.
Nothing has changed.
# Error: line 1: unknown encoding: cp0 # Traceback (most recent call last): # File "<maya console>", line 1, in <module> # File "C:\solidangle\mtoadeploy\2017\scripts\mtoa\cmds\registerArnoldRenderer.py", line 16, in <module> # print "Maya %s importing module pymel %s (%s)" % (maya_version, pymel.__version__, pymel.__file__) # LookupError: unknown encoding: cp0 #
It's not an MtoA problem, as shown in the other version of this thread that you started in a different forum.
You got the same error running just this Python in the script editor:
import pymel import pymel.versions as versions maya_version = versions.shortName() print "Maya %s importing module pymel %s (%s)" % (maya_version, pymel.__version__, pymel.__file__)
What if you run that Python snippet with mayapy...do you still get the encoding error?
Then try setting the PYTHONIOENCODING env variable.
Also, what's chcp output when you run it in a command prompt?
Thanks for replying.
mayapy.exe displays the print correctly
Maya 2017 importing module pymel 1.0.9 (C:\Program Files\Autodesk\Maya2017\Python\lib\site-packages\pymel\__init__.py)
PYTHONIOENCODING = UTF-8
After googling PYTHONIOENCODING and cp0, I tried these as well: mbcs, cp1252:backslashreplace
mayapy.exe still works fine, in Maya however...
# Error: line 1: 9 # Traceback (most recent call last): # File "<maya console>", line 4, in <module> # IOError: [Errno 9] Bad file descriptor #
chcp reports
Active code page: 850
Sorry about this, beyond a fresh maya install I don't really know how to fix this!
If it helps.... I am on Windows 10, Arndold worked perfectly in Maya 2016!