Could you try reinstalling pkg-ressources? sudo apt-get install --reinstall python-pkg-resources
The line from your stacktrace is not in the source code of pgcli. Lennart November 27 2015 8:51 AM, "Max Kellermann" <m...@duempel.org> wrote: > Package: pgcli > Version: 0.20.1-1 > > # pgcli certdb > Traceback (most recent call last): > File "/usr/bin/pgcli", line 5, in <module> > from pkg_resources import load_entry_point > ImportError: No module named 'pkg_resources'