summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--INSTALL.md1
-rw-r--r--virtinst/cli.py3
2 files changed, 2 insertions, 2 deletions
diff --git a/INSTALL.md b/INSTALL.md
index efe73cf7..983e32ce 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -35,7 +35,6 @@ Minimum version requirements of major components:
- libvirt-python >= 0.6.0
- pygobject3 >= 3.14
- libosinfo >= 0.2.10
- - python3-argcomplete >= 1.0.0
On Debian or Ubuntu based distributions, you need to install the
`gobject-introspection` bindings for some dependencies like `libvirt-glib`
diff --git a/virtinst/cli.py b/virtinst/cli.py
index eb8e28a5..21586b19 100644
--- a/virtinst/cli.py
+++ b/virtinst/cli.py
@@ -18,7 +18,6 @@ import subprocess
import sys
import traceback
-import argcomplete
import libvirt
from virtcli import CLIConfig
@@ -493,6 +492,8 @@ def autocomplete(parser):
if "_ARGCOMPLETE" not in os.environ:
return
+ import argcomplete
+
parsernames = ["--" + pclass.cli_arg_name for pclass in VIRT_PARSERS]
# pylint: disable=protected-access
for action in parser._actions: