Код: Выделить всё
password = getpass.getpass('Enter password')
Код: Выделить всё
ImportError : no module named getpass
Код: Выделить всё
export pythonpath=/usr/lib/python2.4/site-packages:/usr/lib/python2.4
Код: Выделить всё
#!/usr/bin/python2.4
import sys
import getpass
WL_USER = raw_input('Enter the username to login to BI EM:')
WL_PASSWD = getpass.getpass('Enter the password:')
HOST_NAME = raw_input('Enter the BI host URL')
WL_PORT = raw_input('Enter the admin port for BI')
Код: Выделить всё
ImportError: no module named getpass
/home/wlserver_10.3/common/bin/wlst.sh test.py
Я попытался выполнить скрипт как python test.py
Он работает нормально. Похоже, с wlst возникла какая-то проблема.
Нужна помощь в этом вопросе.
Подробнее здесь: https://stackoverflow.com/questions/191 ... -in-python