ArangoDB-Community / pyArango

Python Driver for ArangoDB with built-in validation
https://pyarango.readthedocs.io/en/latest/
Apache License 2.0
238 stars 90 forks source link

some examples do not work #178

Closed ObiWahn closed 4 years ago

ObiWahn commented 4 years ago
» python3 ./examples/createSocialGraph.py 
Traceback (most recent call last):
  File "./examples/createSocialGraph.py", line 61, in <module>
    Social()
  File "./examples/createSocialGraph.py", line 39, in __init__
    self.female   = self.db.createCollection('Collection', "female")
TypeError: createCollection() takes from 1 to 2 positional arguments but 3 were given
» python2 ./examples/debiangraph.py 
Traceback (most recent call last):
  File "./examples/debiangraph.py", line 144, in <module>
    for line in open('/tmp/allpackages', encoding='utf-8'):
TypeError: 'encoding' is an invalid keyword argument for this function

» python3 ./examples/debiangraph.py 
Traceback (most recent call last):
  File "./examples/debiangraph.py", line 144, in <module>
    for line in open('/tmp/allpackages', encoding='utf-8'):
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/allpackages'