I have a Text model;
class Text(db.Document):
siphash_value = db.LongField()
Then I use siphash lib for create a hash.(https://github.com/majek/pysiphash)
This lib converts string to long value like 12398370950267227270L
If I try save document to my db;
Text(siphash_value=12398370950267227270L).save()
I get this error:
OverflowError: MongoDB can only handle up to 8-byte ints
MongoDB only supports 64 bit integers (bson.spec) so pymongo can't convert the Long hence the error.