Without libpq4, the python-psycopg module can't even be imported:
suki2:~$ python
Python 2.4.4c1 (#2, Oct 11 2006, 21:51:02)
[GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import psycopg
>>>
suki2:~$ sudo dpkg -r libpq4
(Reading database ... 22108 files and directories currently installed.)
Removing libpq4 ...
suki2:~$ python
Python 2.4.4c1 (#2, Oct 11 2006, 21:51:02)
[GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import psycopg
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: libpq.so.4: cannot open shared object file: No such file or directory
>>>
Without libpq4, the python-psycopg module can't even be imported:
suki2:~$ python
Python 2.4.4c1 (#2, Oct 11 2006, 21:51:02)
[GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import psycopg
>>>
suki2:~$ sudo dpkg -r libpq4
(Reading database ... 22108 files and directories currently installed.)
Removing libpq4 ...
suki2:~$ python
Python 2.4.4c1 (#2, Oct 11 2006, 21:51:02)
[GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import psycopg
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: libpq.so.4: cannot open shared object file: No such file or directory
>>>