iheanyi / ibm-db

Automatically exported from code.google.com/p/ibm-db
0 stars 0 forks source link

ibm_db_sa - Fails on Python 3 #154

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Issue a create_engine() using "db+pyodbc400" dialect.

What is the expected output? What do you see instead?

Expecting return of engine using pyodbc, but fails on Python 3.

error in base.py:
  File "C:\Python34\lib\site-packages\ibm_db_sa\base.py", line 35, in <listcomp>
    SA_Version = [long(ver_token) for ver_token in SA_Version.split('.')[0:2]]
NameError: name 'long' is not defined
shell returned 1

What version of the product are you using? On what operating system?
Windows 7, Python 3.4 (32bit), SQLAlchemy 0.9.4, ibm_db_sa 0.3.1

Please provide any additional information below.

It appears that it has not been ported for Python 3, are there plans to support 
Python 3?

Original issue reported on code.google.com by cory.lut...@gmail.com on 11 Jun 2014 at 9:11