Advertisement
bluethundr12

Untitled

Jul 15th, 2020
1,148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.71 KB | None | 0 0
  1. Traceback (most recent call last):
  2.   File ".\ec2_mongo.py", line 218, in <module>
  3.     main()
  4.   File ".\ec2_mongo.py", line 200, in main
  5.     mongo_select_all()
  6.   File ".\ec2_mongo.py", line 119, in mongo_select_all
  7.     mydb, instance_col = set_db()
  8.   File ".\ec2_mongo.py", line 55, in set_db
  9.     mydb = myclient[choice]
  10.   File "C:\Users\tdun0002\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pymongo\mongo_client.py", line 1566, in __getitem__
  11.     return database.Database(self, name)
  12.   File "C:\Users\tdun0002\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pymongo\database.py", line 107, in __init__
  13.     raise TypeError("name must be an instance "
  14. TypeError: name must be an instance of str
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement