AutoSeries Challenge :: Feedback Phase Forum

Go back to competition Back to thread list Post in this thread

> Is this score.py bug?(TypeError: 'NoneType' object is not subscriptable)

Hi AutoSeries Competition Organizers.

I submit my code, and the error didn't occure in ingestion step. but the error "TypeError: 'NoneType' object is not subscriptable" has occured in score.py.
Is this error due to score.py?

The following error occurred on dataset2.
```
Traceback (most recent call last):
File "/tmp/codalab/tmpOViKjn/run/program/score.py", line 300, in <module>
main()
File "/tmp/codalab/tmpOViKjn/run/program/score.py", line 293, in main
duration = ingestion_info['ingestion_duration']
TypeError: 'NoneType' object is not subscriptable
```

thank you.

Posted by: Kon @ Dec. 26, 2019, 6:41 a.m.

Additional information:
submission ID is 26646.

Posted by: Kon @ Dec. 26, 2019, 6:48 a.m.

Dear participants,

It's indeed a bug of competition evaluation program.
The cause of this issue is the congestion when reading / writing files. This is a low probability event that occurs only when the server is on very busy IO.
We have already fixed it by adding a file lock when reading/writing the result file.

Thanks for your feedback.

AutoSeries Competition Organizers

Posted by: liushouxiang @ Dec. 27, 2019, 11:59 a.m.

This error means that you attempted to index an object that doesn’t have that functionality. You might have noticed that the method sort() that only modify the list have no return value printed – they return the default None. ‘NoneType’ object is not subscriptable is the one thrown by python when you use the square bracket notation object[key] where an object doesn’t define the getitem method . This is a design principle for all mutable data structures in Python. You can reproduce TypeError that you get in your code if you try this at the Python command line:

None[0]

None has a special status in Python. It is a favourite baseline value because many algorithms treat it as an exceptional value, used in many places in the language and library to represent the absence of some other value .

http://net-informations.com/python/basics/none.htm

Posted by: irvinborder @ Aug. 6, 2020, 5:24 a.m.
Post in this thread