Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: The location of Firebird Client Library could not be determined. [PYFB47] #65

Closed
firebird-automations opened this issue Jan 28, 2015 · 4 comments

Comments

@firebird-automations
Copy link

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

@firebird-automations
Copy link
Author

Commented by: @pcisar

You're correct that this parameter should be present in connect and create_database. Change committed.

@firebird-automations
Copy link
Author

Modified by: @pcisar

status: Open [ 1 ] => Closed [ 6 ]

resolution: Fixed [ 1 ]

Fix Version: 1.4.4 [ 10665 ]

@firebird-automations
Copy link
Author

Commented by: Geovani de Souza (geovanisouza92)

Thank you Pavel!

Is this version published on PyPI?

@firebird-automations
Copy link
Author

Commented by: @pcisar

Not yet, but 1.4.4 should be released soon (early Feb).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants