1. Steve Losh
  2. gundo.vim
  3. Issues
Issue #35 new

Errors when using Gundo under Windows

Anonymous created an issue

I'm facing the following errors when I try to run :GundoToggle the first time - "E117: Unknown function: gundo#GundoToggle". I've confirmed that gundo.vim containing the function all is present in the autoload folder.

When I run it a second time, I get "Gundo requires Vim to be compiled with Python 2.4+". I'm pretty sure the executable I use has python support built-in as :version gives me +python/dyn +python3/dyn and -DDYNAMIC_PYTHON_DLL=\"python27.dll\". I also have Python 2.7 installed on Windows.

Could someone help me make sense of what is happening here? I'm using gVim 7.3 in Windows

Comments (9)

  1. Matt Haley

    If Gundo requires Python support to be built-in to Vim, then it's not going to work with the released binaries for Windows. You can look at the output of `vim --version` and see that python support isn't included.

    Edit: Turns out I'm wrong.

  2. Matt Haley

    Kartik, you're right, I was only looking at the output of `vim --version` for the console version. I have Python 2.7 installed and running `gVim --version` yields ` +python/dyn +python3/dyn` and has("python") confirms that Python support is enabled.

    My apologies for not properly researching before posting my previous comment.

  3. Anonymous

    I'm also facing here the same issue on Mac osx.

    Trying to debug the problem, I show this error: "ImportError: No module named difflib". Then, I try, using the standard Python binary included with osx, to see if there's a problem with difflib, but everything looks fine for me.

    Can I do any more test, or post more info, to help debugging this issue?


    VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jan 19 2012 09:06:34)
    MacOS X (unix) version
    Included patches: 1-401
    +python -python3
    Mac OS X v10.6.8
    mario-mac:bundle mario$ python
    Python 2.6.1 (r261:67515, Jun 24 2010, 21:47:49) 
    [GCC 4.2.1 (Apple Inc. build 5646)] on darwin
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import difflib
    'import site' failed; use -v for traceback
    Error detected while processing function gundo#GundoToggle..<SNR>41_GundoToggle..<SNR>41_GundoOpen:
    line    6:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/Users/mario/projects/public/vim/vim/bundle/gundo/autoload/gundo.py", line 11, in <module>
        import difflib
    ImportError: No module named difflib
    line    7:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    "__Gundo_Preview__" [New File]
    Error detected while processing function gundo#GundoToggle..<SNR>41_GundoToggle..<SNR>41_GundoOpen..<SNR>41_GundoRenderGraph:
    line    4:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    NameError: name 'GundoRenderGraph' is not defined
    Error detected while processing function gundo#GundoToggle..<SNR>41_GundoToggle..<SNR>41_GundoOpen..<SNR>41_GundoRenderPreview:
    line    4:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    NameError: name 'GundoRenderPreview' is not defined

    HTH, Mario

  4. Log in to comment