Le 07/01/16 17:25, Pavel Cisar [email protected] [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).
------------------------------------
------------------------------------
------------------------------------
Yahoo Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/firebird-python/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/firebird-python/join
(Yahoo! ID required)
<*> To change settings via email:
[email protected]
[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo Groups is subject to:
https://info.yahoo.com/legal/us/yahoo/utos/terms/