ERROR: could not import the "jedi" Python module: ImportError: bad magic number in 'jedi.common': b'\x03\xf3\r\n'
See original GitHub issueIssue
Getting this error on startup.
Jedi-vim debug information
jedi-vim version
- jedi-vim git version: 0.10.0-38-ga17b033-dirty
- jedi git submodule status: 3b7106ae71cb7bd3431101d169a0110ee0c179aa pythonx/jedi (v0.17.2)
- parso git submodule status: c864ca60d1a2f36524a4f79013a7de223e65e19d pythonx/parso (v0.6.0)
Global Python
Using Python version 3 to access Jedi.
- global sys.executable:
/Library/Frameworks/Python.framework/Versions/3.8/bin/python3
- global sys.version:
3.8.2 (v3.8.2:7b3ab5921f, Feb 24 2020, 17:52:18), [Clang 6.0 (clang-600.0.57)]
- global site module:
/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site.py
ERROR: could not import the “jedi” Python module: ImportError: bad magic number in ‘jedi.common’: b’\x03\xf3\r\n’
Traceback (most recent call last):
File “/Users/wviana/.vim/plugged/jedi-vim/pythonx/jedi_vim.py”, line 114, in <module>
import jedi
File “/Users/wviana/.vim/plugged/jedi-vim/pythonx/jedi/jedi/init.py”, line 32, in <module>
from jedi.api import Script, Interpreter, set_debug_function, \
File “/Users/wviana/.vim/plugged/jedi-vim/pythonx/jedi/jedi/api/init.py”, line 24, in <module>
from jedi.api import classes
File “/Users/wviana/.vim/plugged/jedi-vim/pythonx/jedi/jedi/api/classes.py”, line 24, in <module>
from jedi.inference.utils import unite
File “/Users/wviana/.vim/plugged/jedi-vim/pythonx/jedi/jedi/inference/init.py”, line 70, in <module>
from jedi.inference import imports
File “/Users/wviana/.vim/plugged/jedi-vim/pythonx/jedi/jedi/inference/imports.py”, line 24, in <module>
from jedi.inference import sys_path
File “/Users/wviana/.vim/plugged/jedi-vim/pythonx/jedi/jedi/inference/sys_path.py”, line 8, in <module>
from jedi.common import traverse_parents
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
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:7 (1 by maintainers)
Top Results From Across the Web
ImportError: bad magic number in 'time': b'\x03\xf3\r\n' in Django
The "magic number" in the error message is a version number for the bytecode stored, and specific Python versions only work with specific ......
Read more >bad magic number in 'math': b'\x03\xf3\r\n' (Example)
i got this error ImportError: bad magic number in 'math': b'\x03\xf3\r\n'. in this code. import math def split_check(total, ...
Read more >importerror: bad magic number in python ( Cause and Solution )
importerror : bad magic number error occurs mainly in random module python with Ubuntu operating system because of byte prefix in .pyc file....
Read more >Solved: Maya Plug-in import error - bad magic number
Maya Plug-in import error - bad magic number. Hi, recently I started to study animation, and I decided to use Riot Games assets(Link ......
Read more >Issue 46835: ImportError: bad magic number in ... does not ...
msg413788 ‑ (view) Author: Miro Hrončok (hroncok) * Date: 2022‑02‑23 12:43
msg413789 ‑ (view) Author: Miro Hrončok (hroncok) * Date: 2022‑02‑23 12:49
msg413815 ‑ (view)...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@davidhalter actually a bronken vim-jedi instalation. Removed and install jedi, got same error. Commented, PlugClean, Uncoment, PlugInstall Solved.
Thank you for the tip
cd ~/.vim/bundle/jedi-vim find -iname ‘*.pyc’ -exec rm {} ;
happy fun.