Bug reference: 5641
Logged by: Ron Park
Email address: rpa...@gmail.com
PostgreSQL version: 9.0
Operating system: Windows 7 professional 64 bit
Description: Can not create any python language
Details:
when trying to create plpythonu
ERROR: could not find function "plpython_call_handler" in file "C:/Program
Files/PostgreSQL/9.0/lib/plpython.dll"
when trying to create plpython2u or plpython3u I get
ERROR: could not access file "$libdir/plpython2": No such file or
directory
ERROR: could not access file "$libdir/plpython3": No such file or
directory
I have python2.6, python3.1, python3.2 all installed (64 bit). All are in
the path variable.
used 9.0 MSI from enterprise to install postgresql 9.0
I have been running and using the 8.xx ones on windows 32 bit and ubuntu for
6 years and have been able to get python to behave well on both systems.
But I am at a loss here.. Looks like there is a bug in the plpython.dll
missing the call handler??? Not sure
--
Sent via pgsql-bugs mailing list (pgsql...@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
I'm facing the same issue in the same environment and the solution given by
Ashesh Vashi is not working. :(
Once I have copied plpython.dll as plpython3.dll, I still can't create the
language plpython3u for a database.
Is there another work around?
Thanks,
Alban.
--
View this message in context: http://postgresql.1045698.n5.nabble.com/BUG-5641-Can-not-create-any-python-language-tp2801518p3330444.html
Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.
--
Thanks & Regards,
Ashesh Vashi
I guess the obvious question is - what happens when you try it?
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
--
Thanks & Regards,
Ashesh Vashi
I used dependency walker in order to see which dependencies could be
unsatified in plpython.dll and indeed some of them were missing :
- python26.dll (I had python2.7 installed but obviously it requires 2.6.)
- some .dll that are in the bin folder of posgreSQL
So I installed python 2.6 and copy/paste the other missing dlls
In the end, when I use dependency walker, plpython.dll still have a warning
:
"Warning: At least one module has an unresolved import due to a missing
export function in a delay-load dependent module."
Here is a screen shot of the result in dependency walker :
http://postgresql.1045698.n5.nabble.com/file/n3330551/depWalker.png
depWalker.png
I still can't create the language.
Thanks,
Alban.
--
View this message in context: http://postgresql.1045698.n5.nabble.com/BUG-5641-Can-not-create-any-python-language-tp2801518p3330551.html
Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.
--
--
This warning will be there for any dlls.
So - you can ignore them.
If you have renamed the plpython.dll to plpython3.dll, then please revert it back to original one.
And, then try to create the language.
Anyways, now I have deleted plpython3.dll (so I just have plpython.dll) and
"create language plpython;" answers : ERREUR: n'a pas pu charger la
bibliothèque « C:/Program Files/PostgreSQL/9.0/lib/plpython.dll » : unknown
error 126 which means "can't load C:/Program
Files/PostgreSQL/9.0/lib/plpython.dll"
Thanks for your time,
Alban.
--
View this message in context: http://postgresql.1045698.n5.nabble.com/BUG-5641-Can-not-create-any-python-language-tp2801518p3330575.html
Thanks for your time, your understandable explanations!
Alban,
--
View this message in context: http://postgresql.1045698.n5.nabble.com/BUG-5641-Can-not-create-any-python-language-tp2801518p3330632.html