simnalamburt / vim-mundo

:christmas_tree: Vim undo tree visualizer

Home Page:https://simnalamburt.github.io/vim-mundo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MundoOpen, NameError: name 'initPythonModule' is not defined

alexebird opened this issue · comments

Hi,

First of all, thanks for your work on this project.

I'm getting an error in MundoOpen:

Error detected while processing function mundo#MundoToggle[1]..<SNR>147_MundoToggle[7]..<SNR>147_MundoOpen[4]..provider#python3#Call:
line   18:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: name 'initPythonModule' is not defined

echo has('python') and echo has('python3') are both 1.

Here's my py3 print(sys.path):

['/usr/lib/python35.zip', '/usr/lib/python3.5', '/usr/lib/python3.5/plat-x86_64-linux-gnu', '/usr/lib/python3.5/lib-dynload', '/home/bird/.local/lib/python3.5/site-packages', '/usr/local/lib
/python3.5/dist-packages', '/usr/lib/python3/dist-packages', '_vim_path_']

I have also installed neovim with pip and pip3. I'm using neovim built from source, installing mundo via vundle.

$ vim -v
NVIM v0.2.1-144-g031756c
Build type: RelWithDebInfo
Compilation: /usr/bin/cc -Wconversion -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_MSGPACK_HAS_FLOAT32 -O2 -g -DDISABLE_LOG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -I/home/bird/clones/neovim/build/config -I/home/bird/clones/neovim/src -I/home/bird/clones/neovim/.deps/usr/include -I/home/bird/clones/neovim/.deps/usr/include -I/home/bird/clones/neovim/.deps/usr/include -I/home/bird/clones/neovim/.deps/usr/include -I/home/bird/clones/neovim/.deps/usr/include -I/home/bird/clones/neovim/.deps/usr/include -I/usr/include -I/home/bird/clones/neovim/build/src/nvim/auto -I/home/bird/clones/neovim/build/include
Compiled by bird@bird-t460s

Optional features included (+) or not (-): +acl   +iconv    +jemalloc +tui      
For differences from Vim, see :help vim-differences

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/share/nvim"

Strangely, Mundo still seems to work fine after this error.

I'm happy to provide any additional info.

Thanks so much!
-Alex

Hi Alex, I'll take a look. Thanks for the thorough posting.

@simnalamburt could you PR the above fix? Thanks!

I'm closing this issue since #60 was merged. Please poke me if this issue sill occurs.