Home Website Youtube GitHub

mGear not showing in Maya 2023

When I try to run the “user setup” it tells me the Pymel module is missing

Error: ModuleNotFoundError: file line 3: No module named ‘pymel’

Sorry my advice was for Maya 2024, where you now have to install Pymel manually. I have no idea why it isn’t installed for you in 2023.

That message in the installer means you would need an internet connection to use “pip” to download and installed Pymel.

Don’t follow my advice blindly. I haven’t even tried this yet. I’m still using Maya 2020 and 2022. :slight_smile:

I reinstalled Maya and now i don’t get the error for missing Pymel anymore. But:

A line 217 error no ;( any ideas`?
I also tried setting it up manually by using userSetup.py but im getting the same error

Have you tried to see if it was successful? Maybe mGear is installed already.

If that “Installation Complete” message ran, then it seems like the drag_n-drop_install.py script ran successfully. That’s the last line in that function.

The error might be from del myTempEDPF which is… what? Maya’s wrapper for dragging Python files?

(Just guessing. I install mGear through Maya.env.)

Try restarting Maya and maybe mGear is installed.

  1. See if you get any mGear errors when you start Maya.
  2. Check if it shows up in the menu.
  3. Try running import mgear and see if you get an error. (If you don’t get an error, then it is installed, but you are still experiencing the missing menu problem.)

No error no menu
this error when running import mgear

sry i found this same error from befor when starting maya
// Error: RuntimeError: file C:\Program Files\Autodesk\Maya2023\Python\lib\site-packages\pymel\internal\pmcmds.py line 217: deleteUI: Object ‘mGear’ not found.

here the full log in a .txt file . i placed it on google drive

I deleted everything and dragged the py again and now i didn’t get the import mgear error but still missing the menu.
plugin was also active already not like last time where i had to active it manually but still got the line217 error.

Oh I see. I searched that error. It’s discussed in this thread: Mgear Don"t show up - #6 by Miquel

Miquel said there is a fix, but it isn’t in the latest release yet. You would have to get the latest code directly from Github.

It looks like you accidentally put a space before the command.

so I get 4.0.19 from here?

Finally!
After installation, I had to run userSetup.py and then it appeared ;D

GG boys!

If anybody have this problem, try this method, its work for me:
In script editor type these two lines:
from mgear import synoptic
synoptic.open()
if the picker shows up, you can grab and put the 2 line to your custom shelf, and it will work. :slight_smile:
Sorry for my bad english :smiley:

Ok I thought the problem was fixed but it was only temporary.
Every time i open Maya i have to repeatedly drag and drop the useeSetup.py to make the menu appear.

running
from mgear import synoptic
synoptic.open()

started the picker but it didn’t work. only after using useeSetup.py the full functionality of the tool was available again.

Sorry I don’t know how to help you. What “userSetup.py” are you referring to? Where is this file from?

The one .py script that gets extracted to the folder: Documents\maya\modules\scripts

This morning dragging it in didn’t work so I pulled it into the editor and ran it that way and it worked …

It told me following error at first

Warning: Module userSetup does not contain drop function: onMayaDroppedPythonFile

Hello, jumping on this thread because Im also having issues installing.

OS - Windows 10
Maya 2023
mgear_4.0.9
Drag and Drop installation
mgear solver shows up in plugin manager

but in script editor I get this error:
file -f -new;
// untitled
commandPort -securityWarning -name commandportDefault;
// Error: line 1: Could not open command port b’commandportDefault’ because that name is in use.
onSetCurrentLayout “Maya Classic”;

pymel.core : Updating pymel with pre-loaded plugins: GPUBuiltInDeformer, cacheEvaluator, deformerEvaluator, renderSetup

// Error: deleteUI: Object ‘mGear’ not found.
// # Traceback (most recent call last):
// # File “C:/Users/kylev/OneDrive/Documents/maya/modules/scripts/userSetup.py”, line 25, in mGear_menu_loader
// # mgear.install()
// # File “C:\Users\kylev\OneDrive\Documents\maya\modules\scripts\mgear_init_.py”, line 35, in install
// # self.menu_id = menu.create()
// # File “C:\Users\kylev\OneDrive\Documents\maya\modules\scripts\mgear\menu.py”, line 19, in create
// # pm.deleteUI(menuId)
// # File “C:\Program Files\Autodesk\Maya2023\Python\lib\site-packages\pymel\internal\pmcmds.py”, line 217, in deleteUI_wrapped
// # res = new_cmd(*new_args, **new_kwargs)
// # RuntimeError: deleteUI: Object ‘mGear’ not found.

Regarding the “userSetup.py ” I found a solution where I do not simply drag the file in, I run the script from the shelf twice and then the Menu appears and everything is working properly.

I just got this same issue. It seems like Pymel says the menu exists already on startup but then fails to delete it because it doesnt exist.

I didnt have any time to find a proper solution but the workaround for me was to change mgear/menu.py and put this block in a try except.

image

1 Like

This solved issue for me.

Recently updated to 2023.3 from 2020, getting the same menu issue with 4.0.9 on some machines.

Mgear is being loaded, but menu is not added.

Another workaround was running the mGear_menu_loader() function that comes with mGear userSetup.py

Hi guys. I have the same issue and tried everything you have been posting. Nothing works for me yet and maybe I’m doing something wrong…Could someone share all the steps to solve it

2 Likes

Hi, same problem here.

Windows 10
Maya 2023
PyMel 3 installed with Maya
MGear 4.0.22

Script Editor shows this error:
// Error: RuntimeError: file C:\Program Files\Autodesk\Maya2023\Python\lib\site-packages\pymel\internal\pmcmds.py line 217: deleteUI: Object ‘mGear’ not found.

Tried the suggestions above but no menu showing up.
Thanks

Forgot my specs, sorry

Windows 11
Maya 2023
PyMel 3 installed with Maya too
MGear 4.0.9
Same script error:
// Error: RuntimeError: file C:\Program Files\Autodesk\Maya2023\Python\lib\site-packages\pymel\internal\pmcmds.py line 217: deleteUI: Object ‘mGear’ not found.

I have activated the components on plug-in manager but the mgear menu is still missing

Any help?

Hi, I am having the same issue with Maya 2023. mGear 4.0.9 and pymel 3 are correctly installed (no errors when running import mgear or import pymel.core. Solvers seem to be installed as rigs are working, but the menu does not show up :frowning: Btw, I installed it with the drag_n_drop installer. Does it make a difference to install it manually?
If there is no solution to have the menu show up at the beginning, would there be any Python command to run in order to get the menu as a pop up at least?
Thanks a lot!