Python memory error with f.read

Viewed 878

I have problem with memory in python "Python memory error". In fact , I try to recover data from a big .bson file using this script:

with open('xxxx.bson','rb') as f:
    data = bson.decode_all(f.read())

error message :

data = bson.decode_all(f.read())
MemoryError

thank you for any help you can provide

2 Answers
Related