Closed bootsch closed 5 years ago
It seems the error is in Qt.py importing QtGui
import pyqtgraph
# Error: ImportError: file /Users/username/Library/Preferences/Autodesk/maya/modules/mimic/scripts/extern/pyqtgraph/Qt.py line 154: cannot import name QtGui
Thru the grapevine I hear: "Appears the easiest way to 'fix' this issue for us was to reorder the Qt import list: In scripts/extern/pyqtgraph/Qt.py: libOrder = [PYSIDE2, PYQT5, PYSIDE, PYQT4]" Yet to test this, just to put the note down.
It works.
Change the current line
https://github.com/AutodeskRoboticsLab/Mimic/blob/15155b97074a26f30b5a9218ed5739ccfb5638fb/mimic/scripts/extern/pyqtgraph/Qt.py#L28
to
libOrder = [PYSIDE2, PYQT5, PYSIDE, PYQT4]
The solution came from Mimic users on Linux.
Pushed this fix to the master branch
On MacOS 10.13/10.14 - Maya 2018.
Numpy is installed by default and can be imported from the maya python commandline
import numpy
# Warning: MIMIC: Analysis module did not load successfully; analysis graphing feature disabled. Check that you have numPy installed properly; see Mimic installation instructions for more details
import numpy