AutodeskRoboticsLab / Mimic

An open-source Maya plugin for controlling Industrial Robots. Written in Python 3.
https://www.mimicformaya.com/
172 stars 39 forks source link

Analyse Program fails to load graph representation; warning that numpy should be installed correctly #3

Closed bootsch closed 5 years ago

bootsch commented 5 years ago

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

bootsch commented 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

bootsch commented 5 years ago

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.

bootsch commented 5 years ago

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]

bootsch commented 5 years ago

The solution came from Mimic users on Linux.

evanatherton commented 5 years ago

Pushed this fix to the master branch