Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not compatible Python 3 syntax [PYFB61] #78

Closed
firebird-automations opened this issue Jan 11, 2016 · 2 comments
Closed

Not compatible Python 3 syntax [PYFB61] #78

firebird-automations opened this issue Jan 11, 2016 · 2 comments

Comments

@firebird-automations
Copy link

Submitted by: @pmakowski

Unfortunately , version 1.5, it's not Python 3 compatible :

+ /usr/bin/python3 http://setup.py build '--executable=/usr/bin/python3 -s'
Traceback (most recent call last):
File "http://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:

May be there is other place to check

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

Removed Syntax :

Removed <> (use != instead).

Commits: 5053509 FirebirdSQL/fbt-repository@cb8c943

@firebird-automations
Copy link
Author

Modified by: @pcisar

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 1.5.1 [ 10743 ]

@firebird-automations
Copy link
Author

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants