ECToo / pymel

Automatically exported from code.google.com/p/pymel
0 stars 0 forks source link

Importing pymel.core crashes Maya 2012 #254

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Describe the problem.
Executing "from pymel.core import *" crashes Maya to desktop.
"import pymel.core as *" and "import pymel.core as pm" does so likewise. 
"import maya.cmds as cmd" fuctions as expected.

What Version of Maya are you using?
2012, Win32, Hotfix 4

On what operating system? (be as specific as possible and include service
packs, 64bit vs 32bit, etc)

XP Pro, SP3, 32-bit.

What Version of PyMEL are you using?

1.0.3

What is the expected output? What do you see instead?
I expect core would import to the root namespace and or to "pm". A hard crash 
to desktop is not what I expect.

If possible, provide a few lines of code to reproduce the problem. It helps us 
if your code will reproduce the problem from a new scene.

Does maya.cmds exhibit the same problem?
No.

Please provide any additional information below.

Original issue reported on code.google.com by i...@nimajneb.com on 21 Aug 2011 at 3:43

GoogleCodeExporter commented 9 years ago
Just as a test turn off all the auto-loads on your plugins. Then try.

We had issues over here with Mentalray + a custom plugin we developed. Once we 
changed the load order for MR to load last, it worked.  Hotfix4 plugged the 
memory leak in MR, but I wouldn't be suprised if there were more plugins with 
the same problem.

Original comment by amor...@gmail.com on 21 Aug 2011 at 4:26

GoogleCodeExporter commented 9 years ago
Thanks, amor, I'd just thought to do that and I've determined the cause. I've a 
plugin installed called BCS, Blendshape Combination System by Daniel Pook-Kolb. 
Unloading that plugin allows pymel to import properly. I've contacted the 
developer to let him know, but am unsure if it's a pymel problem or a BCS 
problem. How did you change the loading order to delay it, if I might ask?

Original comment by i...@nimajneb.com on 21 Aug 2011 at 4:38

GoogleCodeExporter commented 9 years ago
Update: did some experimentation with Maya.env. Moved the BCS plugin to it's 
own directory, out of the default MAYA_PLUG_IN_PATH. Then, added this new 
directory to the path at the end. Booted Maya checked it(the plugin) to 
autoload, rebooted maya and then did a import of pymel.core successfully.

Original comment by i...@nimajneb.com on 21 Aug 2011 at 3:04