Home Website Youtube GitHub

Can't get mgear to build properly anymore

Anyone has a resolve for this. could it be conflicting with something else? It was working fine before. I tried clearing the deleting the prefs to no avail.

can you post the log error? thanks

How do I find it? BTW I’m using 2019.2. It builds ok in 2018.

Right beside the red warning, to the right side, is the button that opens the script editor. You find the errors there.

Another thing to check right away. Did you install mGear by changing your Maya.env file? If so, you need to make sure you add the same lines from Maya 2018 to Maya 2019.

Lines that look like this (you have to use your own paths. Don’t copy these ones.):

MAYA_MODULE_PATH = P:\YourStudio\rigging\tools\mgear_3.0.3
MGEAR_SHIFTER_COMPONENT_PATH = P:\YourStudio\rigging\tools\mgearCustomModules
MGEAR_SHIFTER_CUSTOMSTEP_PATH = P:\YourStudio\rigging\build

mGear uses those paths to find custom modules, or the PRE and POST scripts.

I only have the MAYA_MODULE_PATH

That’s fine. Is it the same in both Maya 2018 and 2019?

Yes. Like I said, everything was working fine. it’s only recently it started bugging.

This is all I’m getting in the script editor:

Error: IOError: file C:\Users\jodana\Documents\maya\scripts\mgear_3.2.0\scripts\mgear_init_.py line 121: 9

What? Yes. that is why I am asking you to make sure that they are the same. If something works in one and not the other, then something has changed… The job right now is to figure out what.

And are you sure that is the only error you are getting? Are you copying from the little status bar, or the full script editor? There must be more than just one line.

I’m copying from the full editor.

The screenshot you showed has part of a rig built. Nothing else showed up in the script editor while it was building?? If you aren’t seeing a full log of the build, then there might be some bug with logging.

Line 121 of that file in the error has to do with the log function.

No, nothing showed. It just stays blank then the error pops up after build. There are no joints building also.

Well, what more info can you give? There is not much to go on here.

Can you post a screenshot of the script editor? And of your guide settings, and PRE POST steps.

Can you think of anything you changed or moved or renamed before it stopped working?

Deleting the maya>2019 folder seems to have fixed it. That is usually my resolve after I getting fed up lol.

Did anyone figure this out?

After some time off mGear, I came back to it and am experiencing the exact same error:
Error: IOError: file U:\PlugIns\mGear\scripts\mgear_init_.py line 121: 9

I tried rolling back to mgear 3.2. also tried both maya 2019 and 2020 and it’s the same.

If I build only the spine and one arm it builds despite the error. When I duplicate the arm with symmetry it fails and only builds the controls. I went step by step ant the problem appears to be the fingers. If I put any control under the wrist it starts acting funky.
I tried with the biped template and it acts the same. If i delete one side of symmetrical limbs it builds but not the whole rig.

If anyone has any idea what else I can try it would be great, as I’m hoping to use mgear on our next project.

Thanks!

Please post more of your script editor log and use the code blocks to format it. Like earlier in the thread, this is not enough info to go on.

What do you have in your Maya.env file? Are the paths correct and valid?

Have you tried running Maya with fresh prefs like Ross suggested?

Is this a guide from an earlier version of Maya or mGear? Ross mentioned it worked in Maya 2018. Did you update your guides before building? Or is this a fresh guide? (I just noticed you said it is the same on a fresh guide.)

2 Likes

Hey Chris,
thanks for replying.
I only have MAYA_MODULE_PATH set to mGear in the env file.

So I opened a fresh scene, Maya 2019, mGear 3.4.0.
I imported the biped template, selected the guide group and hit build from selection.
(also tried with fresh prefs)

The build didn’t finish.

This is the script editor output:

select -r guide ;
# Error: IOError: file U:\PlugIns\mGear\scripts\mgear\__init__.py line 121: 9 # 

This is one with echo all commands on:

// Result: scriptEditorPanel1Window|scriptEditorPanel1|formLayout92|formLayout94|paneLayout2|cmdScrollFieldReporter1 // 
buildAlembicCacheMenu MayaWindow|mainPipelineCacheMenu|alembicCacheMenu;
getApplicationVersionAsFloat;
// Result: 2019 // 
namespace -set ":";
namespace -set ":";
doUpdateTangentFeedback;
setFilterScript "initialShadingGroup";
// Result: 0 // 
setFilterScript "initialParticleSE";
// Result: 0 // 
setFilterScript "defaultLightSet";
// Result: 1 // 
setFilterScript "defaultObjectSet";
// Result: 1 // 
setFilterScript "mgear_curveCns1Set";
// Result: 0 // 
setFilterScript "tweakSet1";
// Result: 0 // 
setFilterScript "mgear_curveCns2Set";
// Result: 0 // 
setFilterScript "tweakSet2";
// Result: 0 // 
setFilterScript "mgear_curveCns3Set";
// Result: 0 // 
setFilterScript "tweakSet3";
// Result: 0 // 
setFilterScript "mgear_curveCns4Set";
// Result: 0 // 
setFilterScript "tweakSet4";
// Result: 0 // 
setFilterScript "mgear_curveCns5Set";
// Result: 0 // 
setFilterScript "tweakSet5";
// Result: 0 // 
setFilterScript "mgear_curveCns6Set";
// Result: 0 // 
setFilterScript "tweakSet6";
// Result: 0 // 
setFilterScript "mgear_curveCns7Set";
// Result: 0 // 
setFilterScript "tweakSet7";
// Result: 0 // 
setFilterScript "mgear_curveCns8Set";
// Result: 0 // 
setFilterScript "tweakSet8";
// Result: 0 // 
setFilterScript "mgear_curveCns9Set";
// Result: 0 // 
setFilterScript "tweakSet9";
// Result: 0 // 
setFilterScript "mgear_curveCns10Set";
// Result: 0 // 
setFilterScript "tweakSet10";
// Result: 0 // 
setFilterScript "mgear_curveCns11Set";
// Result: 0 // 
setFilterScript "tweakSet11";
// Result: 0 // 
setFilterScript "mgear_curveCns12Set";
// Result: 0 // 
setFilterScript "tweakSet12";
// Result: 0 // 
setFilterScript "mgear_curveCns13Set";
// Result: 0 // 
setFilterScript "tweakSet13";
// Result: 0 // 
setFilterScript "mgear_curveCns14Set";
// Result: 0 // 
setFilterScript "tweakSet14";
// Result: 0 // 
setFilterScript "mgear_curveCns15Set";
// Result: 0 // 
setFilterScript "tweakSet15";
// Result: 0 // 
setFilterScript "mgear_curveCns16Set";
// Result: 0 // 
setFilterScript "tweakSet16";
// Result: 0 // 
setFilterScript "mgear_curveCns17Set";
// Result: 0 // 
setFilterScript "tweakSet17";
// Result: 0 // 
setFilterScript "mgear_curveCns18Set";
// Result: 0 // 
setFilterScript "tweakSet18";
// Result: 0 // 
setFilterScript "mgear_curveCns19Set";
// Result: 0 // 
setFilterScript "tweakSet19";
// Result: 0 // 
setFilterScript "mgear_curveCns20Set";
// Result: 0 // 
setFilterScript "tweakSet20";
// Result: 0 // 
setFilterScript "mgear_curveCns21Set";
// Result: 0 // 
setFilterScript "tweakSet21";
// Result: 0 // 
setFilterScript "mgear_curveCns22Set";
// Result: 0 // 
setFilterScript "tweakSet22";
// Result: 0 // 
setFilterScript "mgear_curveCns23Set";
// Result: 0 // 
setFilterScript "tweakSet23";
// Result: 0 // 
setFilterScript "mgear_curveCns24Set";
// Result: 0 // 
setFilterScript "tweakSet24";
// Result: 0 // 
setFilterScript "mgear_curveCns25Set";
// Result: 0 // 
setFilterScript "tweakSet25";
// Result: 0 // 
setFilterScript "mgear_curveCns26Set";
// Result: 0 // 
setFilterScript "tweakSet26";
// Result: 0 // 
setFilterScript "mgear_curveCns27Set";
// Result: 0 // 
setFilterScript "tweakSet27";
// Result: 0 // 
setFilterScript "mgear_curveCns28Set";
// Result: 0 // 
setFilterScript "tweakSet28";
// Result: 0 // 
setFilterScript "mgear_curveCns29Set";
// Result: 0 // 
setFilterScript "tweakSet29";
// Result: 0 // 
setFilterScript "mgear_curveCns30Set";
// Result: 0 // 
setFilterScript "tweakSet30";
// Result: 0 // 
setFilterScript "mgear_curveCns31Set";
// Result: 0 // 
setFilterScript "tweakSet31";
// Result: 0 // 
setFilterScript "mgear_curveCns32Set";
// Result: 0 // 
setFilterScript "tweakSet32";
// Result: 0 // 
refreshAE;
autoUpdateAttrEd;
updateAnimLayerEditor("AnimLayerTab");
statusLineUpdateInputField;
if (!`exists polyNormalSizeMenuUpdate`) {eval "source buildDisplayMenu";} polyNormalSizeMenuUpdate;
dR_updateCounter;
dR_updateCommandPanel;
statusLineUpdateInputField;
select -r guide ;
autoUpdateAttrEd;
updateAnimLayerEditor("AnimLayerTab");
statusLineUpdateInputField;
if (!`exists polyNormalSizeMenuUpdate`) {eval "source buildDisplayMenu";} polyNormalSizeMenuUpdate;
dR_updateCounter;
dR_updateCommandPanel;
getApplicationVersionAsFloat;
// Result: 2019 // 
getApplicationVersionAsFloat;
// Result: 2019 // 
# Error: IOError: file U:\PlugIns\mGear\scripts\mgear\__init__.py line 121: 9 # 
setFilterScript "initialShadingGroup";
// Result: 0 // 
setFilterScript "initialParticleSE";
// Result: 0 // 
setFilterScript "defaultLightSet";
// Result: 1 // 
setFilterScript "defaultObjectSet";
// Result: 1 // 
setFilterScript "mgear_curveCns1Set";
// Result: 0 // 
setFilterScript "tweakSet1";
// Result: 0 // 
setFilterScript "mgear_curveCns2Set";
// Result: 0 // 
setFilterScript "tweakSet2";
// Result: 0 // 
setFilterScript "mgear_curveCns3Set";
// Result: 0 // 
setFilterScript "tweakSet3";
// Result: 0 // 
setFilterScript "mgear_curveCns4Set";
// Result: 0 // 
setFilterScript "tweakSet4";
// Result: 0 // 
setFilterScript "mgear_curveCns5Set";
// Result: 0 // 
setFilterScript "tweakSet5";
// Result: 0 // 
setFilterScript "mgear_curveCns6Set";
// Result: 0 // 
setFilterScript "tweakSet6";
// Result: 0 // 
setFilterScript "mgear_curveCns7Set";
// Result: 0 // 
setFilterScript "tweakSet7";
// Result: 0 // 
setFilterScript "mgear_curveCns8Set";
// Result: 0 // 
setFilterScript "tweakSet8";
// Result: 0 // 
setFilterScript "mgear_curveCns9Set";
// Result: 0 // 
setFilterScript "tweakSet9";
// Result: 0 // 
setFilterScript "mgear_curveCns10Set";
// Result: 0 // 
setFilterScript "tweakSet10";
// Result: 0 // 
setFilterScript "mgear_curveCns11Set";
// Result: 0 // 
setFilterScript "tweakSet11";
// Result: 0 // 
setFilterScript "mgear_curveCns12Set";
// Result: 0 // 
setFilterScript "tweakSet12";
// Result: 0 // 
setFilterScript "mgear_curveCns13Set";
// Result: 0 // 
setFilterScript "tweakSet13";
// Result: 0 // 
setFilterScript "mgear_curveCns14Set";
// Result: 0 // 
setFilterScript "tweakSet14";
// Result: 0 // 
setFilterScript "mgear_curveCns15Set";
// Result: 0 // 
setFilterScript "tweakSet15";
// Result: 0 // 
setFilterScript "mgear_curveCns16Set";
// Result: 0 // 
setFilterScript "tweakSet16";
// Result: 0 // 
setFilterScript "mgear_curveCns17Set";
// Result: 0 // 
setFilterScript "tweakSet17";
// Result: 0 // 
setFilterScript "mgear_curveCns18Set";
// Result: 0 // 
setFilterScript "tweakSet18";
// Result: 0 // 
setFilterScript "mgear_curveCns19Set";
// Result: 0 // 
setFilterScript "tweakSet19";
// Result: 0 // 
setFilterScript "mgear_curveCns20Set";
// Result: 0 // 
setFilterScript "tweakSet20";
// Result: 0 // 
setFilterScript "mgear_curveCns21Set";
// Result: 0 // 
setFilterScript "tweakSet21";
// Result: 0 // 
setFilterScript "mgear_curveCns22Set";
// Result: 0 // 
setFilterScript "tweakSet22";
// Result: 0 // 
setFilterScript "mgear_curveCns23Set";
// Result: 0 // 
setFilterScript "tweakSet23";
// Result: 0 // 
setFilterScript "mgear_curveCns24Set";
// Result: 0 // 
setFilterScript "tweakSet24";
// Result: 0 // 
setFilterScript "mgear_curveCns25Set";
// Result: 0 // 
setFilterScript "tweakSet25";
// Result: 0 // 
setFilterScript "mgear_curveCns26Set";
// Result: 0 // 
setFilterScript "tweakSet26";
// Result: 0 // 
setFilterScript "mgear_curveCns27Set";
// Result: 0 // 
setFilterScript "tweakSet27";
// Result: 0 // 
setFilterScript "mgear_curveCns28Set";
// Result: 0 // 
setFilterScript "tweakSet28";
// Result: 0 // 
setFilterScript "mgear_curveCns29Set";
// Result: 0 // 
setFilterScript "tweakSet29";
// Result: 0 // 
setFilterScript "mgear_curveCns30Set";
// Result: 0 // 
setFilterScript "tweakSet30";
// Result: 0 // 
setFilterScript "mgear_curveCns31Set";
// Result: 0 // 
setFilterScript "tweakSet31";
// Result: 0 // 
setFilterScript "mgear_curveCns32Set";
// Result: 0 // 
setFilterScript "tweakSet32";
// Result: 0 // 
refreshAE;
autoUpdateAttrEd;
updateAnimLayerEditor("AnimLayerTab");
statusLineUpdateInputField;
if (!`exists polyNormalSizeMenuUpdate`) {eval "source buildDisplayMenu";} polyNormalSizeMenuUpdate;
dR_updateCounter;
dR_updateCommandPanel;
statusLineUpdateInputField;

What can I try to change?Any suggestion is welcome. I am thinking of trying a fresh maya install next.
Thanks again for your help!

Not sure why this is failing but the error comes in this line:

image

It is just trying to print the log message

can you try this:

import sys
sys.stdout.write("test")

and also to comment out the line

def log(message, severity=sev_comment, infos=False):
    """Log a message using severity and additional info from the file itself.

    Severity has been taken from Softimage one:
        * 1. Fatal
        * 2. Error
        * 4. Warning
        * 8. Info
        * 16. Verbose
        * 32. Comment

    Args:
        messages(str): The message
        severity (int): Severity level.
        infos (bool):  Add extra infos from the module, class, method and
            line number.

    """
    message = str(message)

    if infos or logDebug:
        message = getInfos(1) + "\n" + message

    # sys.stdout.write(message + "\n")

Not sure if this will help or at less trigger other error message

1 Like

Hi Miquel,

Thanks for the help! It worked!
Commenting out the line worked and the build finished.
The test printed in the terminal, but I’m not sure how to get it to work in maya.

I am not a programmer but after I delete the init.pyc it works even with the line uncommented.
Is it possible the compiled file was corrupted or something? (edit: this may not be true, I started getting the error again so just went back and commented the line out)