On Mon, Oct 9, 2017 at 9:38 AM Trystan James <[email protected]>
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 <[email protected]> wrote:
>
>>
>>
>> On Mon, Oct 9, 2017, 6:39 AM Trystan James <[email protected]>
>> 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 <[email protected]>
>>> wrote:
>>>
>>>>
>>>>
>>>> On Wed, Oct 4, 2017 at 9:39 AM Trystan James <[email protected]>
>>>> 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 <[email protected]>
>>>>> 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 <[email protected]> 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 [email protected].
>>>>>>> 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
>>>>>> [email protected].
>>>>>> To view this discussion on the web visit
>>>>>> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3hZ984GBY3bsTOj4D1HsLwzc6hGvJpmmzgAs_yhYw3Hg%40mail.gmail.com
>>>>>> <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA3hZ984GBY3bsTOj4D1HsLwzc6hGvJpmmzgAs_yhYw3Hg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>
>>>>>
>>>>>> 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 [email protected].
>>>>> 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
>>>>> <https://groups.google.com/d/msgid/python_inside_maya/CA%2BOh_j86eG7_ryt5%3D8heOjNpGEF4RRW32j57vdpmtPT42rTQiA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>> 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
>>>> [email protected].
>>>>
>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2-F-XJDa%3D8FKz9PKVxoBKrUmpYz19Q6vzcUbOW8ayraQ%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA2-F-XJDa%3D8FKz9PKVxoBKrUmpYz19Q6vzcUbOW8ayraQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>
>>>
>>>> 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 [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/python_inside_maya/CA%2BOh_j_ixpKAFehjDAQJ64Bgm_hYv0aJbJyWzcHYwcSvkXQPPA%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/python_inside_maya/CA%2BOh_j_ixpKAFehjDAQJ64Bgm_hYv0aJbJyWzcHYwcSvkXQPPA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>> 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
>> [email protected].
>>
> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA176AABKgSb_O5L2UfxztR%3DOCBcvWAnUkyhQ%3DyQ%3DE1nGA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA176AABKgSb_O5L2UfxztR%3DOCBcvWAnUkyhQ%3DyQ%3DE1nGA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>
>
>> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CA%2BOh_j-DYRbFz4A%2BdXUYADvXO1v3Jq6M8qdVMUyfdEZTtwZKdg%40mail.gmail.com
> <https://groups.google.com/d/msgid/python_inside_maya/CA%2BOh_j-DYRbFz4A%2BdXUYADvXO1v3Jq6M8qdVMUyfdEZTtwZKdg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1fn2xdXM5O5ysPrmnjzuq6-KBHitnLhiFFEo6nd5_uPA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to