[Qgis-developer] Deploying Python Plugins that require PostgreSQL
drivers
William Kyngesburye
woklist at kyngchaos.com
Thu Jan 22 12:25:41 EST 2009
On Jan 22, 2009, at 10:24 AM, Andreas Neumann wrote:
> Hi all,
>
> I wrote a Python plugin that uses the QSqlDatabase object with
> PostgreSQL.
> While the deployment works fine on Linux and Windows, I get an error
> message on Mac OS X with an error message "Driver not loaded".
>
> I am wondering if there are binary frameworks for the PostgreSQL
> driver
> that can be used with Postgresql and QT - I would like to avoid
> having to
> install a development environment on each Mac OS X client where I
> have to
> install the QGIS plugin.
>
> Anyone knows if such binary drivers for OSX exist and where I could
> get
> them? How do others deploy such plugins that need PostgreSQL a
> connection?
>
> The interesting thing is that the Postgresql connection seems to work
> already in QGIS (for loading spatial tables), it just doesn't work
> with my
> own plugin.
>
Are you using prebuilt Qgis binaries? (mine or Tom's all-in-one) Both
have libpq bundled in the package, and Qgis handles postgres on its
own, as far as I know, not with the Qt database driver. Neither
binary distribution includes the Qt postgres plugin.
-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/
Theory of the Universe
There is a theory which states that if ever anyone discovers exactly
what the universe is for and why it is here, it will instantly
disappear and be replaced by something even more bizarrely
inexplicable. There is another theory which states that this has
already happened.
-Hitchhiker's Guide to the Galaxy 2nd season intro
More information about the Qgis-developer
mailing list