{"action":"created","issue":{"url":"https://api.github.com/repos/codalab/codalab-cli/issues/503","repository_url":"https://api.github.com/repos/codalab/codalab-cli","labels_url":"https://api.github.com/repos/codalab/codalab-cli/issues/503/labels{/name}","comments_url":"https://api.github.com/repos/codalab/codalab-cli/issues/503/comments","events_url":"https://api.github.com/repos/codalab/codalab-cli/issues/503/events","html_url":"https://github.com/codalab/codalab-cli/issues/503","id":160584688,"number":503,"title":"AssertionError in cl print","user":{"login":"kashizui","id":614837,"avatar_url":"https://avatars.githubusercontent.com/u/614837?v=3","gravatar_id":"","url":"https://api.github.com/users/kashizui","html_url":"https://github.com/kashizui","followers_url":"https://api.github.com/users/kashizui/followers","following_url":"https://api.github.com/users/kashizui/following{/other_user}","gists_url":"https://api.github.com/users/kashizui/gists{/gist_id}","starred_url":"https://api.github.com/users/kashizui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kashizui/subscriptions","organizations_url":"https://api.github.com/users/kashizui/orgs","repos_url":"https://api.github.com/users/kashizui/repos","events_url":"https://api.github.com/users/kashizui/events{/privacy}","received_events_url":"https://api.github.com/users/kashizui/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/codalab/codalab-cli/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/codalab/codalab-cli/labels/P1","name":"P1","color":"eb6420"}],"state":"closed","locked":false,"assignee":{"login":"kashizui","id":614837,"avatar_url":"https://avatars.githubusercontent.com/u/614837?v=3","gravatar_id":"","url":"https://api.github.com/users/kashizui","html_url":"https://github.com/kashizui","followers_url":"https://api.github.com/users/kashizui/followers","following_url":"https://api.github.com/users/kashizui/following{/other_user}","gists_url":"https://api.github.com/users/kashizui/gists{/gist_id}","starred_url":"https://api.github.com/users/kashizui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kashizui/subscriptions","organizations_url":"https://api.github.com/users/kashizui/orgs","repos_url":"https://api.github.com/users/kashizui/repos","events_url":"https://api.github.com/users/kashizui/events{/privacy}","received_events_url":"https://api.github.com/users/kashizui/received_events","type":"User","site_admin":false},"assignees":[{"login":"kashizui","id":614837,"avatar_url":"https://avatars.githubusercontent.com/u/614837?v=3","gravatar_id":"","url":"https://api.github.com/users/kashizui","html_url":"https://github.com/kashizui","followers_url":"https://api.github.com/users/kashizui/followers","following_url":"https://api.github.com/users/kashizui/following{/other_user}","gists_url":"https://api.github.com/users/kashizui/gists{/gist_id}","starred_url":"https://api.github.com/users/kashizui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kashizui/subscriptions","organizations_url":"https://api.github.com/users/kashizui/orgs","repos_url":"https://api.github.com/users/kashizui/repos","events_url":"https://api.github.com/users/kashizui/events{/privacy}","received_events_url":"https://api.github.com/users/kashizui/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-06-16T06:09:07Z","updated_at":"2016-07-15T05:04:40Z","closed_at":"2016-07-15T05:04:40Z","body":"From @ppasupat \r\n> With CodaLab CLI, When I tried running `cl print`, it gives me the following exception:\r\n> \r\n> ```\r\n> Traceback (most recent call last):\r\n>   File \"/home/ppasupat/.local/codalab-cli/codalab/bin/../../codalab/bin/cl.py\", line 131, in <module>\r\n>     cli.do_command(sys.argv[1:])\r\n>   File \"/home/ppasupat/.local/codalab-cli/codalab/lib/bundle_cli.py\", line 659, in do_command\r\n>     structured_result = command_fn()\r\n>   File \"/home/ppasupat/.local/codalab-cli/codalab/lib/bundle_cli.py\", line 641, in <lambda>\r\n>     command_fn = lambda: args.function(self, args)\r\n>   File \"/home/ppasupat/.local/codalab-cli/codalab/lib/bundle_cli.py\", line 1918, in do_print_command\r\n>     self.display_interpreted(client, worksheet_info, interpreted)\r\n>   File \"/home/ppasupat/.local/codalab-cli/codalab/lib/bundle_cli.py\", line 1932, in display_interpreted\r\n>     self.print_target_info(client, data, decorate=True, maxlines=maxlines)\r\n>   File \"/home/ppasupat/.local/codalab-cli/codalab/lib/bundle_cli.py\", line 1455, in print_target_info\r\n>     for line in client.head_target(target, maxlines):\r\n>   File \"/home/ppasupat/.local/codalab-cli/codalab/client/remote_bundle_client.py\", line 161, in inner\r\n>     return getattr(self.proxy, command)(*args, **kwargs)\r\n>   File \"/usr/lib/python2.7/xmlrpclib.py\", line 1233, in __call__\r\n>     return self.__send(self.__name, args)\r\n>   File \"/usr/lib/python2.7/xmlrpclib.py\", line 1587, in __request\r\n>     verbose=self.__verbose\r\n>   File \"/usr/lib/python2.7/xmlrpclib.py\", line 1273, in request\r\n>     return self.single_request(host, handler, request_body, verbose)\r\n>   File \"/usr/lib/python2.7/xmlrpclib.py\", line 1306, in single_request\r\n>     return self.parse_response(response)\r\n>   File \"/usr/lib/python2.7/xmlrpclib.py\", line 1482, in parse_response\r\n>     return u.close()\r\n>   File \"/usr/lib/python2.7/xmlrpclib.py\", line 794, in close\r\n>     raise Fault(**self._stack[0])\r\n> xmlrpclib.Fault: <Fault 1: \"<type 'exceptions.AssertionError'>:\">\r\n> ```\r\n> \r\n> My sheet is https://codalab.stanford.edu/worksheets/0xbc6ffb29af8b422b8fef3312738cee4c/. It seems to happen on the following lines:\r\n> \r\n> % display contents /stdout\r\n> [run run-cat -- ..(omitted).. ]{0x1becfb6417264151a43111f53b5e81b1}\r\n\r\nLogs show:\r\n```\r\nbundle_rpc_server: head_target (['0x1becfb6417264151a43111f53b5e81b1', 'stdout'], None)\r\n=== INTERNAL ERROR:\r\n…\r\nTraceback (most recent call last):\r\n  File \"/u/nlp/data/codalab/codalab-cli/codalab/server/bundle_rpc_server.py\", line 121, in function_to_register\r\n    result = getattr(target, command)(*args, **kwargs)\r\n  File \"/u/nlp/data/codalab/codalab-cli/codalab/client/local_bundle_client.py\", line 596, in head_target\r\n    gzipped=False).splitlines(True)\r\n  File \"/u/nlp/data/codalab/codalab-cli/codalab/lib/download_manager.py\", line 16, in wrapper\r\n    return f(*args, **kwargs)\r\n  File \"/u/nlp/data/codalab/codalab-cli/codalab/lib/download_manager.py\", line 171, in summarize_file\r\n    string = file_util.summarize_file(file_path, num_head_lines, num_tail_lines, max_line_length, truncation_text)\r\n  File \"/u/nlp/data/codalab/codalab-cli/worker/file_util.py\", line 153, in summarize_file\r\n    assert(num_head_lines > 0 or num_tail_lines > 0)\r\nAssertionError\r\n```\r\n@percyliang "},"comment":{"url":"https://api.github.com/repos/codalab/codalab-cli/issues/comments/232860436","html_url":"https://github.com/codalab/codalab-cli/issues/503#issuecomment-232860436","issue_url":"https://api.github.com/repos/codalab/codalab-cli/issues/503","id":232860436,"user":{"login":"kashizui","id":614837,"avatar_url":"https://avatars.githubusercontent.com/u/614837?v=3","gravatar_id":"","url":"https://api.github.com/users/kashizui","html_url":"https://github.com/kashizui","followers_url":"https://api.github.com/users/kashizui/followers","following_url":"https://api.github.com/users/kashizui/following{/other_user}","gists_url":"https://api.github.com/users/kashizui/gists{/gist_id}","starred_url":"https://api.github.com/users/kashizui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kashizui/subscriptions","organizations_url":"https://api.github.com/users/kashizui/orgs","repos_url":"https://api.github.com/users/kashizui/repos","events_url":"https://api.github.com/users/kashizui/events{/privacy}","received_events_url":"https://api.github.com/users/kashizui/received_events","type":"User","site_admin":false},"created_at":"2016-07-15T05:04:40Z","updated_at":"2016-07-15T05:04:40Z","body":"Fixed in upcoming release by #434 \r\n\r\n(However looks like there is now a new error on this worksheet..\r\n`ERROR: Not found: '/bundles/0x1908dea05d534b62a5242dfd7850a7bb/contents/info/stdout'`\r\n)"}}
{"actor":{"display_login":"kashizui"}}