Python错误ValueError:找不到子字符串

时间:2017-06-14 04:37:49

标签: python mongodb

我没有使用python的经验,我正在安装https://github.com/rueckstiess/mtools的mongodb工具。安装并启动应用程序后,我遇到了异常错误。似乎有一个grama问题,但我不确定。它是由python版本引起的吗?我正在使用python 2.7。我怎么知道哪个版本修复了这个问题?

# mlaunch init --single
Traceback (most recent call last):
  File "/usr/local/bin/mlaunch", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/dist-packages/mtools/mlaunch/mlaunch.py", line 1438, in main
    tool.run()
  File "/usr/local/lib/python2.7/dist-packages/mtools/mlaunch/mlaunch.py", line 260, in run
    getattr(self, self.args['command'])()
  File "/usr/local/lib/python2.7/dist-packages/mtools/mlaunch/mlaunch.py", line 280, in init
    current_version = self.getMongoDVersion()
  File "/usr/local/lib/python2.7/dist-packages/mtools/mlaunch/mlaunch.py", line 475, in getMongoDVersion
    if current_version.rindex('v') > 0:
ValueError: substring not found

0 个答案:

没有答案