Today I encountered a problem about vim:
vim: symbol lookup error: vim: undefined symbol: PyUnicodeUCS4_AsEncodedString
I didn't install any vim plugins. But I installed some Python projects(Nginx, uwsgi). Seemingly after these installations, vim crushed.
Any clues?
I have encountered the same problem. Here is my solution.
Type in terminal
ldd /usr/bin/vim
it showed that the python lib pointing to a location customized by me.
libpython2.7.so.1.0 => /home/ql/software/vtk/vtkpython-7.0.0-Linux-64bit/lib/libpython2.7.so.1.0 (0x00007f303b99c000)
I opened my .bashrc, finding something related to the above line:
export LD_LIBRARY_PATH=/home/ql/software/vtk/vtkpython-7.0.0-Linux-64bit/lib:$LD_LIBRARY_PATH
Then I commented the above line out.
Open a new terminal and type again:
ldd /usr/bin/vim
It can be noticed that the python lib points to some location other than that in the previous result:
libpython2.7.so.1.0 => /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0 (0x00007f1ed4a36000)
Now vim runs.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With