Search code examples
pythonpython-2.7openwrttwisted.internet

unicodedata is not found


I'm trying to install Twisted on a small board running a version of OpenWRT (chaos calmer). I'm running it step by step so I could track and install the missing packages on the device. Last error was:

ImportError: No module named unicodedata

I have installed all the packages offered for python by the vendor, tried find and grep in my Desktop's /usr/lib/python2.7/ also tried

python -v

on my desktop to find the module but haven't been able to locate it. Seems like it's an internal package. How can I install unicodedata on the device?


Solution

  • The file unicodedata.so is provided in the python-codecs package. A x86_64 version is available so presumably it's also available for other architectures.

    You should be able to determine that with:

    $ opkg search '*/unicodedata.so'
    

    or possibly

    $ opkg whatprovides '*/unicodedata.so'