mirror of
https://github.com/ansible/awx.git
synced 2026-03-06 03:01:06 -03:30
provide friendlier help messages if you set up custom venvs wrong
This commit is contained in:
@@ -24,7 +24,12 @@ import os
|
|||||||
import pwd
|
import pwd
|
||||||
|
|
||||||
# PSUtil
|
# PSUtil
|
||||||
import psutil
|
try:
|
||||||
|
import psutil
|
||||||
|
except ImportError:
|
||||||
|
raise ImportError('psutil is missing; {}bin/pip install psutil'.format(
|
||||||
|
os.environ['VIRTUAL_ENV']
|
||||||
|
))
|
||||||
|
|
||||||
__all__ = []
|
__all__ = []
|
||||||
|
|
||||||
|
|||||||
@@ -27,7 +27,13 @@ import os
|
|||||||
import stat
|
import stat
|
||||||
import threading
|
import threading
|
||||||
import uuid
|
import uuid
|
||||||
import memcache
|
|
||||||
|
try:
|
||||||
|
import memcache
|
||||||
|
except ImportError:
|
||||||
|
raise ImportError('python-memcached is missing; {}bin/pip install python-memcached'.format(
|
||||||
|
os.environ['VIRTUAL_ENV']
|
||||||
|
))
|
||||||
|
|
||||||
from six.moves import xrange
|
from six.moves import xrange
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user