create language 'plpythonu' on win failed

Started by MICHÁLEK Jan Mgr.over 15 years ago6 messagesgeneral
Jump to latest
#1MICHÁLEK Jan Mgr.
Michalek.Jan@uhul.cz

I can't solve problem with creating language python in my POSTGRESQL (9.0)
-------------------------------------------------------------
create language 'plpythonu'

ERROR: could not load library "C:/Program Files/PostgreSQL/9.0/lib/plpython.dll": unknown error 126
--------------------------------------------------------------------------------------

I used dependency walker for finding problem and i find, that plpythonu.dll need python26.dll (i have instaled python 27 on my PC).
I try install python 26 to folder with postgresql, but there is the same problem.

Is there somebody who is able to create python lang in postgresql on win??

I used google, but i can't find any advice solving my problem.

Thanks Je.

In reply to: MICHÁLEK Jan Mgr. (#1)
Re: create language 'plpythonu' on win failed

Just use the python 2.6 installer for windows.

--
Regards,
Peter Geoghegan

#3MICHÁLEK Jan Mgr.
Michalek.Jan@uhul.cz
In reply to: Peter Geoghegan (#2)
Re: create language 'plpythonu' on win failed

I try instal python 26, but without changes...

ERROR: could not load library "C:/Program Files/PostgreSQL/9.0/lib/plpython.dll": unknown error 126

-----Original Message-----
From: Peter Geoghegan [mailto:peter.geoghegan86@gmail.com]
Sent: Tuesday, December 14, 2010 12:40 PM
To: MICHÁLEK Jan Mgr.
Cc: pgsql-general@postgresql.org
Subject: Re: [GENERAL] create language 'plpythonu' on win failed

Just use the python 2.6 installer for windows.

--
Regards,
Peter Geoghegan

__________ Informace od ESET NOD32 Antivirus, verze databaze 5700 (20101213) __________

Tuto zpravu proveril ESET NOD32 Antivirus.

http://www.eset.cz

__________ Informace od ESET NOD32 Antivirus, verze databaze 5700 (20101213) __________

Tuto zpravu proveril ESET NOD32 Antivirus.

http://www.eset.cz

#4Adrian Klaver
adrian.klaver@aklaver.com
In reply to: MICHÁLEK Jan Mgr. (#3)
Re: create language 'plpythonu' on win failed

On Tuesday 14 December 2010 4:28:28 am MICHÁLEK Jan Mgr. wrote:

I try instal python 26, but without changes...

ERROR: could not load library "C:/Program
Files/PostgreSQL/9.0/lib/plpython.dll": unknown error 126

Are the permissions correct?

--
Adrian Klaver
adrian.klaver@gmail.com

#5MICHÁLEK Jan Mgr.
Michalek.Jan@uhul.cz
In reply to: Adrian Klaver (#4)
Re: create language 'plpythonu' on win failed

I'm superuser. I have the same problem on both mz computers, on PC with win xp and on ntb with win 7. Both postgresql is 9.0 and on both I have python 27.

Je.
-----Original Message-----
From: Adrian Klaver [mailto:adrian.klaver@gmail.com]
Sent: Tuesday, December 14, 2010 4:09 PM
To: pgsql-general@postgresql.org
Cc: MICHÁLEK Jan Mgr.
Subject: Re: [GENERAL] create language 'plpythonu' on win failed

On Tuesday 14 December 2010 4:28:28 am MICHÁLEK Jan Mgr. wrote:

I try instal python 26, but without changes...

ERROR: could not load library "C:/Program
Files/PostgreSQL/9.0/lib/plpython.dll": unknown error 126

Are the permissions correct?

--
Adrian Klaver
adrian.klaver@gmail.com

__________ Informace od ESET NOD32 Antivirus, verze databaze 5700 (20101213) __________

Tuto zpravu proveril ESET NOD32 Antivirus.

http://www.eset.cz

__________ Informace od ESET NOD32 Antivirus, verze databaze 5700 (20101213) __________

Tuto zpravu proveril ESET NOD32 Antivirus.

http://www.eset.cz

#6Adrian Klaver
adrian.klaver@aklaver.com
In reply to: MICHÁLEK Jan Mgr. (#5)
Re: create language 'plpythonu' on win failed

On Tuesday 14 December 2010 10:39:35 pm MICHÁLEK Jan Mgr. wrote:

I'm superuser. I have the same problem on both mz computers, on PC with win
xp and on ntb with win 7. Both postgresql is 9.0 and on both I have python
27.

Sorry I was not more explicit. Are the permissions on the directory/file below
correct for the Postgres program/user?

C:/ProgramFiles/PostgreSQL/9.0/lib/plpython.dll

--
Adrian Klaver
adrian.klaver@gmail.com