I can reproduce this - and demonstrate a fix - on a machine with apache2 and libapache2-mod-wsgi. See the attached archive; expand and run `make demo`.
** Attachment added: "Demonstration of bson bug and fix." https://bugs.launchpad.net/ubuntu/+source/pymongo/+bug/1237615/+attachment/3872869/+files/bsonbug.tar.gz -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1237615 Title: python-bson-ext does not encode binary in Apache with mod_wsgi To manage notifications about this bug go to: https://bugs.launchpad.net/maas/+bug/1237615/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs