Thread: Cannot not create python language

Cannot not create python language

From
DavidW
Date:
When run create language plpythonu

Got  ERROR:  could not load library "E:/pgsql/lib/plpython.dll": The
specified module could not be found.



Tried the suggestion to copy lib/plpython.dll to lib/plpython3.dll and run
create language plpython3u, but still

got  ERROR:  could not load library "E:/pgsql/lib/plpython3.dll": The
specified module could not be found.

Re: Cannot not create python language

From
Craig Ringer
Date:
On 8/12/2010 2:03 PM, DavidW wrote:
> When run create language plpythonu
>
> Got ERROR: could not load library "E:/pgsql/lib/plpython.dll": The
> specified module could not be found.
>
> Tried the suggestion to copy lib/plpython.dll to lib/plpython3.dll and
> run create language plpython3u, but still
>
> got ERROR: could not load library "E:/pgsql/lib/plpython3.dll": The
> specified module could not be found.

It's a misleading error message. Windows says "the specified module
cannot be found" when a DLL that is required by a DLL you try to load
cannot be found. In this case, you probably don't have Python installed,
so plpython cannot load the Python DLL.

Check the release notes for your version of postgresql to find out which
version of Python you must install.

--
Craig Ringer

Tech-related writing at http://soapyfrogs.blogspot.com/