Module not found on a virtualenv
Hi, I installed powerline on fedora 27 using the official repository packages. Installed powerline as the base package and vim-powerline which uses powerline.vim file to start powerline on vim. I am currently learning python and using virtualenvs for each project I work on. All was working well until I updated to fedora 28. After the update powerline still loads fine on vim while not activating a virtualenv. After activating one, I get an module "powerline" not found error when starting vim. It seems to try to find powerline on the virtualenv modules folder. I was able to find a workaround by adding the line on .vimrc:
python3 sys.path.append('/usr/lib/python3.6/site-packages/')To add system folder of python modules to sys.path Besides that line I only have those on .vimrc:
set laststatus=2
set showtabline=2
set noshowmode
set t_Co=256I also tried to uninstall the vim-powerline package and use this code to load powerline:
python3 from powerline.vim import setup as powerline_setup
python3 powerline_setup()
python3 del powerline_setupThe result is the same, it stops working when activating a virtualenv and give a module not found error. I just don't understand what happened after the update. Is specifically from the distro package or am I missing some configuration on .vimrc?
Thanks in advance!
Source: powerline/powerline