I can see the following in our build environment:
$ /usr/bin/python -c 'import sys; print sys.maxunicode' 1114111 $ which python /home/ubuntu/virtualenvs/venv-2.7.9/bin/python $ python -c 'import sys; print sys.maxunicode' 65535
This indicated that system python was compiled with UCS4 unicode, while pyenv python were compiled with the default UCS2. UCS2 & UCS4 are not ABI compatible and stuff breaks when trying to run python code with C libs that was compiled under the other version.
Most Linux distros compile python with UCS4 (Ubuntu/Fedora/etc).
Any help would be appreciated.