from bson.objectid import ObjectId ,after importing this, I am getting the following error ImportError: No module named 'bson.objectid'. This works for me on windows but not on ubuntu ,for the pymongo version 3.5.1
Asked
Active
Viewed 714 times
0
-
Did you try reinstalling `pymongo==3.5.1`? – Oluwafemi Sule Mar 06 '18 at 11:59
-
yes already did that, two times. – Divyanshu Mar 07 '18 at 05:09
-
You may be having issues with your python installation. Are you running your script in a virtual environment? – Oluwafemi Sule Mar 08 '18 at 09:19