vim-conda: Massive error log on startup

I am using Pathogen and Vim 7.4 (patch 1…1689) and Anaconda w/ Python 3. vim-conda 838f582cc0829b5b0ba5852fa2d103907faec486

$ vim --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jun 16 2016 10:50:38)
Included patches: 1-1689
Modified by pkg-vim-maintainers@lists.alioth.debian.org
Compiled by pkg-vim-maintainers@lists.alioth.debian.org
Huge version with GTK2 GUI.  Features included (+) or not (-):
+acl             +farsi           +mouse_netterm   +tag_binary
+arabic          +file_in_path    +mouse_sgr       +tag_old_static
+autocmd         +find_in_path    -mouse_sysmouse  -tag_any_white
+balloon_eval    +float           +mouse_urxvt     +tcl
+browse          +folding         +mouse_xterm     +terminfo
++builtin_terms  -footer          +multi_byte      +termresponse
+byte_offset     +fork()          +multi_lang      +textobjects
+channel         +gettext         -mzscheme        +timers
+cindent         -hangul_input    +netbeans_intg   +title
+clientserver    +iconv           +packages        +toolbar
+clipboard       +insert_expand   +path_extra      +user_commands
+cmdline_compl   +job             +perl            +vertsplit
+cmdline_hist    +jumplist        +persistent_undo +virtualedit
+cmdline_info    +keymap          +postscript      +visual
+comments        +langmap         +printer         +visualextra
+conceal         +libcall         +profile         +viminfo
+cryptv          +linebreak       -python          +vreplace
+cscope          +lispindent      +python3         +wildignore
+cursorbind      +listcmds        +quickfix        +wildmenu
+cursorshape     +localmap        +reltime         +windows
+dialog_con_gui  +lua             +rightleft       +writebackup
+diff            +menu            +ruby            +X11
+digraphs        +mksession       +scrollbind      -xfontset
+dnd             +modify_fname    +signs           +xim
-ebcdic          +mouse           +smartindent     +xsmp_interact
+emacs_tags      +mouseshape      +startuptime     +xterm_clipboard
+eval            +mouse_dec       +statusline      -xterm_save
+ex_extra        +mouse_gpm       -sun_workshop    +xpm
+extra_search    -mouse_jsbterm   +syntax          
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "$VIM/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2 -Wdate-time  -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1      
Linking: gcc   -L. -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-E  -Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o vim   -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE  -lm -ltinfo -lnsl  -lselinux  -lacl -lattr -lgpm -ldl  -L/usr/lib -llua5.2 -Wl,-E  -fstack-protector-strong -L/usr/local/lib  -L/usr/lib/x86_64-linux-gnu/perl/5.22/CORE -lperl -ldl -lm -lpthread -lcrypt  -L/usr/lib/python3.5/config-3.5m-x86_64-linux-gnu -lpython3.5m -lpthread -ldl -lutil -lm -L/usr/lib/x86_64-linux-gnu -ltcl8.6 -ldl -lz -lpthread -lieee -lm -lruby-2.3 -lpthread -lgmp -ldl -lcrypt -lm
hholst@fb-hholst3:~$ which python
/home/hholst/anaconda3/bin/python
hholst@fb-hholst3:~$ which python2
/usr/bin/python2
hholst@fb-hholst3:~$ which python3
/home/hholst/anaconda3/bin/python3
hholst@fb-hholst3:~$ python --version
Python 3.5.1 :: Anaconda custom (64-bit)
hholst@fb-hholst3:~$ 
E133: :return not inside a function
line   20:
E488: Trailing characters:         # Needed to avoid
line   21:
E488: Trailing characters:         # When launching gvim.exe from a CMD shell. (gvim from icon seems
line   22:
E488: Trailing characters:         # fine!?)
line   23:
E488: Trailing characters:         # See also: http://bugs.python.org/issue3905
line   24:
E488: Trailing characters:         # stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
line   25:
E492: Not an editor command:         stdin=PIPE, stderr=PIPE)
line   28:
E492: Not an editor command: def vim_conda_runpyshell(cmd):
line   29:
E133: :return not inside a function
line   30:
E492: Not an editor command:         executable=os.getenv('SHELL'),
line   31:
E492: Not an editor command:         stdin=PIPE, stderr=PIPE)
line   34:
E492: Not an editor command: def get_conda_info_dict():
line   36:
E492: Not an editor command:     {
line   42:
E492: Not an editor command:       ],
line   55:
E492: Not an editor command:       ],
line   58:
E492: Not an editor command:       ],
line   62:
E492: Not an editor command:       ],
line   71:
E492: Not an editor command:     }
line   73:
E492: Not an editor command:     output = vim_conda_runshell('conda info --json')
line   74:
E133: :return not inside a function
line   77:
E492: Not an editor command: def insert_system_py_sitepath():
line   79:
E492: Not an editor command:     embedded Python's sys.path. This is for Jedi-vim code completion. """
line   80:
E492: Not an editor command:     cmd = "import site, sys, os; sys.stdout.write(os.path.pathsep.join(site.getsitepackages()))"
line   81:
E33: No previous substitute regular expression
line   82:
E488: Trailing characters:     # The following causes errors. Jedi vim imports e.g. hashlib
line   83:
E488: Trailing characters:     # from the stdlib, but it we've added a different stdlib to the
line   84:
E488: Trailing characters:     # embedded sys.path, jedi loads the wrong one, causing errs.
line   85:
E488: Trailing characters:     # Looks like we should only load site-packages.
line   86:
E488: Trailing characters:     # if len(sitedirs) > 0:
line   87:
E488: Trailing characters:     #     libdir = os.path.dirname(sitedirs[0])
line   88:
E488: Trailing characters:     #     if libdir not in sys.path:
line   89:
E488: Trailing characters:     #         sys.path.insert(0, libdir)
line   90:
E121: Undefined variable: sitedirs
E15: Invalid expression: sitedirs:
line  420:
E171: Missing :endif
Press ENTER or type command to continue

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 21 (14 by maintainers)

Commits related to this issue

Most upvoted comments

@cjrh The code is not Python 2 and Python 3 compatible. This is, however, easy to fix and test. Several other vim plugins have tackled this issue. Do you have any experience with using vim-conda with YouCompleteMe? It uses a Jedi-based completion engine for Python 2 and 3 (using the JediHTTP wrapper) or can I only use jedi-vim? I will submit a pull request but need to test the plugin a bit with vim-ipython and YouCompleteMe and / or jedi-vim .