Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Traceback (most recent call last):
- File ".\ec2_mongo.py", line 218, in <module>
- main()
- File ".\ec2_mongo.py", line 200, in main
- mongo_select_all()
- File ".\ec2_mongo.py", line 119, in mongo_select_all
- mydb, instance_col = set_db()
- File ".\ec2_mongo.py", line 55, in set_db
- mydb = myclient[choice]
- File "C:\Users\tdun0002\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pymongo\mongo_client.py", line 1566, in __getitem__
- return database.Database(self, name)
- File "C:\Users\tdun0002\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pymongo\database.py", line 107, in __init__
- raise TypeError("name must be an instance "
- TypeError: name must be an instance of str
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement