{"id":179,"date":"2020-05-08T21:25:34","date_gmt":"2020-05-08T19:25:34","guid":{"rendered":"https:\/\/camilomatajira.wordpress.com\/?p=179"},"modified":"2025-06-10T18:35:50","modified_gmt":"2025-06-10T18:35:50","slug":"upgrading-to-ubuntu-20-04-broke-my-vim-youcompleteme","status":"publish","type":"post","link":"https:\/\/camilo.matajira.com\/?p=179","title":{"rendered":"Upgrading to Ubuntu 20.04 broke my Vim YouCompleteMe"},"content":{"rendered":"<p>YCM ceased working after Ubuntu upgrade.To make it work again, you need to use the vim-youcompleteme that comes from the apt repository and not the one from other plugin managers like VimPlug.<\/p>\n<p>Here the error message that I got:<\/p>\n<p>ycm ImportError: Python version mismatch: module was compiled for Python 3.6, but the interpreter version is incompatible: 3.8.2 (default, Feb 26 2020, 02:56:10) [GCC 7.4.0]<\/p>\n<h1>I solved the problem following the next steps:<\/h1>\n<ol>\n<li>Given that I use VimPlug, delete youcompleteme from my .vimrc.<\/li>\n<li>Open Vim and run :PlugClean<\/li>\n<li>sudo apt update<\/li>\n<li>sudo apt-get install vim-youcompleteme<\/li>\n<li>vim-addon-manager install youcompleteme<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>YCM ceased working after Ubuntu upgrade.To make it work again, you need to use the vim-youcompleteme that comes from the apt repository and not the one from other plugin managers like VimPlug. Here the error message that I got: ycm ImportError: Python version mismatch: module was compiled for Python 3.6, but the interpreter version is&#8230;<\/p>\n","protected":false},"author":2,"featured_media":208,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[26,43,73,76,77,80],"class_list":["post-179","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debugging","tag-debugging","tag-linux","tag-ubuntu","tag-vim","tag-vimplug","tag-youcompleteme"],"_links":{"self":[{"href":"https:\/\/camilo.matajira.com\/index.php?rest_route=\/wp\/v2\/posts\/179","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/camilo.matajira.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/camilo.matajira.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/camilo.matajira.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/camilo.matajira.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=179"}],"version-history":[{"count":1,"href":"https:\/\/camilo.matajira.com\/index.php?rest_route=\/wp\/v2\/posts\/179\/revisions"}],"predecessor-version":[{"id":535,"href":"https:\/\/camilo.matajira.com\/index.php?rest_route=\/wp\/v2\/posts\/179\/revisions\/535"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/camilo.matajira.com\/index.php?rest_route=\/wp\/v2\/media\/208"}],"wp:attachment":[{"href":"https:\/\/camilo.matajira.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/camilo.matajira.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/camilo.matajira.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}