Arnold renderer fails to initialize!

Arnold renderer fails to initialize!

Anonymous
Not applicable
3,242 Views
5 Replies
Message 1 of 6

Arnold renderer fails to initialize!

Anonymous
Not applicable

 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.

0 Likes
Accepted solutions (1)
3,243 Views
5 Replies
Replies (5)
Message 2 of 6

ray
Advocate
Advocate

Did you update Arnold to Maya 2017 version ?

0 Likes
Message 3 of 6

Anonymous
Not applicable

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 # 
0 Likes
Message 4 of 6

Anonymous
Not applicable

Bump 😞

 

I have tried every mtoa from 1.3.0+, same problem. Fresh Maya 2017 installation.

0 Likes
Message 5 of 6

Stephen.Blair
Community Manager
Community Manager
Accepted solution

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?



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

Anonymous
Not applicable

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!

 

0 Likes