Sounds like you are running into an issue with the dummy loading in
the maya package. I thought this was suppose to be fixed - so it might
be a red herring. To verify I would ensure the maya package is coming
from beside pymel's maya package (if your using 1.0+) and not the one
that ships with maya.

if you print maya.__file__ it should give you a path beside pymel
rather than somewhere like: <maya
install>/Python/Lib/site-packages/maya.

I would make sure you are using the pymel version of maya package.

I've fixed it before by applying the fix directly to our farm by
changing the following:

in maya.app.commands:

def __makeDummyFunc( command, library ):
        def dummyFunc( *args, **keywords ):
                maya.cmds.dynamicLoad( library )
                maya.cmds.__dict__[command]( *args, **keywords )
        return dummyFunc

the line:

maya.cmds.__dict__[command]( *args, **keywords )

should read:

return maya.cmds.__dict__[command]( *args, **keywords )

such that the whole function looks like:

def __makeDummyFunc( command, library ):
        def dummyFunc( *args, **keywords ):
                maya.cmds.dynamicLoad( library )
                return maya.cmds.__dict__[command]( *args, **keywords )
        return dummyFunc

Ian



On Thu, Apr 15, 2010 at 10:09 AM, shawnpatapoff <[email protected]> wrote:
> Hey,
>
> I'm trying to transition our tools pipe into pymel and came accross on
> error on our renderfarm:
>
> Traceback (most recent call last):
>  File "/Volumes/VFX/production/key_tools/key_base/3d/maya/python/
> userSetup.py", line 5, in <module>
>    from pymel.core import *
>  File "/Volumes/VFX/production/key_tools/key_base/python/pymel/core/
> __init__.py", line 233, in <module>
>    _installCallbacks()
>  File "/Volumes/VFX/production/key_tools/key_base/python/pymel/core/
> __init__.py", line 231, in _installCallbacks
>    _pluginLoaded( plugin )
>  File "/Volumes/VFX/production/key_tools/key_base/python/pymel/core/
> __init__.py", line 141, in _pluginLoaded
>    addPluginPyNodes()
>  File "/Volumes/VFX/production/key_tools/key_base/python/pymel/core/
> __init__.py", line 114, in addPluginPyNodes
>    inheritance = _factories.getInheritance( mayaType )
>  File "/Volumes/VFX/production/key_tools/key_base/python/pymel/
> internal/factories.py", line 318, in getInheritance
>    if obj.hasFn( api.MFn.kDagNode ):
> AttributeError: 'NoneType' object has no attribute 'hasFn'
>
> I've disabled the call to pymel and all seems to be fine. Is there
> something going on here that I should be aware of?
>
> Cheers,
> Shawn
>
> --
> http://groups.google.com/group/python_inside_maya
>
> To unsubscribe, reply using "remove me" as the subject.
>

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to