I am on Redhat, and when I run any fabric scripts I see the following error:
Traceback (most recent call last): File "/usr/bin/fab", line 8, in from fabric.main import main ImportError: No module named fabric.main
The file /usr/bin/fab is configured to use python 2.7 (/usr/local/bin/python):
#!/usr/local/bin/python
# -*- coding: utf-8 -*- import re import sys
from fabric.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
The result is the same even if I just call fab.
Not sure what else I should be configuring. I have not set up a virtualenv
for fab. If I must, I will do so.
I installed python 2.7, and then I installed fab as follows:
wget https://bootstrap.pypa.io/get-pip.py
sudo /usr/local/bin/python get-pip.py
sudo /usr/local/bin/pip install fab