Everytime i run my script i get:
File "./ciinstall.py", line 35, in <module>
import npyscreen
ImportError: No module named npyscreen
Here is my code. It checks to see if mypyscreen is installed. if not then install it then import. if it is then import. But instead its giving me an error.
# Installing npyscreen before importing npyscreen for menu UI
npy = subprocess.call(shlex.split('locate npyscreen-3.2.egg-info'))
if npy == '1':
os.chdir('/opt/')
subprocess.call(shlex.split('sudo wget https://pypi.python.org/packages/sou$
subprocess.call(shlex.split('tar xvf npyscreen-3.37.tar.gz'))
os.chdir('npyscreen-3.2')
subprocess.call(shlex.split('sudo ./setup.py'))
subprocess.call(shlex.split('sudo rm npyscreen-3.37.tar.gz'))
import npyscreen