diff options
| author | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2012-03-09 12:11:28 +0000 |
|---|---|---|
| committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2012-03-09 16:55:02 +0000 |
| commit | 5473d50a09c8409ac5128735ccaaa24d3f817135 (patch) | |
| tree | f6386adf1411033ad5fc2ed4670f61e37ceeadb4 /doc/src/faq.rst | |
| parent | 550130b19ed692dd7660d2bc416d6e3a6c70b090 (diff) | |
| download | psycopg2-5473d50a09c8409ac5128735ccaaa24d3f817135.tar.gz | |
Added more information about the case of the missing lo_truncate
After some ML message and ticket #104.
Diffstat (limited to 'doc/src/faq.rst')
| -rw-r--r-- | doc/src/faq.rst | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/src/faq.rst b/doc/src/faq.rst index fbf68af..9c18642 100644 --- a/doc/src/faq.rst +++ b/doc/src/faq.rst @@ -161,6 +161,24 @@ I can't compile `!psycopg2`: the compiler says *error: libpq-fe.h: No such file You need to install the development version of the libpq: the package is usually called ``libpq-dev``. +.. _faq-lo_truncate: +.. cssclass:: faq + +`!psycopg2` raises `!ImportError` with message *_psycopg.so: undefined symbol: lo_truncate* when imported. + This means that Psycopg has been compiled with |lo_truncate|_ support, + which means that the libpq used at compile time was version >= 8.3, but at + runtime an older libpq library is found. You can use:: + + $ ldd /path/to/packages/psycopg2/_psycopg.so | grep libpq + + to find what is the version used at runtime. + + You can avoid the problem by using the same version of the + :program:`pg_config` at install time and the libpq at runtime. + + .. |lo_truncate| replace:: `!lo_truncate()` + .. _lo_truncate: http://www.postgresql.org/docs/current/static/lo-interfaces.html#LO-TRUNCATE + Psycopg raises *ImportError: cannot import name tz* on import in mod_wsgi / ASP, but it works fine otherwise. If `!psycopg2` is installed in an egg_ (e.g. because installed by :program:`easy_install`), the user running the program may be unable to |
