Re: [Maya-Python] mayapy interpreter error with Anaconda

2018-02-21 Thread Mike Bourbeau



I'm having an issue with PyCharm and autocomplete. The stubs work for 
autocompletion, but my code won't execute. I've added the stubs to the 
PYTHONPATH in my Anaconda environment as you can see in the picture. It 
looks like these stubs are causing Qt.py to break, because when I remove 
the Maya stubs everything works.

Here's my testing 
script: 
https://gist.github.com/mikebourbeauart/8689e511ce7f5fa1f75db5f39890d058 
it just needs PySide Qt.py and python 2.7

>
>

-- 
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/dd971a6f-807b-49d3-a3c1-1b2aac4b83ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Maya-Python] mayapy interpreter error with Anaconda

2017-10-11 Thread Trystan James
Gah!
Sorry and thanks so much :-)

On 8 October 2017 at 21:56, Justin Israel  wrote:

> On Mon, Oct 9, 2017 at 9:38 AM Trystan James 
> wrote:
>
>> Ah, sorry crossed wires. All a bit new to me! Yup so I've edited my
>> project settings similarly to my first post but using a standard maya
>> interpreter. Python completion seems happy now but maya related ones still
>> fail.
>> {
>>
>>  "build_systems":
>>  [
>>   {
>>"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
>>"name": "Anaconda Python Builder",
>>"selector": "source.python",
>>"shell_cmd": "\"C:/Users/tryst/Anaconda2/python.exe\" -u \"$file\""
>>
>>   }
>>  ],
>>  "extra_paths":
>>  [
>>   "C:/Program Files/Autodesk/Maya2017/devkit/other/pymel/extras/
>> completion/py/"
>>  ],
>>  "settings":
>>  {
>>   "python_interpreter": "C:/Users/tryst/Anaconda2/python.exe"
>>  }
>> }
>>
>
> Seems to me like you have put the settings into the wrong place. They need
> to go within your "settings" block and not a top level key, as in the
> documentation:
>
> {
> ...
> "settings": {
> "python_interpreter": "C:/Users/tryst/Anaconda2/python.exe",
> "extra_paths": [
> "C:/Program Files/Autodesk/Maya2017/devkit/other/pymel/extras/
> completion/py/"
> ]
> }
> }
>
>
>
>>
>> On 8 October 2017 at 19:16, Justin Israel  wrote:
>>
>>>
>>>
>>> On Mon, Oct 9, 2017, 6:39 AM Trystan James 
>>> wrote:
>>>
 >>> import sys
 >>> sys.path.append("C:\\Program Files\\Autodesk\\Maya2017\\
 devkit\\other\\pymel\\extras\\completion\\py\\")
 >>> print sys.path
 ['', 'C:\\Users\\tryst\\Anaconda2\\python27.zip',
 'C:\\Users\\tryst\\Anaconda2\\DLLs', 'C:\\Users\\tryst\\Anaconda2\\lib',
 'C:\\Users\\tryst\\Anaconda2\\lib\\plat-win',
 'C:\\Users\\tryst\\Anaconda2\\lib\\lib-tk',
 'C:\\Users\\tryst\\Anaconda2', 
 'C:\\Users\\tryst\\Anaconda2\\lib\\site-packages',
 'C:\\Users\\tryst\\Anaconda2\\lib\\site-packages\\Babel-2.5.0-py2.7.egg',
 'C:\\Users\\tryst\\Anaconda2\\lib\\site-packages\\win32',
 'C:\\Users\\tryst\\Anaconda2\\lib\\site-packages\\win32\\lib',
 'C:\\Users\\tryst\\Anaconda2\\lib\\site-packages\\Pythonwin',
 'C:\\Program Files\\Autodesk\\Maya2017\\devkit\\other\\pymel\\extras\\
 completion\\py\\']

 both python interpreter and completion stubs are on PYTHONPATH...but
 still doesn't recognise either...think I might try another IDE...
 Thanks very much for the tips though sir!

>>>
>>> Modifying sys.path isn't going to have an effect on the Anaconda plugin.
>>> Are you doing that from the console inside Sublime or something?
>>>
>>> Did you read the section on Extra Paths?
>>> http://damnwidget.github.io/anaconda/anaconda_settings/
>>>
>>> You can configure that via "Edit Project" to make it per project
>>> settings or you can configure that in your global preferences to always be
>>> on your python path for any project.
>>>
>>>
 On 3 October 2017 at 23:09, Justin Israel 
 wrote:

>
>
> On Wed, Oct 4, 2017 at 9:39 AM Trystan James 
> wrote:
>
>> Long time no reply!  Work crunch...
>> Python auto complete works but flags a failure to find the python
>> interpreter even with an explicit python interpreter path. The maya auto
>> completion doesn't work so I presumed the error was connected but it's
>> counter intuitive...
>>
>
> Right, but what I was suggesting was to not try and set the python
> interpreter to point at mayapy. Does it complain even about finding your
> standard system python?
>
> If you were to just update your PYTHONPATH to include the pymel stubs,
> I would think it should autocomplete for Maya commands.
>
>
>>
>> On 29 August 2017 at 20:28, Justin Israel 
>> wrote:
>>
>>> Does "bork" mean you don't get Maya autocompletion? Or that the
>>> entire Anaconda doesn't work? If it means the Maya completions aren't
>>> working (but standard lib stuff is) then you probably just need to 
>>> update
>>> the PYTHONPATH for anaconda to include the Maya stubs. If it's really 
>>> not
>>> working for anything, then maybe it isn't finding your system python on 
>>> the
>>> PATH and you need to adjust that in anaconda to find Python.
>>>
>>> On Wed, Aug 30, 2017, 7:23 AM  wrote:
>>>
 Hey Justin,

 Yes that's what the "C:/Program Files/Autodesk/Maya2017/
 devkit/other/pymel/extras/completion/py/" path is supposed to do.
 I just wondered why mayapy wasn't working since not having an 
 interpreter
 seems to bork it too. I didn't really want to add another python
 installation since it definitely works standalone but I guess it's 

Re: [Maya-Python] mayapy interpreter error with Anaconda

2017-10-08 Thread Justin Israel
On Mon, Oct 9, 2017 at 9:38 AM Trystan James 
wrote:

> Ah, sorry crossed wires. All a bit new to me! Yup so I've edited my
> project settings similarly to my first post but using a standard maya
> interpreter. Python completion seems happy now but maya related ones still
> fail.
> {
>
>  "build_systems":
>  [
>   {
>"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
>"name": "Anaconda Python Builder",
>"selector": "source.python",
>"shell_cmd": "\"C:/Users/tryst/Anaconda2/python.exe\" -u \"$file\""
>
>   }
>  ],
>  "extra_paths":
>  [
>   "C:/Program
> Files/Autodesk/Maya2017/devkit/other/pymel/extras/completion/py/"
>  ],
>  "settings":
>  {
>   "python_interpreter": "C:/Users/tryst/Anaconda2/python.exe"
>  }
> }
>

Seems to me like you have put the settings into the wrong place. They need
to go within your "settings" block and not a top level key, as in the
documentation:

{
...
"settings": {
"python_interpreter": "C:/Users/tryst/Anaconda2/python.exe",
"extra_paths": [
"C:/Program
Files/Autodesk/Maya2017/devkit/other/pymel/extras/completion/py/"
]
}
}



>
> On 8 October 2017 at 19:16, Justin Israel  wrote:
>
>>
>>
>> On Mon, Oct 9, 2017, 6:39 AM Trystan James 
>> wrote:
>>
>>> >>> import sys
>>> >>> sys.path.append("C:\\Program
>>> Files\\Autodesk\\Maya2017\\devkit\\other\\pymel\\extras\\completion\\py\\")
>>> >>> print sys.path
>>> ['', 'C:\\Users\\tryst\\Anaconda2\\python27.zip',
>>> 'C:\\Users\\tryst\\Anaconda2\\DLLs', 'C:\\Users\\tryst\\Anaconda2\\lib',
>>> 'C:\\Users\\tryst\\Anaconda2\\lib\\plat-win',
>>> 'C:\\Users\\tryst\\Anaconda2\\lib\\lib-tk', 'C:\\Users\\tryst\\Anaconda2',
>>> 'C:\\Users\\tryst\\Anaconda2\\lib\\site-packages',
>>> 'C:\\Users\\tryst\\Anaconda2\\lib\\site-packages\\Babel-2.5.0-py2.7.egg',
>>> 'C:\\Users\\tryst\\Anaconda2\\lib\\site-packages\\win32',
>>> 'C:\\Users\\tryst\\Anaconda2\\lib\\site-packages\\win32\\lib',
>>> 'C:\\Users\\tryst\\Anaconda2\\lib\\site-packages\\Pythonwin', 'C:\\Program
>>> Files\\Autodesk\\Maya2017\\devkit\\other\\pymel\\extras\\completion\\py\\']
>>>
>>> both python interpreter and completion stubs are on PYTHONPATH...but
>>> still doesn't recognise either...think I might try another IDE...
>>> Thanks very much for the tips though sir!
>>>
>>
>> Modifying sys.path isn't going to have an effect on the Anaconda plugin.
>> Are you doing that from the console inside Sublime or something?
>>
>> Did you read the section on Extra Paths?
>> http://damnwidget.github.io/anaconda/anaconda_settings/
>>
>> You can configure that via "Edit Project" to make it per project settings
>> or you can configure that in your global preferences to always be on your
>> python path for any project.
>>
>>
>>> On 3 October 2017 at 23:09, Justin Israel 
>>> wrote:
>>>


 On Wed, Oct 4, 2017 at 9:39 AM Trystan James 
 wrote:

> Long time no reply!  Work crunch...
> Python auto complete works but flags a failure to find the python
> interpreter even with an explicit python interpreter path. The maya auto
> completion doesn't work so I presumed the error was connected but it's
> counter intuitive...
>

 Right, but what I was suggesting was to not try and set the python
 interpreter to point at mayapy. Does it complain even about finding your
 standard system python?

 If you were to just update your PYTHONPATH to include the pymel stubs,
 I would think it should autocomplete for Maya commands.


>
> On 29 August 2017 at 20:28, Justin Israel 
> wrote:
>
>> Does "bork" mean you don't get Maya autocompletion? Or that the
>> entire Anaconda doesn't work? If it means the Maya completions aren't
>> working (but standard lib stuff is) then you probably just need to update
>> the PYTHONPATH for anaconda to include the Maya stubs. If it's really not
>> working for anything, then maybe it isn't finding your system python on 
>> the
>> PATH and you need to adjust that in anaconda to find Python.
>>
>> On Wed, Aug 30, 2017, 7:23 AM  wrote:
>>
>>> Hey Justin,
>>>
>>> Yes that's what the "C:/Program
>>> Files/Autodesk/Maya2017/devkit/other/pymel/extras/completion/py/" path 
>>> is
>>> supposed to do. I just wondered why mayapy wasn't working since not 
>>> having
>>> an interpreter seems to bork it too. I didn't really want to add another
>>> python installation since it definitely works standalone but I guess 
>>> it's
>>> my only option since it's pointing in the right place!
>>>
>>> Cheers, Trystan.
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Python Programming for Autodesk Maya" group.
>>> To unsubscribe 

Re: [Maya-Python] mayapy interpreter error with Anaconda

2017-10-08 Thread Trystan James
Ah, sorry crossed wires. All a bit new to me! Yup so I've edited my project
settings similarly to my first post but using a standard maya interpreter.
Python completion seems happy now but maya related ones still fail.
{
 "build_systems":
 [
  {
   "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
   "name": "Anaconda Python Builder",
   "selector": "source.python",
   "shell_cmd": "\"C:/Users/tryst/Anaconda2/python.exe\" -u \"$file\""
  }
 ],
 "extra_paths":
 [
  "C:/Program
Files/Autodesk/Maya2017/devkit/other/pymel/extras/completion/py/"
 ],
 "settings":
 {
  "python_interpreter": "C:/Users/tryst/Anaconda2/python.exe"
 }
}

On 8 October 2017 at 19:16, Justin Israel  wrote:

>
>
> On Mon, Oct 9, 2017, 6:39 AM Trystan James 
> wrote:
>
>> >>> import sys
>> >>> sys.path.append("C:\\Program Files\\Autodesk\\Maya2017\\
>> devkit\\other\\pymel\\extras\\completion\\py\\")
>> >>> print sys.path
>> ['', 'C:\\Users\\tryst\\Anaconda2\\python27.zip',
>> 'C:\\Users\\tryst\\Anaconda2\\DLLs', 'C:\\Users\\tryst\\Anaconda2\\lib',
>> 'C:\\Users\\tryst\\Anaconda2\\lib\\plat-win',
>> 'C:\\Users\\tryst\\Anaconda2\\lib\\lib-tk',
>> 'C:\\Users\\tryst\\Anaconda2', 
>> 'C:\\Users\\tryst\\Anaconda2\\lib\\site-packages',
>> 'C:\\Users\\tryst\\Anaconda2\\lib\\site-packages\\Babel-2.5.0-py2.7.egg',
>> 'C:\\Users\\tryst\\Anaconda2\\lib\\site-packages\\win32',
>> 'C:\\Users\\tryst\\Anaconda2\\lib\\site-packages\\win32\\lib',
>> 'C:\\Users\\tryst\\Anaconda2\\lib\\site-packages\\Pythonwin',
>> 'C:\\Program Files\\Autodesk\\Maya2017\\devkit\\other\\pymel\\extras\\
>> completion\\py\\']
>>
>> both python interpreter and completion stubs are on PYTHONPATH...but
>> still doesn't recognise either...think I might try another IDE...
>> Thanks very much for the tips though sir!
>>
>
> Modifying sys.path isn't going to have an effect on the Anaconda plugin.
> Are you doing that from the console inside Sublime or something?
>
> Did you read the section on Extra Paths?
> http://damnwidget.github.io/anaconda/anaconda_settings/
>
> You can configure that via "Edit Project" to make it per project settings
> or you can configure that in your global preferences to always be on your
> python path for any project.
>
>
>> On 3 October 2017 at 23:09, Justin Israel  wrote:
>>
>>>
>>>
>>> On Wed, Oct 4, 2017 at 9:39 AM Trystan James 
>>> wrote:
>>>
 Long time no reply!  Work crunch...
 Python auto complete works but flags a failure to find the python
 interpreter even with an explicit python interpreter path. The maya auto
 completion doesn't work so I presumed the error was connected but it's
 counter intuitive...

>>>
>>> Right, but what I was suggesting was to not try and set the python
>>> interpreter to point at mayapy. Does it complain even about finding your
>>> standard system python?
>>>
>>> If you were to just update your PYTHONPATH to include the pymel stubs, I
>>> would think it should autocomplete for Maya commands.
>>>
>>>

 On 29 August 2017 at 20:28, Justin Israel 
 wrote:

> Does "bork" mean you don't get Maya autocompletion? Or that the entire
> Anaconda doesn't work? If it means the Maya completions aren't working 
> (but
> standard lib stuff is) then you probably just need to update the 
> PYTHONPATH
> for anaconda to include the Maya stubs. If it's really not working for
> anything, then maybe it isn't finding your system python on the PATH and
> you need to adjust that in anaconda to find Python.
>
> On Wed, Aug 30, 2017, 7:23 AM  wrote:
>
>> Hey Justin,
>>
>> Yes that's what the "C:/Program Files/Autodesk/Maya2017/
>> devkit/other/pymel/extras/completion/py/" path is supposed to do. I
>> just wondered why mayapy wasn't working since not having an interpreter
>> seems to bork it too. I didn't really want to add another python
>> installation since it definitely works standalone but I guess it's my 
>> only
>> option since it's pointing in the right place!
>>
>> Cheers, Trystan.
>>
>> --
>> 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/e0557f5b-62f1-405f-9497-
>> 13e519c90ff1%40googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Python Programming for Autodesk Maya" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> 

Re: [Maya-Python] mayapy interpreter error with Anaconda

2017-10-08 Thread Justin Israel
On Mon, Oct 9, 2017, 6:39 AM Trystan James  wrote:

> >>> import sys
> >>> sys.path.append("C:\\Program
> Files\\Autodesk\\Maya2017\\devkit\\other\\pymel\\extras\\completion\\py\\")
> >>> print sys.path
> ['', 'C:\\Users\\tryst\\Anaconda2\\python27.zip',
> 'C:\\Users\\tryst\\Anaconda2\\DLLs', 'C:\\Users\\tryst\\Anaconda2\\lib',
> 'C:\\Users\\tryst\\Anaconda2\\lib\\plat-win',
> 'C:\\Users\\tryst\\Anaconda2\\lib\\lib-tk', 'C:\\Users\\tryst\\Anaconda2',
> 'C:\\Users\\tryst\\Anaconda2\\lib\\site-packages',
> 'C:\\Users\\tryst\\Anaconda2\\lib\\site-packages\\Babel-2.5.0-py2.7.egg',
> 'C:\\Users\\tryst\\Anaconda2\\lib\\site-packages\\win32',
> 'C:\\Users\\tryst\\Anaconda2\\lib\\site-packages\\win32\\lib',
> 'C:\\Users\\tryst\\Anaconda2\\lib\\site-packages\\Pythonwin', 'C:\\Program
> Files\\Autodesk\\Maya2017\\devkit\\other\\pymel\\extras\\completion\\py\\']
>
> both python interpreter and completion stubs are on PYTHONPATH...but still
> doesn't recognise either...think I might try another IDE...
> Thanks very much for the tips though sir!
>

Modifying sys.path isn't going to have an effect on the Anaconda plugin.
Are you doing that from the console inside Sublime or something?

Did you read the section on Extra Paths?
http://damnwidget.github.io/anaconda/anaconda_settings/

You can configure that via "Edit Project" to make it per project settings
or you can configure that in your global preferences to always be on your
python path for any project.


> On 3 October 2017 at 23:09, Justin Israel  wrote:
>
>>
>>
>> On Wed, Oct 4, 2017 at 9:39 AM Trystan James 
>> wrote:
>>
>>> Long time no reply!  Work crunch...
>>> Python auto complete works but flags a failure to find the python
>>> interpreter even with an explicit python interpreter path. The maya auto
>>> completion doesn't work so I presumed the error was connected but it's
>>> counter intuitive...
>>>
>>
>> Right, but what I was suggesting was to not try and set the python
>> interpreter to point at mayapy. Does it complain even about finding your
>> standard system python?
>>
>> If you were to just update your PYTHONPATH to include the pymel stubs, I
>> would think it should autocomplete for Maya commands.
>>
>>
>>>
>>> On 29 August 2017 at 20:28, Justin Israel 
>>> wrote:
>>>
 Does "bork" mean you don't get Maya autocompletion? Or that the entire
 Anaconda doesn't work? If it means the Maya completions aren't working (but
 standard lib stuff is) then you probably just need to update the PYTHONPATH
 for anaconda to include the Maya stubs. If it's really not working for
 anything, then maybe it isn't finding your system python on the PATH and
 you need to adjust that in anaconda to find Python.

 On Wed, Aug 30, 2017, 7:23 AM  wrote:

> Hey Justin,
>
> Yes that's what the "C:/Program
> Files/Autodesk/Maya2017/devkit/other/pymel/extras/completion/py/" path is
> supposed to do. I just wondered why mayapy wasn't working since not having
> an interpreter seems to bork it too. I didn't really want to add another
> python installation since it definitely works standalone but I guess it's
> my only option since it's pointing in the right place!
>
> Cheers, Trystan.
>
> --
> 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/e0557f5b-62f1-405f-9497-13e519c90ff1%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>
 --
 You received this message because you are subscribed to a topic in the
 Google Groups "Python Programming for Autodesk Maya" group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/python_inside_maya/kCFB2pEny4s/unsubscribe
 .
 To unsubscribe from this group and all its topics, 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/CAPGFgA3hZ984GBY3bsTOj4D1HsLwzc6hGvJpmmzgAs_yhYw3Hg%40mail.gmail.com
 
 .
>>>
>>>
 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.

Re: [Maya-Python] mayapy interpreter error with Anaconda

2017-10-08 Thread Trystan James
>>> import sys
>>> sys.path.append("C:\\Program
Files\\Autodesk\\Maya2017\\devkit\\other\\pymel\\extras\\completion\\py\\")
>>> print sys.path
['', 'C:\\Users\\tryst\\Anaconda2\\python27.zip',
'C:\\Users\\tryst\\Anaconda2\\DLLs', 'C:\\Users\\tryst\\Anaconda2\\lib',
'C:\\Users\\tryst\\Anaconda2\\lib\\plat-win',
'C:\\Users\\tryst\\Anaconda2\\lib\\lib-tk', 'C:\\Users\\tryst\\Anaconda2',
'C:\\Users\\tryst\\Anaconda2\\lib\\site-packages',
'C:\\Users\\tryst\\Anaconda2\\lib\\site-packages\\Babel-2.5.0-py2.7.egg',
'C:\\Users\\tryst\\Anaconda2\\lib\\site-packages\\win32',
'C:\\Users\\tryst\\Anaconda2\\lib\\site-packages\\win32\\lib',
'C:\\Users\\tryst\\Anaconda2\\lib\\site-packages\\Pythonwin', 'C:\\Program
Files\\Autodesk\\Maya2017\\devkit\\other\\pymel\\extras\\completion\\py\\']

both python interpreter and completion stubs are on PYTHONPATH...but still
doesn't recognise either...think I might try another IDE...
Thanks very much for the tips though sir!

On 3 October 2017 at 23:09, Justin Israel  wrote:

>
>
> On Wed, Oct 4, 2017 at 9:39 AM Trystan James 
> wrote:
>
>> Long time no reply!  Work crunch...
>> Python auto complete works but flags a failure to find the python
>> interpreter even with an explicit python interpreter path. The maya auto
>> completion doesn't work so I presumed the error was connected but it's
>> counter intuitive...
>>
>
> Right, but what I was suggesting was to not try and set the python
> interpreter to point at mayapy. Does it complain even about finding your
> standard system python?
>
> If you were to just update your PYTHONPATH to include the pymel stubs, I
> would think it should autocomplete for Maya commands.
>
>
>>
>> On 29 August 2017 at 20:28, Justin Israel  wrote:
>>
>>> Does "bork" mean you don't get Maya autocompletion? Or that the entire
>>> Anaconda doesn't work? If it means the Maya completions aren't working (but
>>> standard lib stuff is) then you probably just need to update the PYTHONPATH
>>> for anaconda to include the Maya stubs. If it's really not working for
>>> anything, then maybe it isn't finding your system python on the PATH and
>>> you need to adjust that in anaconda to find Python.
>>>
>>> On Wed, Aug 30, 2017, 7:23 AM  wrote:
>>>
 Hey Justin,

 Yes that's what the "C:/Program Files/Autodesk/Maya2017/
 devkit/other/pymel/extras/completion/py/" path is supposed to do. I
 just wondered why mayapy wasn't working since not having an interpreter
 seems to bork it too. I didn't really want to add another python
 installation since it definitely works standalone but I guess it's my only
 option since it's pointing in the right place!

 Cheers, Trystan.

 --
 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/e0557f5b-62f1-405f-9497-
 13e519c90ff1%40googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "Python Programming for Autodesk Maya" group.
>>> To unsubscribe from this topic, visit https://groups.google.com/d/
>>> topic/python_inside_maya/kCFB2pEny4s/unsubscribe.
>>> To unsubscribe from this group and all its topics, 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/CAPGFgA3hZ984GBY3bsTOj4D1HsLwz
>>> c6hGvJpmmzgAs_yhYw3Hg%40mail.gmail.com
>>> 
>>> .
>>
>>
>>> 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/CA%2BOh_j86eG7_ryt5%
>> 3D8heOjNpGEF4RRW32j57vdpmtPT42rTQiA%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Python Programming for Autodesk Maya" group.
> To unsubscribe from this topic, visit 

Re: [Maya-Python] mayapy interpreter error with Anaconda

2017-10-03 Thread Justin Israel
On Wed, Oct 4, 2017 at 9:39 AM Trystan James 
wrote:

> Long time no reply!  Work crunch...
> Python auto complete works but flags a failure to find the python
> interpreter even with an explicit python interpreter path. The maya auto
> completion doesn't work so I presumed the error was connected but it's
> counter intuitive...
>

Right, but what I was suggesting was to not try and set the python
interpreter to point at mayapy. Does it complain even about finding your
standard system python?

If you were to just update your PYTHONPATH to include the pymel stubs, I
would think it should autocomplete for Maya commands.


>
> On 29 August 2017 at 20:28, Justin Israel  wrote:
>
>> Does "bork" mean you don't get Maya autocompletion? Or that the entire
>> Anaconda doesn't work? If it means the Maya completions aren't working (but
>> standard lib stuff is) then you probably just need to update the PYTHONPATH
>> for anaconda to include the Maya stubs. If it's really not working for
>> anything, then maybe it isn't finding your system python on the PATH and
>> you need to adjust that in anaconda to find Python.
>>
>> On Wed, Aug 30, 2017, 7:23 AM  wrote:
>>
>>> Hey Justin,
>>>
>>> Yes that's what the "C:/Program
>>> Files/Autodesk/Maya2017/devkit/other/pymel/extras/completion/py/" path is
>>> supposed to do. I just wondered why mayapy wasn't working since not having
>>> an interpreter seems to bork it too. I didn't really want to add another
>>> python installation since it definitely works standalone but I guess it's
>>> my only option since it's pointing in the right place!
>>>
>>> Cheers, Trystan.
>>>
>>> --
>>> 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/e0557f5b-62f1-405f-9497-13e519c90ff1%40googlegroups.com
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Python Programming for Autodesk Maya" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/python_inside_maya/kCFB2pEny4s/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, 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/CAPGFgA3hZ984GBY3bsTOj4D1HsLwzc6hGvJpmmzgAs_yhYw3Hg%40mail.gmail.com
>> 
>> .
>
>
>> 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/CA%2BOh_j86eG7_ryt5%3D8heOjNpGEF4RRW32j57vdpmtPT42rTQiA%40mail.gmail.com
> 
> .
> 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/CAPGFgA2-F-XJDa%3D8FKz9PKVxoBKrUmpYz19Q6vzcUbOW8ayraQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Maya-Python] mayapy interpreter error with Anaconda

2017-08-29 Thread Justin Israel
Does "bork" mean you don't get Maya autocompletion? Or that the entire
Anaconda doesn't work? If it means the Maya completions aren't working (but
standard lib stuff is) then you probably just need to update the PYTHONPATH
for anaconda to include the Maya stubs. If it's really not working for
anything, then maybe it isn't finding your system python on the PATH and
you need to adjust that in anaconda to find Python.

On Wed, Aug 30, 2017, 7:23 AM  wrote:

> Hey Justin,
>
> Yes that's what the "C:/Program
> Files/Autodesk/Maya2017/devkit/other/pymel/extras/completion/py/" path is
> supposed to do. I just wondered why mayapy wasn't working since not having
> an interpreter seems to bork it too. I didn't really want to add another
> python installation since it definitely works standalone but I guess it's
> my only option since it's pointing in the right place!
>
> Cheers, Trystan.
>
> --
> 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/e0557f5b-62f1-405f-9497-13e519c90ff1%40googlegroups.com
> .
> 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/CAPGFgA3hZ984GBY3bsTOj4D1HsLwzc6hGvJpmmzgAs_yhYw3Hg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Maya-Python] mayapy interpreter error with Anaconda

2017-08-29 Thread trystan . james
Hey Justin,

Yes that's what the "C:/Program 
Files/Autodesk/Maya2017/devkit/other/pymel/extras/completion/py/" path is 
supposed to do. I just wondered why mayapy wasn't working since not having an 
interpreter seems to bork it too. I didn't really want to add another python 
installation since it definitely works standalone but I guess it's my only 
option since it's pointing in the right place!

Cheers, Trystan.

-- 
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/e0557f5b-62f1-405f-9497-13e519c90ff1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Maya-Python] mayapy interpreter error with Anaconda

2017-08-28 Thread Justin Israel
I don't think it is necessary to set your interpreter to mayapy in order to
get completions. Isn't that what the autocomplete stubs are for, provided
with pymel?

On Tue, Aug 29, 2017 at 9:48 AM  wrote:

>
>
> I can't seem to get autocomplete going with anaconda and sublime text. I'm
> getting an "Anaconda can not spawn a new process with your current
> configured python interpreter(python)" error.
>
> Any ideas? Or should I revert to using system python interpreter?
>
>  "build_systems":
>  [
>   {
>"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
>"name": "Anaconda Python Builder",
>"selector": "source.python",
>"shell_cmd": "\"python\" -u \"$file\""
>   }
>  ],
>  "extra_paths":
>  [
>   "C:/Program
> Files/Autodesk/Maya2017/devkit/other/pymel/extras/completion/py/"
>  ],
>  "setttings":
>  {
>   "python_interpreter": "C:/Program Files/Autodesk/Maya2017/bin/mayapy.exe"
>  }
> }
>
> --
> 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/f4520e7b-4a43-4182-aebf-92969b6cf97f%40googlegroups.com
> .
> 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/CAPGFgA3qz0iFmSbD0ri6Dxo%3DxPL4nFSioE0tP4%3DGRtDz8M6CeQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Maya-Python] mayapy interpreter error with Anaconda

2017-08-28 Thread trystan . james


I can't seem to get autocomplete going with anaconda and sublime text. I'm 
getting an "Anaconda can not spawn a new process with your current configured 
python interpreter(python)" error.

Any ideas? Or should I revert to using system python interpreter?

 "build_systems":
 [
  {
   "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
   "name": "Anaconda Python Builder",
   "selector": "source.python",
   "shell_cmd": "\"python\" -u \"$file\""
  }
 ],
 "extra_paths":
 [
  "C:/Program Files/Autodesk/Maya2017/devkit/other/pymel/extras/completion/py/"
 ],
 "setttings":
 {
  "python_interpreter": "C:/Program Files/Autodesk/Maya2017/bin/mayapy.exe"
 }
}

-- 
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/f4520e7b-4a43-4182-aebf-92969b6cf97f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.