[Python] Does the oracle driver for python really require libraries from the native client?

Discussão em 'Python' iniciado por Stack, Março 25, 2025.

  1. Stack

    Stack Membro Participativo

    I am writing some Python code and pulling in the

    cx-oracle = "^8.3.0"


    library with poetry. However, in order to make this work I actually have to initialize it with a directory where it can find the native libraries. Specifically, the Oracle documentation calls out that this needs the libraries for the quick client.

    But, this is entirely non-portable. I want a project/bundle where when I type:

    poetry install


    Everything I need to run is installed into the virtual environment, an no extra configuration is required.

    What I can do to get around this (and I don't want to) is actually put the libraries into a dedicated directory in source control and initialize it from there. But checking in binary dependencies into source has a very bad smell.

    So, am I missing something, or do I really need to do this? I could see Oracle forcing this for licensing reasons.

    Continue reading...

Compartilhe esta Página