question

Jim Polk avatar image
Jim Polk asked ·

Error installing MtoA for Maya 2018.3.0

Download "MtoA 2018" for Linux from this link:


https://www.arnoldrenderer.com/arnold/download/product-download/?id=3131


Installing as root, after typing 'accept' and '1' got:


--== Maya to Arnold Installer ==--
Traceback (most recent call last):
File "./unix_installer.py", line 119, in <module>
installDir = os.path.join('/usr', 'autodesk', 'arnold', 'maya{}'.format(mayaVersion))
ValueError: zero length field name in format


Our studio location for Maya 2018.3.0 is:

/usr/apps/maya/maya-2018.3.0/


Thoughts or advice?

Thank you,


Btw, we don't normally use Maya plugin, we normally render via Arnold Core.

mtoa
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Stephen Blair avatar image
Stephen Blair answered ·

You use Python 2.6? That's the problem.

It's because line 119 isn't compatible with Python 2.6

installDir = os.path.join('/usr', 'autodesk', 'arnold','maya{}'.format(mayaVersion)) ValueError: zero length field name in format

https://stackoverflow.com/questions/21034954/valueerror-zero-length-field-name-in-format-in-python2-6-6


For Python 2.6, it has to be maya{0} not maya{}


This will be fixed in the next bugfix release.

For now, you have to either use a newer Python or fix the install script.

Extracting the files by unzipped 'package.zip' locally never works, because there's a bunch of Python files that are not created (init.py iirc, I'd have to check, haven't seen this in years)

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Jim Polk avatar image
Jim Polk answered ·

Ahh, that last step was my bad....it was picking up an older libai.so


It is working now :-D


Clicking on 'mtoa.so' loads and when I go to Render Settings, Arnold is already set as renderer.


THank you very much, Stephen

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Jim Polk avatar image
Jim Polk answered ·

Maya 2018.3.0's Plugin Mgr found it automatically, I clicked 'load' and it loaded.

Then again, went to Render Settings, set renderer to Arnold and Maya crashed again.

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Jim Polk avatar image
Jim Polk answered ·

ahh, modifying unix_installer.sh and inserting 'python27' there...installation worked. Testing now...

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Jim Polk avatar image
Jim Polk answered ·

Oh, or modify unix_installer.sh and replace 'python' with 'python2.7' ?

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Jim Polk avatar image
Jim Polk answered ·

Ahhhh, lol, okay....We have Python 2.7 too...can I modify unix_installer.py and point it to py27 somehow? Or other suggestions?

Thank you,

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Jim Polk avatar image
Jim Polk answered ·

Also, before setting Env Vars, I had found that 'mtoa.mod' contained a filepath reference that starts with 'jenkins'

>>> more mtoa.mod
+ mtoa any /jenkins/workspace/Arnold-MTOA_Build_LINUX/MTOA_DEPLOY
PATH +:= bin
MAYA_CUSTOM_TEMPLATE_PATH +:= scripts/mtoa/ui/templates


I replaced the 'jenkins' path to where the extracted MtoA 4.0.1 is located:

>>> more mtoa.mod
+ mtoa any /usr/apps/mtoa/maya2018/4.0.1
PATH +:= bin
MAYA_CUSTOM_TEMPLATE_PATH +:= scripts/mtoa/ui/templates

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Jim Polk avatar image
Jim Polk answered ·

Setting MAYA_MODULE_PATH and MAYA_RENDER_DESC_PATH to where 'mtoa.mod' lives

(https://docs.arnoldrenderer.com/display/A5AFMUG/Installing+Arnold+for+Maya+on+Linux)

I was able to load 'mtoa.so' in the Plugin Mgr. However, when I went to Render Settings and set the renderer to Arnold, Maya crashed.

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Jim Polk avatar image
Jim Polk answered ·

I also tried option '2' using '--keep' flag...and unzipped 'package.zip' locally.

I copied the results to live in our location /usr/apps/mtoa/maya2018/ and

launched Maya (2018.3.0). Unfortunately, when trying to load mtoa.so via Maya's

Plugin Manager, I got a range of error messages printed to the console (see below).

PYTHONPATH is pointed to "/usr/apps/arnold/arnold-5.4.0.2/python".

Thank you,


Here are err mesgs:

#--------------------------

exec command:

API error detected in plugins/mtoa/extension/PxMayaNode.cpp at line 469
: (kFailure): Unexpected Internal Failure

API error detected in plugins/mtoa/extension/PxMayaNode.cpp at line 469
: (kFailure): Unexpected Internal Failure

API error detected in plugins/mtoa/extension/PxMayaNode.cpp at line 469
: (kFailure): Unexpected Internal Failure

API error detected in plugins/mtoa/extension/PxMayaNode.cpp at line 469
: (kFailure): Unexpected Internal Failure

API error detected in plugins/mtoa/extension/ExtensionsManager.cpp at line 719
: (kFailure): Unexpected Internal Failure

API error detected in plugins/mtoa/extension/ExtensionsManager.cpp at line 719
: (kFailure): Unexpected Internal Failure

API error detected in plugins/mtoa/extension/ExtensionsManager.cpp at line 719
: (kFailure): Unexpected Internal Failure

API error detected in plugins/mtoa/extension/ExtensionsManager.cpp at line 719
: (kFailure): Unexpected Internal Failure

API error detected in plugins/mtoa/extension/ExtensionsManager.cpp at line 719
: (kFailure): Unexpected Internal Failure

API error detected in plugins/mtoa/extension/ExtensionsManager.cpp at line 719
: (kFailure): Unexpected Internal Failure

API error detected in plugins/mtoa/extension/ExtensionsManager.cpp at line 719
: (kFailure): Unexpected Internal Failure

API error detected in plugins/mtoa/extension/ExtensionsManager.cpp at line 719
: (kFailure): Unexpected Internal Failure

API error detected in plugins/mtoa/extension/ExtensionsManager.cpp at line 719
: (kFailure): Unexpected Internal Failure

API error detected in plugins/mtoa/extension/ExtensionsManager.cpp at line 719
: (kFailure): Unexpected Internal Failure

API error detected in plugins/mtoa/extension/ExtensionsManager.cpp at line 719
: (kFailure): Unexpected Internal Failure

API error detected in plugins/mtoa/extension/ExtensionsManager.cpp at line 719
: (kFailure): Unexpected Internal Failure

API error detected in plugins/mtoa/extension/ExtensionsManager.cpp at line 719
: (kFailure): Unexpected Internal Failure

API error detected in plugins/mtoa/extension/ExtensionsManager.cpp at line 719
: (kFailure): Unexpected Internal Failure

API error detected in plugins/mtoa/extension/ExtensionsManager.cpp at line 719
: (kFailure): Unexpected Internal Failure

API error detected in plugins/mtoa/extension/ExtensionsManager.cpp at line 719
: (kFailure): Unexpected Internal Failure

API error detected in plugins/mtoa/extension/ExtensionsManager.cpp at line 719
: (kFailure): Unexpected Internal Failure

API error detected in plugins/mtoa/extension/ExtensionsManager.cpp at line 719
: (kFailure): Unexpected Internal Failure

API error detected in plugins/mtoa/extension/ExtensionsManager.cpp at line 719
: (kFailure): Unexpected Internal Failure

API error detected in plugins/mtoa/extension/ExtensionsManager.cpp at line 719
: (kFailure): Unexpected Internal Failure

API error detected in plugins/mtoa/Main.cpp at line 1290
: (kFailure): Unexpected Internal Failure
00:00:00 744MB ERROR | Failed to import python module 'mtoa'

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.