0

I've installed Maya 2022 on Ubuntu 21.10. Almost everything works great,except Arnold. I'm sure that the error I get it depends about python. I have gathered some information and I hope that someone can help me to fix the error. The error I get is :

file -f -new;

// Warning: file: /usr/autodesk/maya2022/scripts/startup/resetModelEditor.mel line 46: The renderer ('vp2Renderer') is not a registered renderer. Renderer will not be set. //
 
// Warning: file: /usr/autodesk/maya2022/scripts/startup/resetModelEditor.mel line 46: The renderer ('vp2Renderer') is not a registered renderer. Renderer will not be set. // 

// Warning: file: /usr/autodesk/maya2022/scripts/startup/resetModelEditor.mel line 46: The renderer ('vp2Renderer') is not a registered renderer. Renderer will not be set. // 

// Warning: file: /usr/autodesk/maya2022/scripts/startup/resetModelEditor.mel line 46: The renderer ('vp2Renderer') is not a registered renderer. Renderer will not be set. // 

// Error: line 1: Unable to dynamically load : libaudiofile.so
libaudiofile.so: cannot open shared object file: No such file or directory // 

// Error: line 1: Failed to apply color management settings on file open: Failed to finalize the color transform.. // 

// Viewport 2.0 floating point render target is turned off.

// Error: line 1: Failed to finalize the color transform. // 

// untitled // 
commandPort -securityWarning -name commandportDefault;
onSetCurrentLayout "Maya Classic";

# Error: line 0: ImportError: file /usr/autodesk/maya2022/lib/python3.7/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py line 142: libffi.so.6: cannot open shared object file: No such file or directory # 

// Error: Unable to execute xgen.mel. // 

// AbcExport v1.0 using Alembic 1.7.5 (built Jan 10 2021 15:45:17)

// Loading Bifrost version 2.2.1.0-202102081428-b33b49f

// Bifrost: Loading library: Amino, from: Autodesk.

// Bifrost: Loading library: AminoMayaTranslation, from: Autodesk.

// Bifrost: Loading library: bif, from: Autodesk.

// Bifrost: Loading library: bifrostObjectMayaTranslations, from: Autodesk.

// Bifrost: Loading library: geometries, from: Autodesk.

// Bifrost: Loading library: fluids, from: Autodesk.

// Bifrost: Loading library: particles, from: Autodesk.

// Bifrost: Loading library: file, from: Autodesk.

// Bifrost: Loading library: midgard, from: Autodesk.

// Bifrost: Loading library: modeling, from: Autodesk.

// Bifrost: Loading library: nucleus, from: Autodesk.

// Bifrost: Loading library: simulation, from: Autodesk.

// Bifrost: Loading library: riv_types, from: Autodesk.

// Bifrost: Loading library: riv, from: Autodesk.

// Bifrost: Loading library: scatter_pack, from: Autodesk.

// AbcImport v1.0 using Alembic 1.7.5 (built Jan 10 2021 15:45:17)

# Error: line 0: ImportError: file /usr/autodesk/maya2022/lib/python3.7/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py line 142: libffi.so.6: cannot open shared object file: No such file or directory # 

// Warning: file: /usr/autodesk/maya2022/scripts/others/supportRenderers.mel line 67: The renderer "arnold" used by this scene, is not currently available. The "mayaSoftware" renderer will be used instead. 

To prevent this message from being displayed in the future, set the environment variable: MAYA_NO_WARNING_FOR_MISSING_DEFAULT_RENDERER=1 // 

// Error: file: /usr/autodesk/maya2022/scripts/others/pluginWin.mel line 316: initializePlugin function failed (mtoa) // 
evalDeferred "shaderBallRendererMenuUpdate";

# Error: file: /usr/autodesk/maya2022/scripts/others/pluginWin.mel line 316: ImportError: file /usr/autodesk/maya2022/lib/python3.7/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py line 142: libffi.so.6: cannot open shared object file: No such file or directory # 

# Error: file: /usr/autodesk/maya2022/scripts/others/pluginWin.mel line 316: ImportError: file /usr/autodesk/maya2022/lib/python3.7/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py line 142: libffi.so.6: cannot open shared object file: No such file or directory # 

# Error: file: /usr/autodesk/maya2022/scripts/others/pluginWin.mel line 316: ImportError: file /usr/autodesk/maya2022/lib/python3.7/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py line 142: libffi.so.6: cannot open shared object file: No such file or directory # 

# Error: file: /usr/autodesk/maya2022/scripts/others/pluginWin.mel line 316: ImportError: file /usr/autodesk/maya2022/lib/python3.7/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py line 142: libffi.so.6: cannot open shared object file: No such file or directory # 

# Error: file: /usr/autodesk/maya2022/scripts/others/pluginWin.mel line 316: ImportError: file /usr/autodesk/maya2022/lib/python3.7/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py line 142: libffi.so.6: cannot open shared object file: No such file or directory # 

# Error: file: /usr/autodesk/maya2022/scripts/others/pluginWin.mel line 316: ImportError: file /usr/autodesk/maya2022/lib/python3.7/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py line 142: libffi.so.6: cannot open shared object file: No such file or directory # 
import arnold

# Error: file: /usr/autodesk/maya2022/scripts/others/pluginWin.mel line 316: ImportError: file /usr/autodesk/maya2022/lib/python3.7/site-packages/shiboken2/files.dir/shibokensupport/__feature__.py line 142: libffi.so.6: cannot open shared object file: No such file or directory # 

// Error: Failed to load python module 'arnold' // 
evalDeferred "shaderBallRendererMenuUpdate";

// Error: file: /usr/autodesk/maya2022/scripts/others/pluginWin.mel line 316: initializePlugin function failed (mtoa) //

I've tried to fix it in two ways,but both didn't work :

# curl -LO http://archive.ubuntu.com/ubuntu/pool/main/libf/libffi/libffi6_3.2.1-8_amd64.deb

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 17948  100 17948    0     0  41165      0 --:--:-- --:--:-- --:--:-- 41070

# sudo dpkg -i libffi6_3.2.1-8_amd64.deb
# maya

libGL error: failed to authenticate magic 1
libGL error: failed to load driver: iris
libGL error: failed to authenticate magic 1
libGL error: failed to load driver: iris
Warning: Setting a new default format with a different version or profile after the global shared context is created may cause issues with context sharing.
Graphic device does not support OpenGL Core Profile, fallback to OpenGL renderer.
VP2 Error : Failed to initialize graphics device.
Error: Failed to apply color management settings on file open: Failed to finalize the color transform..
Error: Failed to finalize the color transform.
Stack trace:
  pthread_kill
  raise
  abort
  /lib/x86_64-linux-gnu/libffi.so.8(+0x2488) [0x7f0c85aa7488]
  /usr/autodesk/maya2022/lib/python3.7/lib-dynload/_ctypes.cpython-37m-x86_64-linux-gnu.so(+0xfad4) [0x7f0bdc93cad4]
  /usr/autodesk/maya2022/lib/libpython3.7m.so.1.0(+0xc7dbf) [0x7f0ca31e0dbf]
  /usr/autodesk/maya2022/lib/libpython3.7m.so.1.0(+0xc8808) [0x7f0ca31e1808]
  /usr/autodesk/maya2022/lib/python3.7/lib-dynload/_ctypes.cpython-37m-x86_64-linux-gnu.so(+0xb0a7) [0x7f0bdc9380a7]
  /usr/autodesk/maya2022/lib/libpython3.7m.so.1.0(+0xecc99) [0x7f0ca3205c99]
  _PyEval_EvalFrameDefault
  /usr/autodesk/maya2022/lib/libpython3.7m.so.1.0(+0x68590) [0x7f0ca3181590]
  _PyEval_EvalFrameDefault
  _PyEval_EvalCodeWithName
  PyEval_EvalCodeEx
  PyEval_EvalCode
  /usr/autodesk/maya2022/lib/libpython3.7m.so.1.0(+0x17dced) [0x7f0ca3296ced]
  _PyMethodDef_RawFastCallDict
  _PyCFunction_FastCallDict
  _PyEval_EvalFrameDefault
  _PyEval_EvalCodeWithName
  _PyFunction_FastCallKeywords
  _PyEval_EvalFrameDefault
  /usr/autodesk/maya2022/lib/libpython3.7m.so.1.0(+0x68590) [0x7f0ca3181590]
  _PyEval_EvalFrameDefault
  /usr/autodesk/maya2022/lib/libpython3.7m.so.1.0(+0x68590) [0x7f0ca3181590]
  _PyEval_EvalFrameDefault
  /usr/autodesk/maya2022/lib/libpython3.7m.so.1.0(+0x68590) [0x7f0ca3181590]
  _PyEval_EvalFrameDefault
  /usr/autodesk/maya2022/lib/libpython3.7m.so.1.0(+0x68590) [0x7f0ca3181590]
  _PyFunction_FastCallDict
  /usr/autodesk/maya2022/lib/libpython3.7m.so.1.0(+0x98bdd) [0x7f0ca31b1bdd]
  _PyObject_CallMethodIdObjArgs
  PyImport_ImportModuleLevelObject
  /usr/autodesk/maya2022/lib/libpython3.7m.so.1.0(+0x17c04f) [0x7f0ca329504f]
  PyCFunction_Call
  _PyEval_EvalFrameDefault
  _PyEval_EvalCodeWithName
  _PyFunction_FastCallDict
  _PyEval_EvalFrameDefault
  _PyEval_EvalCodeWithName

Writing crash report in /usr/tmp/root.20220410.0002.crash
/usr/autodesk/maya2022/bin/senddmp.app/senddmp.bin: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory

Ubuntu 21.10 has libffi.so.8 installed :

# find /usr/lib -name "libffi.so*"

/usr/lib/x86_64-linux-gnu/libffi.so.8.1.0
/usr/lib/x86_64-linux-gnu/libffi.so.8
/usr/lib/x86_64-linux-gnu/libffi.so
/usr/lib/i386-linux-gnu/libffi.so.8.1.0
/usr/lib/i386-linux-gnu/libffi.so.8

I tried to create a symlink like this :

# sudo ln -s /usr/lib/x86_64-linux-gnu/libffi.so.8 /usr/lib/x86_64-linux-gnu/libffi.so.6

but I've got the same error as before. So,this is not the solution. The solution may be explained here :

Ubuntu 20.04 upgrade, Python missing libffi.so.6

where it says :

pyenv uninstall 3.7.4
pyenv install 3.7.4

Since,the version of python that I have in my system is 3.9.7 :

/usr/autodesk/maya2022/lib/python3.7/site-packages/shiboken2/files.dir/shibokensupport# python3 --version
Python 3.9.7

I tried to do :

pyenv uninstall 3.9.7
pyenv install 3.7.4

but it didn't work :

Command «pyenv» not found, maybe you mean :
  command «p7env» from deb libnss3-tools (2:3.68-1ubuntu1.1)

what you suggest me to do ? thanks.

john_connor
  • 165
  • 2
  • 2
  • 15

0 Answers0