Subject Re: [firebird-python] FDB Python driver for Firebird v1.5 released
Author Philippe Makowski
Le 07/01/16 17:25, Pavel Cisar pcisar@... [firebird-python] a
écrit :
> FDB Python driver for Firebird v1.5 is available for download.
>

Unfortunatly, it's not Python 3 compatible :

+ /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s'
Traceback (most recent call last):
File "setup.py", line 7, in <module>
from fdb import __version__
File "/home/iurt/rpmbuild/BUILD/fdb-1.5/fdb/__init__.py", line 23, in
<module>
from fdb.fbcore import *
File "/home/iurt/rpmbuild/BUILD/fdb-1.5/fdb/fbcore.py", line 35, in
<module>
from . import schema
File "/home/iurt/rpmbuild/BUILD/fdb-1.5/fdb/schema.py", line 2524
if col.generator.inital_value <> 0:
^
SyntaxError: invalid syntax


we need to change :
if col.generator.inital_value <> 0:

for :
if col.generator.inital_value != 0:


cf :
https://docs.python.org/3/whatsnew/3.0.html#overview-of-syntax-changes

Removed Syntax :

Removed <> (use != instead).