Quantcast
Viewing all articles
Browse latest Browse all 14011

why "bson" librarye dosen't work in jupyter notebook

I'm trying to read a bson file this is my code:

import bsonwith open("D:/rl env/chat_log.bson",'rb') as f:    datas = bson.decode_all(f.read())

note that "D:/rl env/chat_log.bson" is my file path.i got below error:

AttributeError: module 'bson' has no attribute 'decode_all'

I must mention that I didn't get any error when I ran this code in google colab.


Viewing all articles
Browse latest Browse all 14011

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>