{"action":"created","issue":{"url":"https://api.github.com/repos/wufeifei/cobra/issues/66","repository_url":"https://api.github.com/repos/wufeifei/cobra","labels_url":"https://api.github.com/repos/wufeifei/cobra/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/wufeifei/cobra/issues/66/comments","events_url":"https://api.github.com/repos/wufeifei/cobra/issues/66/events","html_url":"https://github.com/wufeifei/cobra/issues/66","id":173361064,"number":66,"title":"分析代码过程报错","user":{"login":"alwaystest18","id":11520372,"avatar_url":"https://avatars.githubusercontent.com/u/11520372?v=3","gravatar_id":"","url":"https://api.github.com/users/alwaystest18","html_url":"https://github.com/alwaystest18","followers_url":"https://api.github.com/users/alwaystest18/followers","following_url":"https://api.github.com/users/alwaystest18/following{/other_user}","gists_url":"https://api.github.com/users/alwaystest18/gists{/gist_id}","starred_url":"https://api.github.com/users/alwaystest18/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alwaystest18/subscriptions","organizations_url":"https://api.github.com/users/alwaystest18/orgs","repos_url":"https://api.github.com/users/alwaystest18/repos","events_url":"https://api.github.com/users/alwaystest18/events{/privacy}","received_events_url":"https://api.github.com/users/alwaystest18/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wufeifei/cobra/labels/bug","name":"bug","color":"ee0701"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-26T03:17:32Z","updated_at":"2016-09-08T02:50:21Z","closed_at":"2016-09-06T04:15:28Z","body":"这个问题之前提过，当时回答的是不支持svn，改成git或upload，但实际上我就是用git和upload测试的，全部报这个错误，代码获取没有问题，是开始分析代码时出现了报错。\r\n测试主机系统：ubuntu 14.04,Centos 6.5\r\n安装过程是照着wiki来的，ubuntu的包名有些区别改了一下，centos原样安装的，中间未发生什么问题\r\n\r\n`Traceback (most recent call last):\r\n  File \"/data/cobra/cobra.py\", line 25, in <module>\r\n    main()\r\n  File \"/data/cobra/cobra.py\", line 21, in main\r\n    manager.run()\r\n  File \"/usr/lib/python2.6/site-packages/flask_script/__init__.py\", line 412, in run\r\n    result = self.handle(sys.argv[0], sys.argv[1:])\r\n  File \"/usr/lib/python2.6/site-packages/flask_script/__init__.py\", line 383, in handle\r\n    res = handle(*args, **config)\r\n  File \"/usr/lib/python2.6/site-packages/flask_script/commands.py\", line 216, in __call__\r\n    return self.run(*args, **kwargs)\r\n  File \"/data/cobra/app/__init__.py\", line 75, in run\r\n    ['cloc', target], stdout=subprocess.PIPE)\r\n  File \"/usr/lib64/python2.6/subprocess.py\", line 642, in __init__\r\n    errread, errwrite)\r\n  File \"/usr/lib64/python2.6/subprocess.py\", line 1238, in _execute_child\r\n    raise child_exception\r\nOSError: [Errno 2] No such file or directory`\r\n出现这个报错的结果就是马上就显示分析完成，查看报告的话就一直是统计代码行数中，过了一晚上再看报告出现了如下错误\r\n`Traceback (most recent call last):\r\n  File \"/usr/lib/python2.6/site-packages/flask/app.py\", line 1836, in __call__\r\n    return self.wsgi_app(environ, start_response)\r\n  File \"/usr/lib/python2.6/site-packages/flask/app.py\", line 1820, in wsgi_app\r\n    response = self.make_response(self.handle_exception(e))\r\n  File \"/usr/lib/python2.6/site-packages/flask/app.py\", line 1403, in handle_exception\r\n    reraise(exc_type, exc_value, tb)\r\n  File \"/usr/lib/python2.6/site-packages/flask/app.py\", line 1817, in wsgi_app\r\n    response = self.full_dispatch_request()\r\n  File \"/usr/lib/python2.6/site-packages/flask/app.py\", line 1477, in full_dispatch_request\r\n    rv = self.handle_user_exception(e)\r\n  File \"/usr/lib/python2.6/site-packages/flask/app.py\", line 1381, in handle_user_exception\r\n    reraise(exc_type, exc_value, tb)\r\n  File \"/usr/lib/python2.6/site-packages/flask/app.py\", line 1475, in full_dispatch_request\r\n    rv = self.dispatch_request()\r\n  File \"/usr/lib/python2.6/site-packages/flask/app.py\", line 1461, in dispatch_request\r\n    return self.view_functions[rule.endpoint](**req.view_args)\r\n  File \"/data/cobra/app/controller/route.py\", line 172, in report\r\n    'files': common.convert_number(files),\r\n  File \"/data/cobra/utils/common.py\", line 55, in convert_number\r\n    return '{:20,}'.format(number)\r\nValueError: zero length field name in format`"},"comment":{"url":"https://api.github.com/repos/wufeifei/cobra/issues/comments/245479298","html_url":"https://github.com/wufeifei/cobra/issues/66#issuecomment-245479298","issue_url":"https://api.github.com/repos/wufeifei/cobra/issues/66","id":245479298,"user":{"login":"wufeifei","id":1611552,"avatar_url":"https://avatars.githubusercontent.com/u/1611552?v=3","gravatar_id":"","url":"https://api.github.com/users/wufeifei","html_url":"https://github.com/wufeifei","followers_url":"https://api.github.com/users/wufeifei/followers","following_url":"https://api.github.com/users/wufeifei/following{/other_user}","gists_url":"https://api.github.com/users/wufeifei/gists{/gist_id}","starred_url":"https://api.github.com/users/wufeifei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wufeifei/subscriptions","organizations_url":"https://api.github.com/users/wufeifei/orgs","repos_url":"https://api.github.com/users/wufeifei/repos","events_url":"https://api.github.com/users/wufeifei/events{/privacy}","received_events_url":"https://api.github.com/users/wufeifei/received_events","type":"User","site_admin":false},"created_at":"2016-09-08T02:50:21Z","updated_at":"2016-09-08T02:50:21Z","body":"cloc没有装好"}}
{"actor":{"display_login":"wufeifei"}}