Community
Maya Forum
Welcome to Autodesk’s Maya Forums. Share your knowledge, ask questions, and explore popular Maya topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Arnold renderer fails to initialize!

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
yusuf.a23
2332 Views, 5 Replies

Arnold renderer fails to initialize!

 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.

5 REPLIES 5
Message 2 of 6
ray
Advocate
in reply to: yusuf.a23

Did you update Arnold to Maya 2017 version ?

Message 3 of 6
yusuf.a23
in reply to: ray

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 # 
Message 4 of 6
yusuf.a23
in reply to: yusuf.a23

Bump 😞

 

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

Message 5 of 6
Stephen.Blair
in reply to: yusuf.a23

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
Message 6 of 6
yusuf.a23
in reply to: Stephen.Blair

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!

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report