[Python] No suitable driver found for jdbc:oracle:thin... on Flask endpoint

Discussão em 'Python' iniciado por Stack, Abril 8, 2025.

  1. Stack

    Stack Membro Participativo

    I have some Flask web server connecting to a Oracle DB through a Python package wrapping around some Java code. I'm using a Oracle wallet to do so. If I connect from outside endpoints (for instance, in my main functions) everything works perfectly and I can connect to the DB. If I do it inside a Flask endpoint (so I guess outside from the main process) connection fails with

    RuntimeError: No suitable driver found for jdbc:eek:racle:thin:mad:...

    which is strange considering the env vars (including path) are all set correctly and the connection works perfectly outside of Flask endpoints and the wallet directory is accessible. I have no idea at this point what might be going wrong and looking for input.

    Thank you!

    Continue reading...

Compartilhe esta Página