我得到了:
Traceback (most recent call last):
File "/usr/local/bin/git-review", line 863, in <module>
main()
File "/usr/local/bin/git-review", line 796, in main
needs_update = latest_is_newer()
File "/usr/local/bin/git-review", line 147, in latest_is_newer
if latest_version > StrictVersion(version):
File "/usr/lib/python2.7/distutils/version.py", line 140, in __cmp__
compare = cmp(self.version, other.version)
AttributeError: StrictVersion instance has no attribute 'version'如何修复git-review?
发布于 2015-06-11 00:19:22
当您将某个版本的None传递给StrictVersion或LooseVersion时,会发生此错误。
对于Git Review来说,正如Matthew Flaschen的回答中提到的,这是因为一个无效的文件导致None被传递到StrictVersion中。
发布于 2013-01-12 21:23:46
删除文件:
~/.config/git-review/latest-version这是由该位置的空文件或无效文件引起的(它用于在需要时推荐更新)。请参阅Launchpad #1098873
如果该文件被删除,它将自动重新生成。
https://stackoverflow.com/questions/14293727
复制相似问题