Repository: Cloud-CV/EvalAI
Issue: Error when submitted result file in nuScenes Tracking Challenge
Root cause: External Dependency Breakage

This error happened after I submitted it to the EvalAI server:
This is the Stderr file on the server:

**_python3.8/site-packages/pandas/core/indexes/base.py:395: DeprecationWarning: `np.bool` is a deprecated alias for the builtin `bool`. To silence this warning, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
  elif issubclass(data.dtype.type, np.bool) or is_bool_dtype(data):
python3.8/site-packages/pandas/core/internals/construction.py:587: DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. To silence this warning, use `object` by itself. Doing this will not modify any behavior and is safe. 
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
  if dtype != object and dtype != np.object:

metrics_summary = nusc_eval.main()
File “python3.8/site-packages/nuscenes/eval/tracking/evaluate.py”, line 204, in main
metrics, metric_data_list = self.evaluate()
File " python3.8/site-packages/nuscenes/eval/tracking/evaluate.py", line 135, in evaluate
accumulate_class(class_name)
File " python3.8/site-packages/nuscenes/eval/tracking/evaluate.py", line 131, in accumulate_class
curr_md = curr_ev.accumulate()
File " python3.8/site-packages/nuscenes/eval/tracking/algo.py", line 140, in accumulate
acc, _ = self.accumulate_threshold(threshold)
File " python3.8/site-packages/nuscenes/eval/tracking/algo.py", line 292, in accumulate_threshold
acc_merged = MOTAccumulatorCustom.merge_event_dataframes(accs)
File " python3.8/site-packages/nuscenes/eval/tracking/mot.py", line 100, in merge_event_dataframes
df = df.events
File " python3.8/site-packages/nuscenes/eval/tracking/mot.py", line 61, in events
self.cached_events_df = MOTAccumulatorCustom.new_event_dataframe_with_data(self._indices, self._events)
File " python3.8/site-packages/nuscenes/eval/tracking/mot.py", line 37, in new_event_dataframe_with_data
df = pd.DataFrame(events, index=idx, columns=[‘Type’, ‘OId’, ‘HId’, ‘D’])
File " python3.8/site-packages/pandas/core/frame.py", line 746, in init
mgr = init_dict(data, index, columns, dtype=dtype)
File " python3.8/site-packages/pandas/core/dtypes/cast.py", line 1175, in construct_1d_arraylike_from_scalar
dtype=dtype.dtype
AttributeError: type object ‘object’ has no attribute ‘dtype’_**

Searching on the Internet, it is said that it is a pandas version problem, 
AttributeError: type object 'object' has no attribute 'dtype' with numpy 1.20.x and pandas versions 1.0.4 and earlier
https://github.com/pandas-dev/pandas/issues/39520

From the log above, it can be seen that Numpy>=1.20, according to Trace:

df = pd.DataFrame(events, index=idx, columns=['Type', 'OId', 'HId', 'D'])
File "python3.8/site-packages/pandas/core/frame.py", line 746, in init
mgr = init_dict(data, index, columns, dtype=dtype)
File "python3.8/site-packages/pandas/core/dtypes/cast.py", line 1175, in construct_1d_arraylike_from_scalar
dtype=dtype.dtype

It can probably be determined that Pandas version<=1.0.4. So this question will be reported.
 I would like to ask if anyone who participated in the tracking challenges encountered this problem?

 @Ram81 @David_Novotny @Rishabh_Jain @rishabh @whyekit-motional
My team name is VPF. Can you please have a look?

Thanks a lot!


Closing this since this an old issue.