open-traffic-generator/snappi

snappi requires 'typing_extensions' module but doesn't install it automatically

ankur-sheth opened this issue · 1 comments

Python 3.6.8 (default, Nov 16 2020, 16:55:22)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-44)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import snappi
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/snappi/snappi.py", line 16, in <module>
    from typing import Union, Dict, List, Any, Literal
ImportError: cannot import name 'Literal'
 
During handling of the above exception, another exception occurred:
 
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.6/site-packages/snappi/__init__.py", line 1, in <module>
    from .snappi import Config
  File "/usr/local/lib/python3.6/site-packages/snappi/snappi.py", line 18, in <module>
    from typing_extensions import Literal
ModuleNotFoundError: No module named 'typing_extensions'
>>>
>>>
KeyboardInterrupt
>>>

FYI workaround for now is to use python 3.8