Accessing Windows located Firebird Database from Docker contained Django App

1.1k Views Asked by At

I am trying to access Firebird Database files located in C:/ drive from Docker Contained Django Application.

I am using Python fdb package for accessing this.

self.conn = fdb.connect(   host='192.168.0.108', port=3050, database='/FIREBIRD_DB/TEST.FDB', user=usr, password=pswd)

It generates error:

Exception: The location of Firebird Client Library could not be determined.

How can I access the machine's Firebird Database from Docker Contained Django app?

1

There are 1 best solutions below

0
On BEST ANSWER

You have to:

  1. install and run Firebird Server on the machine with DB file, and

  2. install client libraries of Firebird (fbclient.dll on Windows, probably lib_fbclient.so on Linux, etc) with the CPU architecture same as CPU architecture of your Python.exe on the machine running Django in Python, and

  3. make sure your Python can find those libraries (%PATH% environment variable in Windows, LD configuration in Linux, etc).

Read "Client Installation" chapter in Quick Start guide at http://firebirdsql.org/en/server-packages