waymo-open-dataset icon indicating copy to clipboard operation
waymo-open-dataset copied to clipboard

Error in waymo package when ploting clouds with maps

Open 073501 opened this issue 1 year ago • 2 comments

In waymo motion dataset v1.2: I first install waymo_open_dataset package in tutorial.ipynb: image I try to plot point clouds with maps and follow the instruction in tutorial_maps.ipynb and I got the error message:

Traceback (most recent call last):
  File "test.py", line 7, in <module>
    from waymo_open_dataset.utils import plot_maps
  File "/opt/conda/envs/waymo/lib/python3.8/site-packages/waymo_open_dataset/utils/plot_maps.py", line 52, in <module>
    class MapPoints:
  File "/opt/conda/envs/waymo/lib/python3.8/site-packages/waymo_open_dataset/utils/plot_maps.py", line 55, in MapPoints
    x: list[float] = dataclasses.field(default_factory=list)
TypeError: 'type' object is not subscriptable

The error message is from waymo package. Is there any bugs in waymo-open-dataset-tf-2-11-0==1.5.1?

073501 avatar May 08 '23 13:05 073501

Hi. Thanks for bringing this up, are you running this in colab?

I just tested the code and it works correctly from this link in colab.

scott-ettinger avatar May 14 '23 20:05 scott-ettinger

I had the same error. You need to use a Python version >3.8

jzuern avatar Jun 28 '23 08:06 jzuern