我根据安装了littlechef https://github.com/tobami/littlechef
但是,当我想执行命令时,出现了一些python错误。
me@MacBook-4:~/project(master)$fix
Traceback (most recent call last):
File "/usr/local/bin/fix", line 135, in <module>
parser.parse_args(['-h'])
File "/Library/Python/2.7/site-packages/argparse.py", line 1725, in parse_args
args, argv = self.parse_known_args(args, namespace)
File "/Library/Python/2.7/site-packages/argparse.py", line 1754, in parse_known_args
namespace, args = self._parse_known_args(args, namespace)
File "/Library/Python/2.7/site-packages/argparse.py", line 1960, in _parse_known_args
start_index = consume_optional(start_index)
File "/Library/Python/2.7/site-packages/argparse.py", line 1900, in consume_optional
take_action(action, args, option_string)
File "/Library/Python/2.7/site-packages/argparse.py", line 1828, in take_action
action(self, namespace, argument_values, option_string)
File "/Library/Python/2.7/site-packages/argparse.py", line 1021, in __call__
parser.print_help()
File "/Library/Python/2.7/site-packages/argparse.py", line 2358, in print_help
self._print_message(self.format_help(), file)
File "/Library/Python/2.7/site-packages/argparse.py", line 2332, in format_help
return formatter.format_help()
File "/Library/Python/2.7/site-packages/argparse.py", line 306, in format_help
help = self._root_section.format_help()
File "/Library/Python/2.7/site-packages/argparse.py", line 236, in format_help
func(*args)
File "/Library/Python/2.7/site-packages/argparse.py", line 506, in _format_text
if '%(prog)' in text:
File "/usr/local/bin/fix", line 48, in __contains__
return item in self.commands
File "/usr/local/bin/fix", line 44, in commands
self._commands = self.get_commands()
File "/usr/local/bin/fix", line 33, in get_commands
from fabric.main import list_commands, state, load_fabfile
ImportError: cannot import name list_commands`enter code here`
有人知道是什么原因吗?