Later in in the book (page 256-257) galanakis shows how to defer the
loading of pymel.

Try that perhaps it will help out.

On Friday, September 19, 2014, tushar sankhala <tusharsankh...@gmail.com>
wrote:

> Hi All,
>
> I was mostly developing for Maya C++ Api and i am new to Maya Python. So
> sorry if am wrong somewhere. I was reading and following
> *Practical Maya Programming Book by Robert Galanakis*
>
> i am getting a error as soon as i import pymel.core as pmc in mayapy
>
> Error:
>
> pymel.internal.startup : ERROR : maya.standalone was successfully
> initialized, b
> ut pymel failed to import maya.cmds (or it was not populated)
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "C:\Program
> Files\Autodesk\Maya2014\Python\lib\site-packages\pymel\core\_
> _init__.py", line 11, in <module>
>     _startup.mayaInit()
>   File "C:\Program
> Files\Autodesk\Maya2014\Python\lib\site-packages\pymel\intern
> al\startup.py", line 170, in mayaInit
>     from maya.cmds import about
> ImportError: cannot import name about
>
> Can anyone help me in this?
>
> Thanks in advance
>
> Tushar
>
> --
> You received this message because you are subscribed to the Google Groups
> "Python Programming for Autodesk Maya" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to python_inside_maya+unsubscr...@googlegroups.com
> <javascript:_e(%7B%7D,'cvml','python_inside_maya%2bunsubscr...@googlegroups.com');>
> .
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/7d4520ac-cace-4462-b283-999ab65a44b4%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/7d4520ac-cace-4462-b283-999ab65a44b4%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CABPXW4gqSbDXKJLqXNVUDF-AoxerJY83XOKZw2Low%3D3uWRWz4A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to