You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File ~/anaconda3/envs/lyft/lib/python3.8/site-packages/google/protobuf/descriptor.py:755, in EnumValueDescriptor.new(cls, name, index, number, type, options, serialized_options, create_key)
752 def new(cls, name, index, number,
753 type=None, # pylint: disable=redefined-builtin
754 options=None, serialized_options=None, create_key=None):
--> 755 _message.Message._CheckCalledFromGeneratedFile()
756 # There is no way we can build a complete EnumValueDescriptor with the
757 # given parameters (the name of the Enum is not known, for example).
758 # Fortunately generated files just pass it to the EnumDescriptor()
759 # constructor, which will ignore it, so returning None is good enough.
760 return None
TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
Downgrade the protobuf package to 3.20.x or lower.
Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
Hi, when I try to use l5kit to try on the dataset. I found an error in the example file visualise_data.ipynb:
TypeError Traceback (most recent call last)
Input In [2], in <cell line: 5>()
1 import matplotlib.pyplot as plt
3 import numpy as np
----> 5 from l5kit.data import ChunkedDataset, LocalDataManager
6 from l5kit.dataset import EgoDataset, AgentDataset
8 from l5kit.rasterization import build_rasterizer
File ~/anaconda3/envs/lyft/lib/python3.8/site-packages/l5kit/data/init.py:7, in
5 from .labels import PERCEPTION_LABEL_TO_INDEX, PERCEPTION_LABELS, TL_FACE_LABEL_TO_INDEX, TL_FACE_LABELS
6 from .local_data_manager import DataManager, LocalDataManager
----> 7 from .map_api import MapAPI
8 from .zarr_dataset import AGENT_DTYPE, ChunkedDataset, FRAME_DTYPE, SCENE_DTYPE, TL_FACE_DTYPE
9 from .zarr_utils import zarr_concat
File ~/anaconda3/envs/lyft/lib/python3.8/site-packages/l5kit/data/map_api.py:12, in
9 from l5kit.data import DataManager
11 from ..geometry import transform_points
---> 12 from .proto.road_network_pb2 import GeoFrame, GlobalId, MapElement, MapFragment
15 CACHE_SIZE = int(1e5)
16 ENCODING = "utf-8"
File ~/anaconda3/envs/lyft/lib/python3.8/site-packages/l5kit/data/proto/road_network_pb2.py:36, in
14 _sym_db = _symbol_database.Default()
17 DESCRIPTOR = _descriptor.FileDescriptor(
18 name='road_network.proto',
19 package='l5kit.maps',
(...)
24 ,
25 dependencies=[google_dot_protobuf_dot_descriptor__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,])
29 _ACCESSRESTRICTION_TYPE = _descriptor.EnumDescriptor(
30 name='Type',
31 full_name='l5kit.maps.AccessRestriction.Type',
32 filename=None,
33 file=DESCRIPTOR,
34 create_key=_descriptor._internal_create_key,
35 values=[
---> 36 _descriptor.EnumValueDescriptor(
37 name='UNKNOWN', index=0, number=0,
38 serialized_options=None,
39 type=None,
40 create_key=_descriptor._internal_create_key),
41 _descriptor.EnumValueDescriptor(
42 name='NO_RESTRICTION', index=1, number=1,
43 serialized_options=None,
44 type=None,
45 create_key=_descriptor._internal_create_key),
46 _descriptor.EnumValueDescriptor(
47 name='ONLY_HOV', index=2, number=2,
48 serialized_options=None,
49 type=None,
50 create_key=_descriptor._internal_create_key),
51 _descriptor.EnumValueDescriptor(
52 name='ONLY_BUS', index=3, number=3,
53 serialized_options=None,
54 type=None,
55 create_key=_descriptor._internal_create_key),
56 _descriptor.EnumValueDescriptor(
57 name='ONLY_BIKE', index=4, number=4,
58 serialized_options=None,
59 type=None,
60 create_key=_descriptor._internal_create_key),
61 _descriptor.EnumValueDescriptor(
62 name='ONLY_TURN', index=5, number=5,
63 serialized_options=None,
64 type=None,
65 create_key=_descriptor._internal_create_key),
66 ],
67 containing_type=None,
68 serialized_options=None,
69 serialized_start=575,
70 serialized_end=672,
71 )
72 _sym_db.RegisterEnumDescriptor(_ACCESSRESTRICTION_TYPE)
74 _DAILYTIMEINTERVAL_DAYOFTHEWEEK = _descriptor.EnumDescriptor(
75 name='DayOfTheWeek',
76 full_name='l5kit.maps.DailyTimeInterval.DayOfTheWeek',
(...)
120 serialized_end=976,
121 )
File ~/anaconda3/envs/lyft/lib/python3.8/site-packages/google/protobuf/descriptor.py:755, in EnumValueDescriptor.new(cls, name, index, number, type, options, serialized_options, create_key)
752 def new(cls, name, index, number,
753 type=None, # pylint: disable=redefined-builtin
754 options=None, serialized_options=None, create_key=None):
--> 755 _message.Message._CheckCalledFromGeneratedFile()
756 # There is no way we can build a complete EnumValueDescriptor with the
757 # given parameters (the name of the Enum is not known, for example).
758 # Fortunately generated files just pass it to the EnumDescriptor()
759 # constructor, which will ignore it, so returning None is good enough.
760 return None
TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
I tried both solutions, and get the same error information.
TypeError Traceback (most recent call last)
Input In [3], in <cell line: 5>()
1 import matplotlib.pyplot as plt
3 import numpy as np
----> 5 from l5kit.data import ChunkedDataset, LocalDataManager
6 from l5kit.dataset import EgoDataset, AgentDataset
8 from l5kit.rasterization import build_rasterizer
File ~/anaconda3/envs/lyft/lib/python3.8/site-packages/l5kit/data/init.py:7, in
5 from .labels import PERCEPTION_LABEL_TO_INDEX, PERCEPTION_LABELS, TL_FACE_LABEL_TO_INDEX, TL_FACE_LABELS
6 from .local_data_manager import DataManager, LocalDataManager
----> 7 from .map_api import MapAPI
8 from .zarr_dataset import AGENT_DTYPE, ChunkedDataset, FRAME_DTYPE, SCENE_DTYPE, TL_FACE_DTYPE
9 from .zarr_utils import zarr_concat
File ~/anaconda3/envs/lyft/lib/python3.8/site-packages/l5kit/data/map_api.py:12, in
9 from l5kit.data import DataManager
11 from ..geometry import transform_points
---> 12 from .proto.road_network_pb2 import GeoFrame, GlobalId, MapElement, MapFragment
15 CACHE_SIZE = int(1e5)
16 ENCODING = "utf-8"
File
/anaconda3/envs/lyft/lib/python3.8/site-packages/l5kit/data/proto/road_network_pb2.py:17, in\n\x0e\x42ikeLaneAccess\x12\x17\n\x13UNKNOWN_BIKE_ACCESS\x10\x00\x12\x06\n\x02NO\x10\x01\x12\n\n\x06SHARED\x10\x02\x12\x0e\n\nDESIGNATED\x10\x03\x12\x18\n\x14\x44\x45SIGNATED_BACKWARDS\x10\x04\x12\x15\n\x11\x44\x45SIGNATED_SHARED\x10\x05"\xbd\x03\n\tRoadClass\x12\x16\n\x12UNKNOWN_ROAD_CLASS\x10\x00\x12\x0c\n\x08MOTORWAY\x10\x01\x12\t\n\x05TRUNK\x10\x02\x12\x0b\n\x07PRIMARY\x10\x03\x12\r\n\tSECONDARY\x10\x04\x12\x0c\n\x08TERTIARY\x10\x05\x12\x0f\n\x0bRESIDENTIAL\x10\x06\x12\x10\n\x0cUNCLASSIFIED\x10\x07\x12\x0b\n\x07SERVICE\x10\x08\x12\x19\n\x15SERVICE_PARKING_AISLE\x10\t\x12\x14\n\x10SERVICE_DRIVEWAY\x10\n\x12\x11\n\rSERVICE_ALLEY\x10\x0b\x12\x1c\n\x18SERVICE_EMERGENCY_ACCESS\x10\x0c\x12\x19\n\x15SERVICE_DRIVE_THROUGH\x10\r\x12\x11\n\rMOTORWAY_LINK\x10\x0e\x12\x0e\n\nTRUNK_LINK\x10\x0f\x12\x10\n\x0cPRIMARY_LINK\x10\x10\x12\x12\n\x0eSECONDARY_LINK\x10\x11\x12\x11\n\rTERTIARY_LINK\x10\x12\x12\x19\n\x15SERVICE_LIVING_STREET\x10\x13\x12\x0e\n\nPEDESTRIAN\x10\x14\x12\x08\n\x04PATH\x10\x15\x12\t\n\x05STEPS\x10\x16\x12\x0c\n\x08\x43YCLEWAY\x10\x17"\x7f\n\x0fTravelDirection\x12\x1c\n\x18UNKNOWN_TRAVEL_DIRECTION\x10\x00\x12\x0b\n\x07TWO_WAY\x10\x01\x12\x13\n\x0fONE_WAY_FORWARD\x10\x02\x12\x14\n\x10ONE_WAY_BACKWARD\x10\x03\x12\x16\n\x12ONE_WAY_REVERSIBLE\x10\x04"\x8a\x01\n\rSideOfSegment\x12\x1b\n\x17UNKNOWN_SIDE_OF_SEGMENT\x10\x00\x12\x1a\n\x16\x45ITHER_SIDE_OF_SEGMENT\x10\x01\x12\x10\n\x0cSEGMENT_LEFT\x10\x02\x12\x11\n\rSEGMENT_RIGHT\x10\x03\x12\x1b\n\x17NEITHER_SIDE_OF_SEGMENT\x10\x04"a\n\nBikeAccess\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0f\n\x0bNOT_ALLOWED\x10\x01\x12\x0b\n\x07\x41LLOWED\x10\x02\x12\n\n\x06SHARED\x10\x03\x12\r\n\tDEDICATED\x10\x04\x12\r\n\tPROTECTED\x10\x05J\x04\x08\x16\x10\x17"\xbe\x01\n\x08Junction\x12#\n\x1bis_non_trivial_intersection\x18\x04 \x01(\x08\x12\x30\n\x12road_network_nodes\x18\x01 \x03(\x0b\x32\x14.l5kit.maps.GlobalId\x12#\n\x05lanes\x18\x03 \x03(\x0b\x32\x14.l5kit.maps.GlobalId\x12\x36\n\x18traffic_control_elements\x18\x02 \x03(\x0b\x32\x14.l5kit.maps.GlobalId"\xbb\n\n\x04Lane\x12\x38\n\x1aparent_segment_or_junction\x18\x01 \x01(\x0b\x32\x14.l5kit.maps.GlobalId\x12\x39\n\x12\x61\x63\x63\x65ss_restriction\x18\x0b \x01(\x0b\x32\x1d.l5kit.maps.AccessRestriction\x12U\n\x1dorientation_in_parent_segment\x18\x0c \x01(\x0e\x32..l5kit.maps.RoadNetworkSegment.TravelDirection\x12?\n\x1cturn_type_in_parent_junction\x18\r \x01(\x0e\x32\x19.l5kit.maps.Lane.TurnType\x12'\n\tgeo_frame\x18\x02 \x01(\x0b\x32\x14.l5kit.maps.GeoFrame\x12\x30\n\rleft_boundary\x18\x03 \x01(\x0b\x32\x19.l5kit.maps.Lane.Boundary\x12\x31\n\x0eright_boundary\x18\x04 \x01(\x0b\x32\x19.l5kit.maps.Lane.Boundary\x12)\n\x0blanes_ahead\x18\x05 \x03(\x0b\x32\x14.l5kit.maps.GlobalId\x12\x37\n\x19\x61\x64jacent_lane_change_left\x18\x06 \x01(\x0b\x32\x14.l5kit.maps.GlobalId\x12\x38\n\x1a\x61\x64jacent_lane_change_right\x18\x07 \x01(\x0b\x32\x14.l5kit.maps.GlobalId\x12.\n\x10traffic_controls\x18\x08 \x03(\x0b\x32\x14.l5kit.maps.GlobalId\x12,\n\x0eyield_to_lanes\x18\t \x03(\x0b\x32\x14.l5kit.maps.GlobalId\x12\x1c\n\x14\x63\x61n_have_parked_cars\x18\n \x01(\x08\x12#\n\x05tolls\x18\x0e \x03(\x0b\x32\x14.l5kit.maps.GlobalId\x1a\xf0\x03\n\x08\x42oundary\x12\x1a\n\x12vertex_deltas_x_cm\x18\x01 \x03(\x11\x12\x1a\n\x12vertex_deltas_y_cm\x18\x02 \x03(\x11\x12\x1a\n\x12vertex_deltas_z_cm\x18\x03 \x03(\x11\x12;\n\x0c\x64ivider_type\x18\x04 \x03(\x0e\x32%.l5kit.maps.Lane.Boundary.DividerType\x12\x1c\n\x14type_change_point_cm\x18\x05 \x03(\x05"\xb4\x02\n\x0b\x44ividerType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x08\n\x04NONE\x10\x01\x12\x17\n\x13SINGLE_YELLOW_SOLID\x10\x02\x12\x16\n\x12SINGLE_WHITE_SOLID\x10\x03\x12\x18\n\x14SINGLE_YELLOW_DASHED\x10\x04\x12\x17\n\x13SINGLE_WHITE_DASHED\x10\x05\x12\x17\n\x13\x44OUBLE_YELLOW_SOLID\x10\x06\x12\x16\n\x12\x44OUBLE_WHITE_SOLID\x10\x07\x12'\n#DOUBLE_YELLOW_SOLID_FAR_DASHED_NEAR\x10\x08\x12'\n#DOUBLE_YELLOW_DASHED_FAR_SOLID_NEAR\x10\t\x12\x0c\n\x08\x43URB_RED\x10\n\x12\x0f\n\x0b\x43URB_YELLOW\x10\x0b\x12\x08\n\x04\x43URB\x10\x0c"f\n\x08TurnType\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0b\n\x07THROUGH\x10\x01\x12\x08\n\x04LEFT\x10\x02\x12\x0e\n\nSHARP_LEFT\x10\x03\x12\t\n\x05RIGHT\x10\x04\x12\x0f\n\x0bSHARP_RIGHT\x10\x05\x12\n\n\x06U_TURN\x10\x06"\xf9)\n\x15TrafficControlElement\x12+\n\tstop_sign\x18\x07 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12,\n\nyield_sign\x18\x08 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12G\n\tstop_line\x18/ \x01(\x0b\x32\x32.l5kit.maps.TrafficControlElement.AuxiliaryElementH\x00\x12G\n\rtraffic_light\x18\x1d \x01(\x0b\x32..l5kit.maps.TrafficControlElement.TrafficLightH\x00\x12Y\n\x16signal_flashing_yellow\x18\t \x01(\x0b\x32\x37.l5kit.maps.TrafficControlElement.TrafficLightFaceStateH\x00\x12V\n\x13signal_flashing_red\x18\n \x01(\x0b\x32\x37.l5kit.maps.TrafficControlElement.TrafficLightFaceStateH\x00\x12R\n\x0fsignal_red_face\x18\x0b \x01(\x0b\x32\x37.l5kit.maps.TrafficControlElement.TrafficLightFaceStateH\x00\x12U\n\x12signal_yellow_face\x18\x0c \x01(\x0b\x32\x37.l5kit.maps.TrafficControlElement.TrafficLightFaceStateH\x00\x12T\n\x11signal_green_face\x18\r \x01(\x0b\x32\x37.l5kit.maps.TrafficControlElement.TrafficLightFaceStateH\x00\x12]\n\x1asignal_left_arrow_red_face\x18\x1e \x01(\x0b\x32\x37.l5kit.maps.TrafficControlElement.TrafficLightFaceStateH\x00\x1212 # @@protoc_insertion_point(imports)
14 _sym_db = _symbol_database.Default()
---> 17 DESCRIPTOR = _descriptor.FileDescriptor(
18 name='road_network.proto',
19 package='l5kit.maps',
20 syntax='proto3',
21 serialized_options=b'Z\004maps',
22 create_key=_descriptor._internal_create_key,
23 serialized_pb=b'\n\x12road_network.proto\x12\nl5kit.maps\x1a google/protobuf/descriptor.proto\x1a\x1bgoogle/protobuf/empty.proto"\x16\n\x08GlobalId\x12\n\n\x02id\x18\x01 \x01(\x0c"P\n\x0bGeoLocation\x12\x0e\n\x06lat_e7\x18\x01 \x01(\x0f\x12\x0e\n\x06lng_e7\x18\x02 \x01(\x0f\x12\x15\n\x0b\x61ltitude_cm\x18\x03 \x01(\x11H\x00\x42\n\n\x08\x41ltitude"L\n\x08GeoFrame\x12'\n\x06origin\x18\x01 \x01(\x0b\x32\x17.l5kit.maps.GeoLocation\x12\x17\n\x0f\x62\x65\x61ring_degrees\x18\x02 \x01(\x02"7\n\x0fLocalizedString\x12\x15\n\rlanguage_code\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t"\xa2\x01\n\x0fRoadNetworkNode\x12)\n\x08location\x18\x01 \x01(\x0b\x32\x17.l5kit.maps.GeoLocation\x12+\n\rroad_segments\x18\x02 \x03(\x0b\x32\x14.l5kit.maps.GlobalId\x12\x0f\n\x07z_level\x18\x03 \x01(\x11\x12&\n\x08junction\x18\x04 \x01(\x0b\x32\x14.l5kit.maps.GlobalId"\xa8\x01\n\x11\x41\x63\x63\x65ssRestriction\x12\x30\n\x04type\x18\x01 \x01(\x0e\x32".l5kit.maps.AccessRestriction.Type"a\n\x04Type\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x12\n\x0eNO_RESTRICTION\x10\x01\x12\x0c\n\x08ONLY_HOV\x10\x02\x12\x0c\n\x08ONLY_BUS\x10\x03\x12\r\n\tONLY_BIKE\x10\x04\x12\r\n\tONLY_TURN\x10\x05"\xad\x02\n\x11\x44\x61ilyTimeInterval\x12\x43\n\x0f\x64\x61y_of_the_week\x18\x01 \x01(\x0e\x32*.l5kit.maps.DailyTimeInterval.DayOfTheWeek\x12 \n\x18start_local_time_seconds\x18\x02 \x01(\x05\x12\x1e\n\x16\x65nd_local_time_seconds\x18\x03 \x01(\x05\x12%\n\x1dtimezone_database_region_name\x18\x04 \x01(\t"j\n\x0c\x44\x61yOfTheWeek\x12\n\n\x06SUNDAY\x10\x00\x12\n\n\x06MONDAY\x10\x01\x12\x0b\n\x07TUESDAY\x10\x02\x12\r\n\tWEDNESDAY\x10\x03\x12\x0c\n\x08THURSDAY\x10\x04\x12\n\n\x06\x46RIDAY\x10\x05\x12\x0c\n\x08SATURDAY\x10\x06"A\n\x08Schedule\x12\x35\n\x0e\x64\x61ily_schedule\x18\x01 \x03(\x0b\x32\x1d.l5kit.maps.DailyTimeInterval"[\n\tCondition\x12\x41\n\x18\x64\x61ily_temporal_condition\x18\x01 \x01(\x0b\x32\x1d.l5kit.maps.DailyTimeIntervalH\x00\x42\x0b\n\tcondition"\xdc\x10\n\x12RoadNetworkSegment\x12)\n\x08vertices\x18\x01 \x03(\x0b\x32\x17.l5kit.maps.GeoLocation\x12(\n\nstart_node\x18\x02 \x01(\x0b\x32\x14.l5kit.maps.GlobalId\x12&\n\x08\x65nd_node\x18\x03 \x01(\x0b\x32\x14.l5kit.maps.GlobalId\x12@\n\x10\x66orward_lane_set\x18\x04 \x01(\x0b\x32&.l5kit.maps.RoadNetworkSegment.LaneSet\x12\x41\n\x11\x62\x61\x63kward_lane_set\x18\r \x01(\x0b\x32&.l5kit.maps.RoadNetworkSegment.LaneSet\x12\x1f\n\x17num_bidirectional_lanes\x18\x0f \x01(\x05\x12#\n\x05lanes\x18\x0c \x03(\x0b\x32\x14.l5kit.maps.GlobalId\x12)\n\x04name\x18\x05 \x03(\x0b\x32\x1b.l5kit.maps.LocalizedString\x12<\n\nroad_class\x18\x06 \x01(\x0e\x32(.l5kit.maps.RoadNetworkSegment.RoadClass\x12\x12\n\nis_private\x18\x0e \x01(\x08\x12\x14\n\x0cis_toll_road\x18\x11 \x01(\x08\x12H\n\x10travel_direction\x18\x07 \x01(\x0e\x32..l5kit.maps.RoadNetworkSegment.TravelDirection\x12\x0f\n\x07z_level\x18\x08 \x01(\x11\x12%\n\x1dspeed_limit_meters_per_second\x18\t \x01(\x02\x12\x38\n0backward_direction_speed_limit_meters_per_second\x18\n \x01(\x02\x12*\n\x0crestrictions\x18\x0b \x03(\x0b\x32\x14.l5kit.maps.GlobalId\x12\x11\n\tdriveable\x18\x14 \x01(\x08\x12>\n\x08walkable\x18\x15 \x01(\x0e\x32,.l5kit.maps.RoadNetworkSegment.SideOfSegment\x12\x43\n\x10\x66orward_bikeable\x18\x17 \x01(\x0e\x32).l5kit.maps.RoadNetworkSegment.BikeAccess\x12\x44\n\x11\x62\x61\x63kward_bikeable\x18\x18 \x01(\x0e\x32).l5kit.maps.RoadNetworkSegment.BikeAccess\x1a\xed\x02\n\x07LaneSet\x12\x19\n\x11num_driving_lanes\x18\x01 \x01(\x05\x12#\n\x1bnum_left_turn_driving_lanes\x18\x02 \x01(\x05\x12$\n\x1cnum_right_turn_driving_lanes\x18\x03 \x01(\x05\x12+\n#turn_descriptions_for_driving_lanes\x18\x04 \x01(\t\x12O\n\x10\x62ike_lane_access\x18\x10 \x03(\x0e\x32\x35.l5kit.maps.RoadNetworkSegment.LaneSet.BikeLaneAccess"
\n\x1dsignal_left_arrow_yellow_face\x18$ \x01(\x0b\x32\x37.l5kit.maps.TrafficControlElement.TrafficLightFaceStateH\x00\x12_\n\x1csignal_left_arrow_green_face\x18\x1f \x01(\x0b\x32\x37.l5kit.maps.TrafficControlElement.TrafficLightFaceStateH\x00\x12^\n\x1bsignal_right_arrow_red_face\x18 \x01(\x0b\x32\x37.l5kit.maps.TrafficControlElement.TrafficLightFaceStateH\x00\x12\x61\n\x1esignal_right_arrow_yellow_face\x18% \x01(\x0b\x32\x37.l5kit.maps.TrafficControlElement.TrafficLightFaceStateH\x00\x12
\n\x1dsignal_right_arrow_green_face\x18! \x01(\x0b\x32\x37.l5kit.maps.TrafficControlElement.TrafficLightFaceStateH\x00\x12\x63\n signal_upper_left_arrow_red_face\x18& \x01(\x0b\x32\x37.l5kit.maps.TrafficControlElement.TrafficLightFaceStateH\x00\x12\x66\n#signal_upper_left_arrow_yellow_face\x18' \x01(\x0b\x32\x37.l5kit.maps.TrafficControlElement.TrafficLightFaceStateH\x00\x12\x65\n"signal_upper_left_arrow_green_face\x18( \x01(\x0b\x32\x37.l5kit.maps.TrafficControlElement.TrafficLightFaceStateH\x00\x12\x64\n!signal_upper_right_arrow_red_face\x18) \x01(\x0b\x32\x37.l5kit.maps.TrafficControlElement.TrafficLightFaceStateH\x00\x12g\n$signal_upper_right_arrow_yellow_face\x18* \x01(\x0b\x32\x37.l5kit.maps.TrafficControlElement.TrafficLightFaceStateH\x00\x12\x66\n#signal_upper_right_arrow_green_face\x18+ \x01(\x0b\x32\x37.l5kit.maps.TrafficControlElement.TrafficLightFaceStateH\x00\x12T\n\x11signal_red_u_turn\x18, \x01(\x0b\x32\x37.l5kit.maps.TrafficControlElement.TrafficLightFaceStateH\x00\x12W\n\x14signal_yellow_u_turn\x18- \x01(\x0b\x32\x37.l5kit.maps.TrafficControlElement.TrafficLightFaceStateH\x00\x12V\n\x13signal_green_u_turn\x18. \x01(\x0b\x32\x37.l5kit.maps.TrafficControlElement.TrafficLightFaceStateH\x00\x12,\n\nspeed_bump\x18\x0f \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12,\n\nspeed_hump\x18" \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12U\n\x14pedestrian_crosswalk\x18\x10 \x01(\x0b\x32\x35.l5kit.maps.TrafficControlElement.PedestrianCrosswalkH\x00\x12\x31\n\x0fkeep_clear_zone\x18\x11 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12:\n\x18pedestrian_crossing_sign\x18\x12 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x33\n\x11signal_ahead_sign\x18\x13 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x33\n\x11no_left_turn_sign\x18\x14 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x34\n\x12no_right_turn_sign\x18\x15 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12?\n\x1dleft_turn_yield_on_green_sign\x18\x16 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x31\n\x0fno_parking_sign\x18\x17 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12.\n\x0cone_way_sign\x18\x18 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x32\n\x10school_zone_sign\x18\x19 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12.\n\x0cparking_zone\x18# \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x31\n\x0fspeed_bump_sign\x18\x1b \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x33\n\x11\x63onstruction_zone\x18\x31 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12@\n\x1estop_here_for_pedestrians_sign\x18\x32 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12Q\n/state_law_stop_for_pedestrian_in_crosswalk_sign\x18\x33 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x41\n\x1fyield_here_for_pedestrians_sign\x18\x34 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12L\n*turning_vehicles_yield_to_pedestrians_sign\x18\x35 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x45\n#state_law_yield_for_pedestrian_sign\x18\x36 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x43\n!railroad_crossing_regulatory_sign\x18\x37 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12@\n\x1erailroad_crossing_warning_sign\x18\x38 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12>\n\x1crailroad_crossing_other_sign\x18\x39 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12=\n\x1broundabout_circulation_sign\x18: \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12=\n\x1broundabout_directional_sign\x18; \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x37\n\x15roundabout_other_sign\x18< \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12:\n\x18no_left_turn_on_red_sign\x18= \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12;\n\x19no_right_turn_on_red_sign\x18> \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x35\n\x13no_turn_on_red_sign\x18? \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x33\n\x11\x64o_not_enter_sign\x18@ \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x30\n\x0eno_u_turn_sign\x18\x41 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x39\n\x17no_left_and_u_turn_sign\x18\x42 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12:\n\x18no_straight_through_sign\x18\x43 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x35\n\x13left_turn_only_sign\x18\x44 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x36\n\x14right_turn_only_sign\x18\x45 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x32\n\x10u_turn_only_sign\x18\x46 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12<\n\x1astraight_through_only_sign\x18G \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12=\n\x1bother_turn_restriction_sign\x18H \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x38\n\x16\x63onstruction_zone_sign\x18I \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12'\n\tgeo_frame\x18\x02 \x01(\x0b\x32\x14.l5kit.maps.GeoFrame\x12\x1a\n\x12points_x_deltas_cm\x18\x03 \x03(\x11\x12\x1a\n\x12points_y_deltas_cm\x18\x04 \x03(\x11\x12\x1a\n\x12points_z_deltas_cm\x18\x05 \x03(\x11\x12\x45\n\rgeometry_type\x18\x30 \x01(\x0e\x32..l5kit.maps.TrafficControlElement.GeometryType\x12\x32\n\x10\x63ontrolled_paths\x18\x06 \x03(\x0b\x32\x18.l5kit.maps.LaneSequence\x1an\n\x13PedestrianCrosswalk\x12,\n\x0etraffic_lights\x18\x01 \x03(\x0b\x32\x14.l5kit.maps.GlobalId\x12)\n\x0byield_lines\x18\x02 \x03(\x0b\x32\x14.l5kit.maps.GlobalId\x1aR\n\x10\x41uxiliaryElement\x12>\n primary_traffic_control_elements\x18\x01 \x03(\x0b\x32\x14.l5kit.maps.GlobalId\x1a\xa6\x02\n\x15TrafficLightFaceState\x12]\n\x13yield_rules_when_on\x18\x01 \x03(\x0b\x32@.l5kit.maps.TrafficControlElement.TrafficLightFaceState.YieldSet\x12\x1c\n\x14no_right_turn_on_red\x18\x02 \x01(\x08\x1a\x8f\x01\n\x08YieldSet\x12"\n\x04lane\x18\x01 \x01(\x0b\x32\x14.l5kit.maps.GlobalId\x12,\n\x0eyield_to_lanes\x18\x02 \x03(\x0b\x32\x14.l5kit.maps.GlobalId\x12\x31\n\x13yield_to_crosswalks\x18\x03 \x03(\x0b\x32\x14.l5kit.maps.GlobalId\x1a\x39\n\x0cTrafficLight\x12)\n\x0b\x66\x61\x63\x65_states\x18\x03 \x03(\x0b\x32\x14.l5kit.maps.GlobalId"S\n\x0cGeometryType\x12\n\n\x06UKNOWN\x10\x00\x12\t\n\x05POINT\x10\x01\x12\x0f\n\x0bMULTI_POINT\x10\x02\x12\x0e\n\nLINESTRING\x10\x03\x12\x0b\n\x07POLYGON\x10\x04\x42\x06\n\x04TypeJ\x04\x08\x0e\x10\x0f"\x88\x03\n\x0fSegmentSequence\x12.\n\x04type\x18\x01 \x01(\x0e\x32 .l5kit.maps.SegmentSequence.Type\x12\x44\n\x08segments\x18\x02 \x03(\x0b\x32\x32.l5kit.maps.SegmentSequence.SegmentWithOrientation\x1a\xcb\x01\n\x16SegmentWithOrientation\x12%\n\x07segment\x18\x01 \x01(\x0b\x32\x14.l5kit.maps.GlobalId\x12S\n\x0borientation\x18\x02 \x01(\x0e\x32>.l5kit.maps.SegmentSequence.SegmentWithOrientation.Orientation"5\n\x0bOrientation\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0b\n\x07\x46ORWARD\x10\x01\x12\x0c\n\x08\x42\x41\x43KWARD\x10\x02"1\n\x04Type\x12\x0b\n\x07UNKNOWN\x10\x00\x12\r\n\tFORBIDDEN\x10\x01\x12\r\n\tMANDATORY\x10\x02"3\n\x0cLaneSequence\x12#\n\x05lanes\x18\x01 \x03(\x0b\x32\x14.l5kit.maps.GlobalId"A\n\rLaneSequences\x12\x30\n\x0elane_sequences\x18\x01 \x03(\x0b\x32\x18.l5kit.maps.LaneSequence"^\n\x07Polygon\x12/\n\x0eshell_vertices\x18\x01 \x03(\x0b\x32\x17.l5kit.maps.GeoLocation\x12"\n\x05holes\x18\x02 \x03(\x0b\x32\x13.l5kit.maps.Polygon"5\n\x0cMultiPolygon\x12%\n\x08polygons\x18\x01 \x03(\x0b\x32\x13.l5kit.maps.Polygon"\xe7\x05\n\x0e\x41nnotatedShape\x12)\n\x04name\x18\x01 \x03(\x0b\x32\x1b.l5kit.maps.LocalizedString\x12.\n\x0cmultipolygon\x18\x02 \x01(\x0b\x32\x18.l5kit.maps.MultiPolygon\x12\x37\n\x08\x62uilding\x18\x03 \x01(\x0b\x32#.l5kit.maps.AnnotatedShape.BuildingH\x00\x12\x33\n\x06region\x18\x04 \x01(\x0b\x32!.l5kit.maps.AnnotatedShape.RegionH\x00\x12'\n\x05venue\x18\x05 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x39\n\x17\x61\x64ministrative_boundary\x18\x06 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12&\n\x04park\x18\x07 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x12\x38\n\x16\x64rivable_surface_prior\x18\x08 \x01(\x0b\x32\x16.google.protobuf.EmptyH\x00\x1a\xa3\x02\n\x08\x42uilding\x12\x36\n\x04type\x18\x01 \x01(\x0e\x32(.l5kit.maps.AnnotatedShape.Building.Type\x12\x15\n\rheight_meters\x18\x02 \x01(\x05\x12\x1b\n\x13\x61\x62ove_ground_floors\x18\x03 \x01(\x05"\xaa\x01\n\x04Type\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x0e\n\nCOMMERCIAL\x10\x01\x12\x0f\n\x0bRESIDENTIAL\x10\x02\x12\x12\n\x0eTRANSPORTATION\x10\x03\x12\x0c\n\x08HOSPITAL\x10\x04\x12\t\n\x05\x45VENT\x10\x05\x12\x15\n\x11PARKING_STRUCTURE\x10\x06\x12\r\n\tRELIGIOUS\x10\x07\x12\x0f\n\x0b\x45\x44UCATIONAL\x10\x08\x12\x10\n\x0cGOVERNMENTAL\x10\t\x1a\x18\n\x06Region\x12\x0e\n\x06source\x18\x01 \x01(\tB\x06\n\x04Type"e\n\tLatLngBox\x12+\n\nsouth_west\x18\x01 \x01(\x0b\x32\x17.l5kit.maps.GeoLocation\x12+\n\nnorth_east\x18\x02 \x01(\x0b\x32\x17.l5kit.maps.GeoLocation"\xc7\x05\n\nMapElement\x12 \n\x02id\x18\x01 \x01(\x0b\x32\x14.l5kit.maps.GlobalId\x12/\n\x07\x65lement\x18\x02 \x01(\x0b\x32\x1e.l5kit.maps.MapElement.Element\x12+\n\x0c\x62ounding_box\x18\x03 \x01(\x0b\x32\x15.l5kit.maps.LatLngBox\x12J\n\x15\x61ssociated_conditions\x18\x05 \x03(\x0b\x32+.l5kit.maps.MapElement.AssociatedConditions\x1a\xf6\x02\n\x07\x45lement\x12\x31\n\x07segment\x18\x01 \x01(\x0b\x32\x1e.l5kit.maps.RoadNetworkSegmentH\x00\x12+\n\x04node\x18\x02 \x01(\x0b\x32\x1b.l5kit.maps.RoadNetworkNodeH\x00\x12 \n\x04lane\x18\x03 \x01(\x0b\x32\x10.l5kit.maps.LaneH\x00\x12\x44\n\x17traffic_control_element\x18\x04 \x01(\x0b\x32!.l5kit.maps.TrafficControlElementH\x00\x12(\n\x08junction\x18\x05 \x01(\x0b\x32\x14.l5kit.maps.JunctionH\x00\x12\x37\n\x10segment_sequence\x18\x06 \x01(\x0b\x32\x1b.l5kit.maps.SegmentSequenceH\x00\x12\x35\n\x0f\x61nnotated_shape\x18\x08 \x01(\x0b\x32\x1a.l5kit.maps.AnnotatedShapeH\x00\x42\t\n\x07\x65lement\x1at\n\x14\x41ssociatedConditions\x12)\n\nconditions\x18\x01 \x03(\x0b\x32\x15.l5kit.maps.Condition\x12\x31\n\toverrides\x18\x02 \x01(\x0b\x32\x1e.l5kit.maps.MapElement.Element"E\n\x0bMapFragment\x12\x0c\n\x04name\x18\x01 \x01(\t\x12(\n\x08\x65lements\x18\x02 \x03(\x0b\x32\x16.l5kit.maps.MapElementB\x06Z\x04mapsb\x06proto3'24 ,
25 dependencies=[google_dot_protobuf_dot_descriptor__pb2.DESCRIPTOR,google_dot_protobuf_dot_empty__pb2.DESCRIPTOR,])
29 _ACCESSRESTRICTION_TYPE = _descriptor.EnumDescriptor(
30 name='Type',
31 full_name='l5kit.maps.AccessRestriction.Type',
(...)
70 serialized_end=672,
71 )
72 _sym_db.RegisterEnumDescriptor(_ACCESSRESTRICTION_TYPE)
File ~/anaconda3/envs/lyft/lib/python3.8/site-packages/google/protobuf/descriptor.py:1028, in FileDescriptor.new(cls, name, package, options, serialized_options, serialized_pb, dependencies, public_dependencies, syntax, pool, create_key)
1026 raise RuntimeError('Please link in cpp generated lib for %s' % (name))
1027 elif serialized_pb:
-> 1028 return _message.default_pool.AddSerializedFile(serialized_pb)
1029 else:
1030 return super(FileDescriptor, cls).new(cls)
TypeError: Couldn't build proto file into descriptor pool: duplicate file name (road_network.proto)
Anyone knows how to solve this problem. Thanks.
The text was updated successfully, but these errors were encountered: