with pymel i have same problem in maya too

On Sat, Sep 20, 2014 at 12:38 PM, tushar sankhala <[email protected]>
wrote:

> I have tested the same command in the Maya Script Editor
>
> and it runs fine so that issue is only in the mayapy.exe interpreter.
>
> does your happens in maya script editor as well.
>
>
> On Saturday, 20 September 2014 14:21:57 UTC+5:30, Mahmoodreza Aarabi wrote:
>>
>> Yes, i a have another problem,
>> Sure, if i find i will tell you.
>>
>> and we wait for other guys
>> ;)
>> good luck
>>
>> On Sat, Sep 20, 2014 at 12:18 PM, tushar sankhala <[email protected]>
>> wrote:
>>
>>> So there is also a problem with your Pymel but i think it is a different
>>> one right now i am checking the startup.py file in pymel folder that error
>>> comes from there.
>>> I you find any solution for this please share it.
>>>
>>> Or i will wait for some other guys to reply for this if anyone else is
>>> having this issue and has fixed it.
>>>
>>> Thanks
>>>
>>>
>>> On Saturday, 20 September 2014 13:55:23 UTC+5:30, Mahmoodreza Aarabi
>>> wrote:
>>>>
>>>> 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/7d4520a
>>>>>>>>> c-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/6eabd77
>>>>>>> 5-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/a9da9681-68d0-4874-987e-
>>> 0d905d948068%40googlegroups.com
>>> <https://groups.google.com/d/msgid/python_inside_maya/a9da9681-68d0-4874-987e-0d905d948068%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/1c2e30a0-d04c-4ac9-9484-cd554ee2ecdf%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/1c2e30a0-d04c-4ac9-9484-cd554ee2ecdf%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/CADvbQwKRXLNXNLArDGohQ%3DR7O-MUZ%2B1_GWhWAeFyyOKmD9o8fQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to