hackerkid / hackerkid/codejam-commandline

Command line tools work for practice mode only

Đang mở
#14 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
auto-migrated Component-Logic OpSys-All Priority-Low Type-Enhancement Usability
Ngôn ngữ chính
Python
Star
0
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

```
What steps will reproduce the problem?

It seems that the scripts only work in practice mode for me.
$ ./gcj_download_input.py B small 0
$ ./gcj_get_status.py

What is the expected output? What do you see instead?

gcj_download_input.py always shows ServerError in competition mode (it works in
practice mode though):

-------------------------------------------------------------------------------
Small input for "B - Space Emergency" at "source/B-small-0.in"
-------------------------------------------------------------------------------
Getting status of contest 1128486 from "code.google.com"...
200 OK, 71 bytes read from server (60 uncompressed).
Getting user status at contest 1128486 from "code.google.com"...
200 OK, 32 bytes read from server (12 uncompressed).
Downloading practice input file.
Getting input file "source/B-small-0.in" from "code.google.com"...
200 OK, 0 bytes read from server.
ServerError: No response received from the server. This generally happens when:
- You try to download a small input but it is already solved.
- You try to download the large input before solving the small input.
- You try to redownload the large but its timer already expired.

gcj_get_status.py simply shows error messages:

Getting user status at contest 1128486 from "code.google.com"...
200 OK, 32 bytes read from server (12 uncompressed).
Getting events of contest 1128486 from "code.google.com"...
200 OK, 695 bytes read from server (1407 uncompressed).
Traceback (most recent call last):
File "./gcj_get_status.py", line 171, in
main()
File "./gcj_get_status.py", line 143, in main
user_status.FixStatusWithSubmissions(status, submissions, input_spec)
File "/home/svn/public/codejam/lib/user_status.py", line 240, in FixStatusWithSubmissions
for problem_status in status.problem_inputs:
AttributeError: 'NoneType' object has no attribute 'problem_inputs'

What version of the product are you using? On what operating system?

$ python -V
Python 2.6.6

$ uname -a
FreeBSD cn1.leeym.com 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18 02:24:46
UTC 2011 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386

Please provide any additional information below.

My account is 'leeym@leeym.com' which is not @gmail.com account. Not sure if it
matters.
```

Original issue reported on code.google.com by `leeym%le...@gtempaccount.com` on 22 May 2011 at 11:17

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.