Your python variable needs to point all the way to the interpreter and not just 
the directory. 
Im pretty surprised that so many people had issues. I must have been lucky. 
Though its strange that I have two home computers, a work computer, and a VM 
that all didn't produce errors. Anyone want to come work on my machines? ;)



On Jul 6, 2012, at 12:48 AM, Miguel González Viñé <[email protected]> wrote:

> Are you on Windows Ollarin?
> I can't get it to work on Windows. After a fresh install and follow
> all the Justin steps, it doesn't work.
> I've also edited the config file adding the next lines because the
> file was empty :
> {
>    "Python": {
>        "python": 'C:/Python26',
>        "pythonExtraPaths": ['C:/Program
> Files/Autodesk/Maya2011/devkit/other/pymel/extras/completion/py']
>    },
> }
> 
> But it still doesn't work.
> 
> Any ideas?
> 
> 
> On Fri, Jul 6, 2012 at 5:46 AM, Ollarin <[email protected]> wrote:
>> Ah. I just turned on the console and I get this error every time I try to
>> use the autocompletion:
>> 
>> "codeintel2.common.DatabaseError: cannot upgrade from db v2.0.24: no
>> upgrader for this version". Though, I'm using the latest version of sublime.
>> So I'm not sure what going on with that.
>> 
>> When I try to upgrade packages it tells me there are no packages that need
>> to be updated.
>> 
>> 
>> 
>> 
>> On Thursday, 5 July 2012 23:14:28 UTC-4, Judah Baron wrote:
>>> 
>>> I did an install and it is running, but it has a KeyError that is not
>>> visible unless the console is visible. You might try opening the console to
>>> see if there is any feedback.
>>> 
>>> On Thu, Jul 5, 2012 at 5:55 PM, Justin Israel <[email protected]>
>>> wrote:
>>>> 
>>>> I just tested installing Sublime on an Ubuntu 64 VM image. It worked
>>>> right away.
>>>> 
>>>> 1. Start up sublime
>>>> 2. Install Package control and restart
>>>> 3. From Package Control, install SublmeCodeIntel and restart
>>>> 4. Create:  test.py and save
>>>> 5. type:  import sys  # hit enter
>>>> 6. type:  sys.
>>>> 
>>>> When I sit there and wait, at the bottom the status bar says to hang on
>>>> while the indexes are built. After maybe 7 seconds, its done.
>>>> Then I hit ctrl+j (or just retype sys.) and I get completion.
>>>> 
>>>> No idea what could be wrong if its not working. These are unlicensed
>>>> installs. I only have one license at work on my OSX 10.6.8 box.
>>>> 
>>>> 
>>>> 
>>>> On Wed, Jul 4, 2012 at 1:15 PM, Ollarin <[email protected]> wrote:
>>>>> 
>>>>> Hey Justin,
>>>>> 
>>>>> Hmm..I just reinstalled Sublime and followed your steps and I still
>>>>> can't get it to work. The hotkey (ctrl+j) doesn't bring anything up. 
>>>>> Infact,
>>>>> it doesn't even bring it up automatically. :/
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> On Wednesday, 4 July 2012 13:08:01 UTC-4, Justin Israel wrote:
>>>>>> 
>>>>>> I just did a clean install to check the steps. Here is the easiest way
>>>>>> from a fresh SublimeText2 install:
>>>>>> (Note: When I refer to the "super" key on mac, the equiv on win/linux
>>>>>> is the "ctrl" key)
>>>>>> 
>>>>>> 1. Install the Package Manager to make subsequent installs easy, and it
>>>>>> will keep them up to date:
>>>>>>    a. Open up the Command Console: View -> Show Console
>>>>>>    b. Paste this python snippet which will install Package Manager,
>>>>>> from this link:
>>>>>> http://wbond.net/sublime_packages/package_control/installation
>>>>>>   c. Restart Sublime
>>>>>> 
>>>>>> 2. Install SublimeCodeIntel
>>>>>>    a. Open the command palette (super+shift+p on mac), and type
>>>>>> "Install Package"; hit enter
>>>>>>    b. Now search: CodeIntel; choose it and it will install.
>>>>>>    c. Restart Sublime
>>>>>> 
>>>>>> 3. Test CodeIntel: The first time you start using CodeIntel, it will
>>>>>> need to build an index of your pythonpath to find everything.
>>>>>>    a. open up a python script (something saved with a .py so sublime
>>>>>> knows what language it is)
>>>>>>    b. import sys
>>>>>>    c. on a new line, start typing: sys.
>>>>>>    d. after the period, hit the manual completion hotkey. on mac its
>>>>>> super+j
>>>>>>    e. You will see the status at the bottom telling you CodeIntel is
>>>>>> scanning all your paths. When it is done, it will show the completion. 
>>>>>> And
>>>>>> now autocompletion will be working right away.
>>>>>> 
>>>>>> Personally, I turn off autocompletion in the settings and just use the
>>>>>> hotkey when I want completion. I don't like it constantly popping up for
>>>>>> everything I type.
>>>>>> 
>>>>>> With this working, you could proceed to add more paths to your config,
>>>>>> as listed in my previous reply.
>>>>>> 
>>>>>> let me know if this stats working for ya.
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> On Jul 3, 2012, at 9:00 PM, Ollarin wrote:
>>>>>> 
>>>>>> Hey Justin,
>>>>>> 
>>>>>> I've been trying to set up SublimeCodeIntel but I can't get it to work,
>>>>>> according to ST2 it's installed. I've added the paths to the config file,
>>>>>> though I don't get any auto completion. Even ctrl+shift+space doesn't 
>>>>>> work
>>>>>> for bringing up the code completion manually.
>>>>>> 
>>>>>> Would you happen to know what might cause something like that?
>>>>>> 
>>>>>> 
>>>>>> On Tuesday, 3 July 2012 14:10:36 UTC-4, Justin Israel wrote:
>>>>>>> 
>>>>>>> For anyone that ends up using SublimeCodeIntel, I just got completion
>>>>>>> working fine with the maya commands and api.
>>>>>>> 
>>>>>>> (adjust paths for your platform)
>>>>>>> 
>>>>>>> In your ~/.codeintel/config, add this path to your "pythonExtraPaths "
>>>>>>> python entry:
>>>>>>> 
>>>>>>> ...
>>>>>>>    "Python": {
>>>>>>>        "python": '/usr/local/bin/python',
>>>>>>>        "pythonExtraPaths": [
>>>>>>>            ...
>>>>>>> 
>>>>>>> '/Applications/Autodesk/maya2012/devkit/devkit/other/pymel/extras/completion/py'
>>>>>>>        ]
>>>>>>>    }
>>>>>>> ...
>>>>>>> 
>>>>>>> The next time you do a completion, it will want to scan that location
>>>>>>> which might take a few seconds the first time:
>>>>>>> 
>>>>>>> import maya.OpenMaya as om
>>>>>>> om.<completion>
>>>>>>> 
>>>>>>> 
>>>>>>> On Mon, Jul 2, 2012 at 8:13 PM, Justin Israel <[email protected]>
>>>>>>> wrote:
>>>>>>>> 
>>>>>>>> Read up to my previous reply about installing CodeIntel, to get code
>>>>>>>> completion for general python standard lib.
>>>>>>>> I can't remember if it works for the maya commands module though.
>>>>>>>> CodeIntel would have to be able to load the .so like Eclipse does, as
>>>>>>>> opposed to how other completers just parse an AST from the source 
>>>>>>>> files.
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> On Jul 2, 2012, at 8:01 PM, "Kurian O.S" <[email protected]> wrote:
>>>>>>>> 
>>>>>>>> code complete is working for anyone ? I tries some thing like
>>>>>>>> os.path. but no compete window or do we need any plugin ? I am really
>>>>>>>> looking for maya commands complete :)
>>>>>>>> 
>>>>>>>> On Mon, Jul 2, 2012 at 7:34 PM, Justin Israel
>>>>>>>> <[email protected]> wrote:
>>>>>>>>> 
>>>>>>>>> Unfortunately its not free. But its also not really expensive.
>>>>>>>>> 
>>>>>>>>> I decided to throw something together today for being able to send
>>>>>>>>> commands from SublimeText2 -> Maya:
>>>>>>>>> https://github.com/justinfx/MayaSublime
>>>>>>>>> Its a start, and works for the simple tests I have done so far.
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> If someone ever decides to write a syntax file for MEL, I could
>>>>>>>>> include that as well.
>>>>>>>>> 
>>>>>>>>> On Mon, Jul 2, 2012 at 7:32 PM, Kurian O.S <[email protected]>
>>>>>>>>> wrote:
>>>>>>>>>> 
>>>>>>>>>> Is it free like scite ? because I saw a menu for "Enter License".
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> On Mon, Jul 2, 2012 at 3:00 PM, Justin Israel
>>>>>>>>>> <[email protected]> wrote:
>>>>>>>>>>> 
>>>>>>>>>>> @Jesse
>>>>>>>>>>> SublimeCodeIntel - https://github.com/Kronuz/SublimeCodeIntel
>>>>>>>>>>> 
>>>>>>>>>>> @PixelMucher
>>>>>>>>>>> I don't think there is an existing plugin, from what I have
>>>>>>>>>>> searched, but the editor allows for it by writing a python plugin:
>>>>>>>>>>> http://www.sublimetext.com/docs/api-reference
>>>>>>>>>>> You could make it something that fires on File Save, or an
>>>>>>>>>>> application command that maybe binds to a hotkey for "Send To maya"
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> On Mon, Jul 2, 2012 at 2:32 PM, PixelMuncher
>>>>>>>>>>> <[email protected]> wrote:
>>>>>>>>>>>> 
>>>>>>>>>>>> Is there an easy way to connect to Maya so it can send commands?
>>>>>>>>>>>> Thx.
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>> --
>>>>>>>>>>>> view archives: http://groups.google.com/group/python_inside_maya
>>>>>>>>>>>> change your subscription settings:
>>>>>>>>>>>> http://groups.google.com/group/python_inside_maya/subscribe
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> --
>>>>>>>>>>> view archives: http://groups.google.com/group/python_inside_maya
>>>>>>>>>>> change your subscription settings:
>>>>>>>>>>> http://groups.google.com/group/python_inside_maya/subscribe
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> --
>>>>>>>>>> --:: Kurian ::--
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> --
>>>>>>>>>> view archives: http://groups.google.com/group/python_inside_maya
>>>>>>>>>> change your subscription settings:
>>>>>>>>>> http://groups.google.com/group/python_inside_maya/subscribe
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> --
>>>>>>>>> view archives: http://groups.google.com/group/python_inside_maya
>>>>>>>>> change your subscription settings:
>>>>>>>>> http://groups.google.com/group/python_inside_maya/subscribe
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> --
>>>>>>>> --:: Kurian ::--
>>>>>>>> 
>>>>>>>> 
>>>>>>>> --
>>>>>>>> view archives: http://groups.google.com/group/python_inside_maya
>>>>>>>> change your subscription settings:
>>>>>>>> http://groups.google.com/group/python_inside_maya/subscribe
>>>>>>> 
>>>>>>> 
>>>>>> 
>>>>>> --
>>>>>> view archives: http://groups.google.com/group/python_inside_maya
>>>>>> change your subscription settings:
>>>>>> http://groups.google.com/group/python_inside_maya/subscribe
>>>>>> 
>>>>>> 
>>>>> --
>>>>> view archives: http://groups.google.com/group/python_inside_maya
>>>>> change your subscription settings:
>>>>> http://groups.google.com/group/python_inside_maya/subscribe
>>>> 
>>>> 
>>>> --
>>>> view archives: http://groups.google.com/group/python_inside_maya
>>>> change your subscription settings:
>>>> http://groups.google.com/group/python_inside_maya/subscribe
>>> 
>>> 
>> --
>> view archives: http://groups.google.com/group/python_inside_maya
>> change your subscription settings:
>> http://groups.google.com/group/python_inside_maya/subscribe
> 
> -- 
> view archives: http://groups.google.com/group/python_inside_maya
> change your subscription settings: 
> http://groups.google.com/group/python_inside_maya/subscribe

-- 
view archives: http://groups.google.com/group/python_inside_maya
change your subscription settings: 
http://groups.google.com/group/python_inside_maya/subscribe

Reply via email to