davidhalter / jedi-vim

Using the jedi autocompletion library for VIM.
MIT License
5.27k stars 370 forks source link

ERROR: could not import the "jedi" Python module: ImportError: bad magic number in 'jedi.common': b'\x03\xf3\r\n' #1026

Closed wviana closed 4 years ago

wviana commented 4 years ago

Issue

Getting this error on startup.

Jedi-vim debug information

jedi-vim version
Global Python

Using Python version 3 to access Jedi.

Settings
  omnifunc=python3complete#Complete                                                                                                                                                 
        Last set from /usr/local/Cellar/neovim/0.4.3/share/nvim/runtime/ftplugin/python.vim line 41                                                                                 
  completeopt=menuone,longest,preview                                                                                                                                               
        Last set from ~/.vim/plugged/jedi-vim/plugin/jedi.vim line 36                                                                                                               

Press ENTER or type command to continue

davidhalter commented 4 years ago

This is a broken jedi installation. Please remove it properly and reinstall it.

wviana commented 4 years ago

@davidhalter actually a bronken vim-jedi instalation. Removed and install jedi, got same error. Commented, PlugClean, Uncoment, PlugInstall Solved.

Thank you for the tip

linzhanyu commented 3 years ago

cd ~/.vim/bundle/jedi-vim find -iname '*.pyc' -exec rm {} \;

happy fun.

DeaDSouL commented 3 years ago

I had the same issue.

cd ~/.vim/bundle/jedi-vim find -iname '*.pyc' -exec rm {} ;

happy fun.

Thanks @linzhanyu

pogojotz commented 3 years ago

Thanks @linzhanyu Although I had to add a \ to make it work in a bash shell: find -iname '*.pyc' -exec rm {} \;

Otherwise I would get the error message: find: missing argument to -exec

solesprung commented 3 years ago

cd ~/.vim/bundle/jedi-vim find -iname '*.pyc' -exec rm {} ;

happy fun.

for some odd reason, when i type in the command i get this issue. please help !

find: illegal option -- i usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression] find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]

lokesh1729 commented 3 years ago

@dontepalmer i had the same issue and tried this command and it worked

find . -type f -iname '*.pyc' -exec rm {} \;