You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to deploy a Django project that uses django-firebird app, that uses fdb.
I'm deploying on http://flynn.io/, an alternative to heroku, using heroku-buildpack-multi, because I need to install libfbclient2 to enable fdb.
The problem is that heroku-buildpack-apt that I use to install libfbclient2 puts the lib on "/app/.apt/usr/lib/x86_64-linux-gnu" and add this folder to LD_LIBRARY_PATH, but the class "fdb.ibase.fbclient_API" doesn't reach the fbclient lib, because "ctypes.util.find_library" is unable to read alternative folder from LD_LIBRARY_PATH, for example (http://bugs.python.org/issue2936).
Reading the source, I saw that "fdb.ibase.fbclient_API.__init__()" accepts a parameter "fb_library_name". This is passed from "fbcore.load_apit()" that is called from "fbcore.connect()" and "fbcore.create_database()", but the last two doesn't uses this parameter.
My suggestion is to add the "fb_library_name" to "fbcore.connect()" and "fbcore.create_database()" passing it to "fbcore.load_api()".
This way, I can set "settings.DATABASES['myfbdb']['OPTIONS']['fb_library_name']" on my Django project settings, that is passed through django-firebird to fb ("fbcore.connect()" to be specific).
Submitted by: Geovani de Souza (geovanisouza92)
Hello guys,
I'm trying to deploy a Django project that uses django-firebird app, that uses fdb.
I'm deploying on http://flynn.io/, an alternative to heroku, using heroku-buildpack-multi, because I need to install libfbclient2 to enable fdb.
The problem is that heroku-buildpack-apt that I use to install libfbclient2 puts the lib on "/app/.apt/usr/lib/x86_64-linux-gnu" and add this folder to LD_LIBRARY_PATH, but the class "fdb.ibase.fbclient_API" doesn't reach the fbclient lib, because "ctypes.util.find_library" is unable to read alternative folder from LD_LIBRARY_PATH, for example (http://bugs.python.org/issue2936).
Reading the source, I saw that "fdb.ibase.fbclient_API.__init__()" accepts a parameter "fb_library_name". This is passed from "fbcore.load_apit()" that is called from "fbcore.connect()" and "fbcore.create_database()", but the last two doesn't uses this parameter.
My suggestion is to add the "fb_library_name" to "fbcore.connect()" and "fbcore.create_database()" passing it to "fbcore.load_api()".
This way, I can set "settings.DATABASES['myfbdb']['OPTIONS']['fb_library_name']" on my Django project settings, that is passed through django-firebird to fb ("fbcore.connect()" to be specific).
Commits: 4bfa810 FirebirdSQL/fbt-repository@cd987ae
The text was updated successfully, but these errors were encountered: