KeyError: 'collections'
See original GitHub issueHello, I use ArangoDB 3.0.0 [linux] 64bit. And it is first day.
When I tried it, I have a error ‘KeyError’.
a = Arango(host="localhost", port=8529, username='root', password='password')
a.create_database("test")
my_db = a.db("test")
my_db.collections
/lib/python2.7/site-packages/arango/database.pyc in collections(self)
232 user_collections = []
233 system_collections = []
–> 234 for collection in res.body[“collections”]:
235 if collection[“isSystem”]:
236 system_collections.append(collection[“name”])
KeyError: ‘collections’
Do you have any idea?
Issue Analytics
- State:
- Created 7 years ago
- Comments:5
Top Results From Across the Web
How to Fix KeyError Exceptions in Python - Rollbar
The Python KeyError is an exception that occurs when an attempt is made to access an item in a dictionary that does not...
Read more >KeyError: 'collections' - ArangoDB-Community/python-arango
Hello, everytime i try to use collection i get the error "KeyError: 'collections'" i.e: delete a collection Traceback (most recent call ...
Read more >Key Error in accessing collections from MongoDB (PyMongo)
KeyError generally means the key doesn't exist in the dictionary collection. For example : >>> mydoc1=dict(url='xxx.com', location='oregon') ...
Read more >Python KeyError Exceptions and How to Handle Them
In this tutorial, you'll learn how to handle Python KeyError exceptions. They are often caused by a bad key lookup in a dictionary,...
Read more >KeyError : 'the label [ANGI V1OBWK1IM6HX] is not in the [index]'
I am getting this error when I backtest:Runtime Error: Trying to retrieve an element from a collection using a key that does not...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi koorukuroo,
It is because the driver is not compatible with ArangoDB 3.0.0. I’m working very hard to release python-arango 3.0.0 which will be compatible with the latest version of ArangoDB. Thanks for the patience!
Hi Brian,
There’s been a quite a delay but python-arango 3 is finally released! Please try it out and let me know how it is. I’ve also included the link to the full documentation in the README.rst.
Thanks!