【问题标题】:Python version mismatch error while configuring the RBTools on mac osx在 mac osx 上配置 RBTools 时出现 Python 版本不匹配错误
【发布时间】:2015-08-05 19:47:48
【问题描述】:

我试图在 mac os 上配置 RBTools,但我在设置 repo 时遇到了问题。 这是我得到的错误。

ImportError: Python minor version mismatch: The Mercurial extension modules were compiled with Python 2.7.5, but Mercurial is currently using Python with sys.hexversion=33949936: Python 2.6.8 (unknown, Mar  9 2014, 22:16:00) \n', '[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)]\n', ' at: /usr/bin/python\n'

我已经安装了 RBTools v0.7.4 和 python 版本 2.6.8,我也有 python 版本 2.7.5。

这是完整的回溯http://pastie.org/10332044

当我尝试运行 rbt setup-repo 时出现此错误。

对此的任何帮助都会对过去一周的这件事产生很大的帮助。

【问题讨论】:

    标签: python macos review-board


    【解决方案1】:

    我认为这是 RBTools 程序集中的一个错误。我为此提交了this ticket。查看有关我如何在那里解决问题的更多详细信息,但具体来说,请查看 /usr/local/bin/rbt 并将 shebang 从 python2.6 更改为 python,你应该会很好。

    【讨论】:

      猜你喜欢
      • 2012-01-26
      • 2013-08-03
      • 2014-01-21
      • 1970-01-01
      • 2021-10-06
      • 2011-03-07
      • 2021-11-01
      • 2017-12-02
      • 2017-12-20
      相关资源
      最近更新 更多