Kodi Community Forum

Full Version: Help finding lxml module for xbmc
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
from lxml import etree

Can't seem to find the lxml module can someone point me in the right direction!

Getting this "Error Contents: No module named lxml"
You can't. Use xml.etree.ElementTree instead.
If you really need to use lxml for some reason, you would need to package it with your add-on and then import it from the custom location. Here's how you might structure things:
Code:
addon folder
  resources
    __init__.py (blank)
    lxml

then just use import resources.lxml.whatever
Openelec includes lxml, which imo has higher parsing performance then all other regex parsers