Re: [ADMIN] Python UCS4 error
От | c k |
---|---|
Тема | Re: [ADMIN] Python UCS4 error |
Дата | |
Msg-id | CAN2Y=uO-NHx0NbpwdGxkhHvfawOCcESH-Vnkem+i5+HCRsg-=A@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: [ADMIN] Python UCS4 error (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: [ADMIN] Python UCS4 error
|
Список | pgsql-general |
I have default python 2.7.1 installed along with fedora15. Then installed postgresql from binary installers. This creates the plpython.so, plpython2.so and plpython3.so in lib/postgresql directory under postgresql installation. When I go for creating a new language plpython, it gives me some error regarding pythonś version. By default it is compiled with 2.6 and I have 2.7, so I need to get source code and compile it against python 2.7. For this I will configure --with-python option and see which python it uses and where it is located. For me it used python 2.7 and shown the python default installation. Then I used ´make' and ´make install world´ and copied plpython.so and plpython2.so to new postgresql installation. Started the server and try to create new language, then the earlier mentioned error comes as
undefined symbol: PyUnicodeUCS4_AsEncodedString.
Previously It was working on fedora 14 . It seems that I have to recompile and install python 2.7 at another location and use it for postgresql make process. But not sure that it will solve error.
Thanks and regards,
C P Kulkarni
undefined symbol: PyUnicodeUCS4_AsEncodedString.
Previously It was working on fedora 14 . It seems that I have to recompile and install python 2.7 at another location and use it for postgresql make process. But not sure that it will solve error.
Thanks and regards,
C P Kulkarni
On Wed, Jul 6, 2011 at 12:24 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
c k <shreeseva.learning@gmail.com> writes:plpython seems to work for me on Fedora 15, so you're going to need to
> I updated my development machine with Fedora 15 and as there is python 2.7.
> I have also migrated my few postgresql databases. While creating plpython in
> one database, I got the following error undefined symbol
> PyUnicodeUCS4_AsEncodedString.
> Then I recompiled source code and got a plpython.so compiled for python 2.7
> (default python comes with fedora15) and replaced original with this one.
> Restarted postgresql and still same error occurs.
be more specific about how to trigger this error.
regards, tom lane
В списке pgsql-general по дате отправления: