Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
apache2_mod_wsgi and unicode byte representation #80
When trying to load a django project using Apache Mod_WSGI I get the following error:
The error is explained:
You are using a version of Python that uses a 4-byte representation for Unicode characters, but some C extension module you are importing was compiled using a Python that uses a 2-byte representation for Unicode characters (the default).
Note that loading the module manually works, so the error is directly related to the apache2_mod_wsgi installed using 'parts'. Would you guys be able to fix this or propose a workaround?
Here's a writeup of what I was doing: http://deeb.me/20140324/django-on-codio
default ubuntu python is compiled with 4 byte unicode, try to install python from parts
please confirm that it is working for you.