Skip to content

Using sqlalchemy-firebird with firebird-driver and PyInstaller #67

Discussion options

You must be logged in to vote

Answer

Be sure to manually register the dialect in your application. I used the following code right before I created my connection string, but since the non-frozen application doesn't actually need it, it probably doesn't matter as much where it goes. It just needs to be somewhere that PyInstaller will pick it up when it's freezing.

from sqlalchemy.dialects import registry

registry.register(
        "firebird",
        "sqlalchemy_firebird.firebird",
        "FBDialect_firebird"
        )
registry.register(
        "firebird.firebird",
        "sqlalchemy_firebird.firebird",
        "FBDialect_firebird",
        )

I also included the following hidden-imports for PyInstaller (in my case,…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by CatamountJack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant