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

PyODBC and iODBC on Linux #50

Closed
eduard93 opened this issue Mar 11, 2019 · 2 comments
Closed

PyODBC and iODBC on Linux #50

eduard93 opened this issue Mar 11, 2019 · 2 comments

Comments

@eduard93
Copy link
Contributor

We need to build PyODBC with iODBC support on Linux if we want to support ODBC.

mkleehammer/pyodbc#444

https://stackoverflow.com/questions/2960339/unable-to-install-pyodbc-on-linux

import pyodbc
cnxn=pyodbc.connect(('Driver=/usr/irissys/bin/libirisodbciw35.so;Server=localhost;Port=51773;Namespace=USER;UID=_SYSTEM;PWD=SYS;Authentication Method=0'),autocommit=True)
Data=pd.read_sql('SELECT * FROM isc_py_test.CannibalizationData',cnxn)
cnxn.close()
@eduard93
Copy link
Contributor Author

apt-get update && apt-get install -y g++ unixodbc-dev

@eduard93
Copy link
Contributor Author

This works:
cnxn=pyodbc.connect(('Driver=/usr/irissys/bin/libirisodbcu35.so;Server=localhost;Port=51773;database=USER;UID=_SYSTEM;PWD=SYS;Authentication Method=0'),autocommit=True)

eduard93 added a commit that referenced this issue Mar 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant