Connection using sqlalchemy and thin driver on M1 Mac #109
-
On an M1 Mac and seeing the following error during import of Flask app:
If I remove oracledb and leave just oracle in first part of string, I get similar error for cx_Oracle "dialect". This works fine on Windows 10. Due to issues with M1 chips, simply installing and importing cx_Oracle has not been a resolution for me. Also, app is running in container so it is ideal to use thin driver. I can provide more details if necessary; decided to come here first before opening issue after unsuccessful search for similar discussions. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Check https://levelup.gitconnected.com/using-python-oracledb-1-0-with-sqlalchemy-pandas-django-and-flask-5d84e910cb19 and https://medium.com/oracledevs/using-the-development-branch-of-sqlalchemy-2-0-with-python-oracledb-d6e89090899c If these don't help, post the exact versions of the modules you are using, and also a complete, runnable example. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Thanks @cjbj 👍 Adding the following was exactly what I needed:
Upgrading to sqlalchemy 2 is now on my to-do list. |
Beta Was this translation helpful? Give feedback.
Check https://levelup.gitconnected.com/using-python-oracledb-1-0-with-sqlalchemy-pandas-django-and-flask-5d84e910cb19 and https://medium.com/oracledevs/using-the-development-branch-of-sqlalchemy-2-0-with-python-oracledb-d6e89090899c
Also see the SQLAlchemy examples in https://github.com/cjbj/python-oracledb-demos-2022
If these don't help, post the exact versions of the modules you are using, and also a complete, runnable example. Thanks!