[Qgis-developer] Deploying Python Plugins that require PostgreSQL
drivers
William Kyngesburye
woklist at kyngchaos.com
Fri Jan 30 10:27:42 EST 2009
Does anyone know if PyQt sees Qt plugins, or if some load function is
needed in Python code to use them?
On Jan 26, 2009, at 2:25 PM, William Kyngesburye wrote:
> Tom - do you know if PyQt uses the same qt.conf in the Qgis bundle
> that Qgis itself uses? Or is there a way in Python to set the
> plugin paths?
>
> On Jan 26, 2009, at 2:06 PM, Andreas Neumann wrote:
>
>> do you mean the binary of the QtSQL drivers? I took the QT 4.4.3
>> versions from Trolltech qt-mac-opensource
>>
>> I am sure it is a problem that python or pyqt4 doesn't find the
>> drivers - looking at the wrong place or some ldconfig not updated
>> (if something like this exists on the Mac).
>>
>> Thanks for your assistance!
>>
>> Andreas
>>
>> William Kyngesburye wrote:
>>> Can you provide a copy of the binary and/or source, so I can try
>>> it myself?
>>>
>>> On Jan 26, 2009, at 9:21 AM, Andreas Neumann wrote:
>>>
>>>> I have mixed results. I have 3 Macs at hand. On one Mac (Intel)
>>>> it works,
>>>> on the two others (Intel/PowerPC) it doesn't.
>>>>
>>>> The one Mac where it works has more dev-tools installed (the apple
>>>> dev-tools, psql, etc.) - the other two were it fails have not dev-
>>>> tools.
>>>>
>>>> Any other idea?
>>>>
>>>> Thanks,
>>>> Andreas
>>>>
>>>>
>>>>> Try copying the /Developer/Applications/Qt/plugins/sqldrivers
>>>>> folder
>>>>> into the Contents/plugins folder of one of the pre-built Qgis apps
>>>>> (next to the imageformats forlder that should already be there).
>>>>>
>>>>> This should enable the Qt sql drivers.
>>>>>
-----
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