actionshrimp / vim-xpath

XPath search plugin for Vim
48 stars 9 forks source link

Issue with python lxml dependency #6

Closed baseliners closed 11 years ago

baseliners commented 11 years ago

Thanks for developing this plugin - super useful! I've been using it for a while now. Just switched to a new Mac and ran into the error that python lxml is required.

I've installed python and lxml and can import lxml on the python console. However, when I do :python import lxml in MacVim, I get the following:

Traceback (most recent call last): File "", line 1, in ImportError: No module named lxml

I built lxml from source and it does have the lxml.etree.* files in the src/lxml folder of my build directory. I'm on OS X 10.8.4.

baseliners commented 11 years ago

This turned out to be a problem with MacVim itself not being linked to the Python libraries explicitly. I ended up compiling from source and specifying the Python libraries explicitly during configure. The following article was very helpful: http://tartley.com/?p=1355