orientechnologies / pyorient

OrientDB driver for Python that uses the binary protocol.
Apache License 2.0
119 stars 38 forks source link

Try to use pyorient driver with python 2.6.6. Get SyntaxError: invalid syntax. #23

Closed juriskrumins closed 7 years ago

juriskrumins commented 7 years ago
[root@host juriskr]# python --version
Python 2.6.6
[root@host juriskr]# cat o.py
import sys
sys.path.append("/home/juriskr/pyorient-1.4.5")
import pyorient
client = pyorient.OrientDB("localhost", 2424)
session_id = client.connect("root", "root")
[root@host juriskr]# python o.py
Traceback (most recent call last):
  File "o.py", line 3, in <module>
    import pyorient
  File "/home/juriskr/pyorient-1.4.5/pyorient/__init__.py", line 8, in <module>
    from .scripts import Scripts
  File "/home/juriskr/pyorient-1.4.5/pyorient/scripts.py", line 59
    args = {k:v for k,v in args.items() if k in param_defaults.keys()}
                  ^
SyntaxError: invalid syntax
[root@host juriskr]#
Ostico commented 7 years ago

Python 2.6 is not supported.