Re: Installing support for python on windows - Mailing list pgsql-general

From novnov
Subject Re: Installing support for python on windows
Date
Msg-id 8116019.post@talk.nabble.com
Whole thread Raw
In response to Re: Installing support for python on windows  (Magnus Hagander <magnus@hagander.net>)
Responses Re: Installing support for python on windows
List pgsql-general
This is so much more difficult than I imagined it could be. I've added the
main python dir and the lib dir to my path and nothing has changed. I may be
able to figure out how to use the depends tool, so far it looks pretty
obscure to a newb.

This is all being done on a new workstation. It is a little puzzling that
straight up installs of postgres and python result in a config that doesn't
respond to the supposedly simple one line command to add python support.
I've read about this for hours and it does not normally appear to be a
problematic process.

Thanks to both of you for trying to help.


Magnus Hagander-2 wrote:
>
> novnov wrote:
>> Then I tried something like what Adrian had suggested:
>>
>> D:\postgresql\bin>createlang -U sauser -d mydb plpythonu
>> Password:
>> createlang: language installation failed: ERROR:  could not load library
>> "D:/pos
>> tgresql/lib/plpython.dll": The specified module could not be found.
>>
>> It's interesting that createlang knows to look in the peer lib directory
>> for
>> the language file but somehow does not like the plpython that it sees
>> there.
>> I also tried plpython (no trailing u) and had the same error as the
>> earlier
>> experiment.
>
> Most likely it's not finding the require python DLLs in the system PATH,
> just the plpython one. Make sure that your actual python directory is in
> the PATH, add it if not. If it is, use the "depends" tool (part of the
> support tools) to verify exactly what DLL it's not finding.
>
> //Magnus
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: explain analyze is your friend
>
>

--
View this message in context: http://www.nabble.com/Installing-support-for-python-on-windows-tf2902841.html#a8116019
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


pgsql-general by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: Installing support for python on windows
Next
From: Magnus Hagander
Date:
Subject: Re: Installing support for python on windows