I test it too:
this is my result:

C:\Users\madoodia>mayapy

Python 2.7.3 (default, Aug  1 2012, 16:33:56) [MSC v.1600 64 bit (AMD64)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> import maya.standalone
>>> maya.standalone.initialize()
Registered E:\Madoodia\_GitHub\pyblish-maya\pyblish_maya\plugins
>>> import pymel.core as pm
pymel.internal.factories : INFO : MFnDagNode.model is deprecated
Warning: file: C:/Program Files/Autodesk/Maya2014/scripts/startup/initialStartup
.mel line 192: Y-axis is already the Up-axis
pymel.internal.startup : ERROR : could not perform Maya initialization sequence:
 failed on namedCommandSetup.mel: Error occurred during execution of MEL script

​

On Sat, Sep 20, 2014 at 11:50 AM, tushar sankhala <[email protected]>
wrote:

> I have tried "import pymel.core as pmc"
>
> both in mayapy console and external editor "wingsIDE"
>
> but no luck.
>
> Thanks
>
> On Saturday, 20 September 2014 12:47:24 UTC+5:30, Mahmoodreza Aarabi wrote:
>>
>> ok,
>>
>> did you use import pymel.core as pmc in external python interpreter?
>>
>> i have another problem in Maya2014 (script editor) but when i import
>> pymel.core as pm it give me a error dialog :
>> [image: Inline image 2]
>>
>> but it works, when i run for example:
>>
>> pm.spaceLocator()
>>
>> i added C:\Program Files\Autodesk\Maya2014\Python\lib\site-packages\ to
>> my PYTHONPATH
>>
>> but when run maya.standalone.initialize() in external python interpreter
>> it give me error dialog.
>>
>> and not work
>>
>> same as import pymel.core as pm.
>>
>> I interested to know why these happens inside and outside of maya2014 too.
>> ​
>>
>> On Sat, Sep 20, 2014 at 10:34 AM, tushar sankhala <[email protected]>
>> wrote:
>>
>>>
>>> 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\internal\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]>
>>>> 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/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
>>> <https://groups.google.com/d/msgid/python_inside_maya/6eabd775-454a-42d5-bfc2-421fb7d78b38%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/90f53dac-d005-421d-9cdc-a152e7e1f5ae%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/90f53dac-d005-421d-9cdc-a152e7e1f5ae%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/CADvbQw%2BVBheU6Sz1DwuZ3RnmdrA0eqvg%3DYB4uM%2Bg0Rt4yFJK0g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to