22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37 | except Exception as 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")
# let's invoke packagekit?
"""
try:
import packagekit.client
pkc = packagekit.client.PackageKitClient() |
|
|
>
| 22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38 | except Exception as e:
# disable use
pq = None
config.conf.pyquery = False
# error hint
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() |