Hi madoodia,

Thanks for the Reply.

Code Snippet is

in mayapy

I am giving these command:

>>> import maya.standalone                                       (Runs Fine)
>>> maya.standalone.initialize()                                  (Runs 
Fine)
>>> import pymel.core as pmc                                     (Error: 
pymel.internal.startup : ERROR : maya.standalone was successfully 
initialized, but 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)

Thanks
Tushar

On Saturday, 20 September 2014 12:02:02 UTC+5:30, Mahmoodreza Aarabi wrote:
>
> Hey
>
> it is better you share your code snippet,but,
>
> you can use cmds in this way first:
>
> import maya.cmds as cmds
> import pymel.core as pm
>
> then :
>
> cmds.about()
>
> pm.about()
>
> good luck
> ​
>
> On Sat, Sep 20, 2014 at 9:57 AM, tushar sankhala <[email protected] 
> <javascript:>> 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] <javascript:>.
>> 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.
>>
>
>
>
> -- 
>
>
> Bests,
> madoodia
>  

-- 
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/6eabd775-454a-42d5-bfc2-421fb7d78b38%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to