You can find lxml in the lxml sub-directory of these zip files
LE 7.0
LE 7.90.001-008
LE 7.90.009
Thanks! Works like charm.
You can find lxml in the lxml sub-directory of these zip files
LE 7.0
LE 7.90.001-008
LE 7.90.009
Thanks! Works like charm.
Interesting. I have a PI 2 so if you have a compiled lxml package for it, it will be perfect
I'm struggling to build Python lxml package for Kodi. It includes 2 binary modules that need to be compiled for a target platform, in my case it's Raspberry PI 2. For compilation I use Raspbian Jessie. I have followed all instructions and built statically compiled modules. On Raspbian they are imported without issues, but when I try to use those modules on LibreElec, I get the following error:
23:56:44 54.904564 T:1593832352 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.ImportError'>
Error Contents: /storage/.kodi/addons/script.module.lxml/libs/lxml/platforms/pi_armv7l/etree.so: undefined symbol: PyFPE_jbuf
Traceback (most recent call last):
File "/storage/.kodi/addons/addon.tester/main.py", line 10, in <module>
from lxml import etree
File "/storage/.kodi/addons/script.module.lxml/libs/lxml/etree.py", line 12, in <module>
from platforms.pi_armv7l.etree import *
ImportError: /storage/.kodi/addons/script.module.lxml/libs/lxml/platforms/pi_armv7l/etree.so: undefined symbol: PyFPE_jbuf
-->End of Python script error report<--
Display More
Quick googling suggests that a probable cause may be Python version mismatch between Python used to build a binary module and Python used to import it, but there should not be any differences between 2.7.9 and 2.7.11. And, as I said, my modules are fully statically linked. ld shows no missing library dependencies.
My guess is that Python in LibreElec may be built with different configuration options than on Raspbian so the symbol in question is disabled. Or maybe there is another reason? Can anybody help me with this?
I developed this plugin a while ago: GitHub - romanvm/kodi.yatp: Torrent streaming video plugin for Kodi mediacenter. It's torrent player and a simple torrent client. Just to be clear: this plugin does not access any specific torrent sites, it works with existing .torrent files and magnet links. It's none of my business where you get them