joonty / vim-phpqa

PHP QA tools for Vim
http://www.joncairns.com
MIT License
290 stars 32 forks source link

ImportError: No module named libxml2 #35

Closed codeinabox closed 9 years ago

codeinabox commented 9 years ago

When I try running Phpcc I get the following error

Error detected while processing function Phpqa#PhpCodeCoverage..AddCodeCoverageSigns: line 73: Traceback (most recent call last): File "", line 1, in ImportError: No module named libxml2

joonty commented 9 years ago

Hi @codeinabox, libxml2 is required for the python code coverage script. What OS are you using?

codeinabox commented 9 years ago

I am using 10.9.5 though right now I am having trouble reinstalling and using the plugin. Even though I've installed using Vundle none of the commands work.

joonty commented 9 years ago

@codeinabox you might like to try again - there was a recent issue that's just been fixed in a PR.

To get libxml2 with python, try one of the answers from here.

joonty commented 9 years ago

I've decided that I'm not going to change anything with this error message, as it's serving the right purpose. The fix is an environmental one, as libxml2 is required for parsing the XML.

Thanks