Re: 2.4.2: undefined symbol: lo_truncate

Поиск
Список
Период
Сортировка
От Daniele Varrazzo
Тема Re: 2.4.2: undefined symbol: lo_truncate
Дата
Msg-id CA+mi_8bppYAQ8GwGouqom94wX1TF+7eUKyeRJ1irnF59iRuxaQ@mail.gmail.com
обсуждение исходный текст
Ответ на 2.4.2: undefined symbol: lo_truncate  (Matthew Robinson <matthew.robinson@umassd.edu>)
Список psycopg
On Thu, Oct 6, 2011 at 3:33 PM, Matthew Robinson
<matthew.robinson@umassd.edu> wrote:
> Warning, a python neophyte here so I am more than likely missing something.
>
> I'm trying to use 2.4.2 (and also tried 2.4.1 with same error, 2.4.0 with a
> different error...) under Ubuntu with the intention of trying out
> ReviewBoard.
>
> launching python and attempting to import psycopg2 yields:
> --------
>>>> import psycopg2
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/usr/local/lib/python2.6/
> dist-packages/psycopg2/__init__.py", line 67, in <module>
>     from psycopg2._psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
> ImportError: /usr/local/lib/python2.6/dist-packages/psycopg2/_psycopg.so:
> undefined symbol: lo_truncate

lo_truncate is available after postgres 8.3. Psycopg is being compiled
again libpq 8.4, so the function is included. Looks like at runtime it
tries to dynamically link with an older libpq: you can check with ldd
which one.

-- Daniele

В списке psycopg по дате отправления:

Предыдущее
От: Matthew Robinson
Дата:
Сообщение: 2.4.2: undefined symbol: lo_truncate
Следующее
От: Håvard Wahl Kongsgård
Дата:
Сообщение: Iterating through cur and cur.fetchone()