Fix `format_exc(e)` itself causing an exception,
and add explanation in `pq` wrapper which was supposed to mask import errors.
check-in: ef4ea389f1 user: mario tags: trunk
exceptExceptionas e:# disable use
pq =None
config.conf.pyquery =False# error hint config.log.ERR("LXML is missing\n", e)
config.log.ERR("Please install the packages python-lxml and python-pyquery from your distributions software manager.\n") config.log.ERR("LXML/PyQuery is missing", e)
config.log.INFO("Please install the packages python-lxml and python-pyquery from your distributions software manager.") config.log.INFO("Or via `pip install pyquery`\nOr `pip3 install pyquery`")# let's invoke packagekit?"""
try:
import packagekit.client
pkc = packagekit.client.PackageKitClient()