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

global name 'pg' is not defined #28

Closed aatb-ch closed 3 years ago

aatb-ch commented 3 years ago

On Dev branch I'm getting:

Warning: QApplication was created before pyqtgraph was imported; there may be problems (to avoid bugs, call QApplication.setGraphicsSystem("raster") before the QApplication is created). 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 Error: NameError: file /Users/thibault/Library/Preferences/Autodesk/maya/modules/mimic/scripts/analysis/analysis_ui_utils.py line 498: global name 'pg' is not defined

When running a program analysis, once it's done computing the path it throws this error and no graph window pops up.

aatb-ch commented 3 years ago

Update: I'm also getting that on Master branch.

evanatherton commented 3 years ago

@aatb-ch If you're working off a branch and not with an official release, it's probably because it's missing numpy. Sorry I don't handle that exception very well.

Download the latest release for the OS you're working on and grab numpy from mimic/scripts/extern and put that in your maya/modules/mimic/scripts/extern folder

aatb-ch commented 3 years ago

Oh, ok that makes sense, yes I couldn't figure out why it worked on the desktop and not on my laptop, I downloaded Master from the github download, not from Releases. Alright thanks, will fix it!