GitReviewException object has no attribute 'EXIT_CODE'

Posted 求索-一方天空

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了GitReviewException object has no attribute 'EXIT_CODE'相关的知识,希望对你有一定的参考价值。

 1.环境
ubuntu16.04 Launchpad Gerrit OpenStack ID
 
2.问题
学习OpenStack workflow时,需要注册Launchpad账号,然后在Gerrit签署ICLA协议,
最后在sandbox提交代码,在执行 "git review -s"时出现
“AttributeError: \'GitReviewException\' object has no attribute \'EXIT_CODE\'”错误.
 
3.解决方法
    3.1  可能是SSH KEY问题
         1) Gerrit中的SSH KEY 和本地~/.ssh/id_rsa.pub的SSH KEY 不一致, 将
             本地SSH KEY添加到Gerrit中。
    3.2  Contact information NOT UPDATED
         1) In Gerrit, look up the setting -> Contact information, YOU MUST UPDATE THE MAILING ADDRESS(
             other information is optional). after updated, it will give notification like this:
            "The following offline contact information is stored encrypted."
             ...
            "Contact information last updated on Jun 16, 2017 at 11:25 AM."
 
            THIS UPDATE MAY TURN UP "SERVER ERROR" WITHOUT AN OPENSTACK ID  ACCOUNT REGISGERED.
                                             
 
             Here is detailed solution to the server error problem:
             
             In case of the link fails soon, I copy its main solution as following:
                      1) register an OpenStack ID in "www.openstack.org"
                      2) make sure your are an Individual Member of the Foundation. 
                          
                       3)   If you see the button, hit it. Now while you\'re on your profile page make sure that your affiliation
                             history is correct and that youre primary email is the same you\'re using on gerrit.
              Head back to gerrit and update your contact information(mailing address is mandatory).
    
    3.3 port 29418 in gerrit is blocked.
          Use VPN to solve the "Could not connect to gerrit" issue, try different VPN(different ip) to
          run "git review -s" command.

以上是关于GitReviewException object has no attribute 'EXIT_CODE'的主要内容,如果未能解决你的问题,请参考以下文章

Object.keys(),Object.values(),Object.entries()

TypeScript之Object、object、 的区别

为啥 (+)="[object Object][object Object]"? [复制]

对象object在console.log时,显示[Object]的解决方案

对象object在console.log时,显示[Object]的解决方案

TypeScript 中 'object' 、 和 Object 之间的区别