duckietown / gym-duckietown

Self-driving car simulator for the Duckietown universe
http://duckietown.org
Other
51 stars 19 forks source link

TypedDict from typing library #240

Open nerkn opened 3 years ago

nerkn commented 3 years ago

Recently my sim failed to work in google colab. Error is this, any suggestions?

/usr/local/lib/python3.6/dist-packages/duckietown_world/world_duckietown/map_loading.py in () 14 from .duckiebot import DB18 15 from .duckietown_map import DuckietownMap ---> 16 from .old_map_format import MapFormat1Object 17 from .other_objects import ( 18 Barrier,

/usr/local/lib/python3.6/dist-packages/duckietown_world/world_duckietown/old_map_format.py in () ----> 1 from typing import Dict, List, NewType, TypedDict, Union 2 3 all = ["MapFormat1", "MapFormat1Object", "MapFormat1Constants"] 4 5

ImportError: cannot import name 'TypedDict'

mostafaelaraby commented 3 years ago

@nerkn I recommend you to check this Colab notebook that used the gym-duckietown to train an imitation learning baseline, check the dependencies installations and the virtual display setup

nerkn commented 3 years ago

Same error, It doesnt work either

File "/usr/local/lib/python3.6/dist-packages/duckietown_world/world_duckietown/old_map_format.py", line 1, in from typing import Dict, List, NewType, TypedDict, Union ImportError: cannot import name 'TypedDict'

https://colab.research.google.com/github/duckietown/challenge-aido_LF-baseline-dagger-pytorch/blob/main/notebook.ipynb

greta-p commented 3 years ago

The problem here is python 3.6.

for < 3.8 need a library called typing_extensions installed

On Sun, Dec 6, 2020 at 4:02 PM nerkn notifications@github.com wrote:

Same error, It doesnt work either

File "/usr/local/lib/python3.6/dist-packages/duckietown_world/world_duckietown/old_map_format.py", line 1, in from typing import Dict, List, NewType, TypedDict, Union ImportError: cannot import name 'TypedDict'

https://colab.research.google.com/github/duckietown/challenge-aido_LF-baseline-dagger-pytorch/blob/main/notebook.ipynb

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/duckietown/gym-duckietown/issues/240#issuecomment-739514924, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD7YNQ27A2LRJBBFPLG3BTDSTOMH3ANCNFSM4UPBRJ5A .