It should not be a kernel issue, could be the Python version you installed that is not compatible as it changes from OE1.6 and OE2.0 python versions (Showing the "Magic Number" error).

Admin

For XZ Support

Quote:
opkg update
opkg install python-pkgutil
opkg install xz
_________________________