I was having the same issue, but according to help I've seen from other 
places, pymel.core is actually imported, regardless of the error that is 
thrown.

You can verify it by typing dir(pmc) and seeing its result. If you keep 
typing the next sentences provided in the example, everything keeps working 
as expected.

It is very odd, and I'm also starting too. I hope no other issues are found 
in the future regarding this import.

On Friday, September 19, 2014 11:27:30 PM UTC-7, tushar sankhala 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/2e66e54d-fefa-424d-b40b-a93bda93d885%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to