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.
Solved! Go to Solution.
Solved by Stephen.Blair. Go to Solution.
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'
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.
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
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
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)
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,
ahh, modifying unix_installer.sh and inserting 'python27' there...installation worked. Testing now...
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.
Ahh, that last step was my bad....it was picking up an older libai.so
It is working now 😄
Clicking on 'mtoa.so' loads and when I go to Render Settings, Arnold is already set as renderer.
THank you very much, Stephen