Python 3.10 not supported

#17
by ahmed-sevimli - opened

I tried running your scripts from the repo, the speech_to_text_cache_aware_streaming_infer.py but it causes a python syntax error with Python version 3.10.12 which is a widely used standard still. The error traceback goes like this, a fix would be appreciated:

  File "C:\NeMo\examples\asr\asr_cache_aware_streaming\speech_to_text_cache_aware_streaming_infer.py", line 117, in <module>
    from nemo.collections.asr.parts.utils.streaming_utils import CacheAwareStreamingAudioBuffer
  File "C:\Users\user\AppData\Local\miniconda3\envs\nemo\lib\site-packages\nemo\collections\asr\parts\utils\streaming_utils.py", line 2467
    shifted_indices = shifted_indices[..., *[None for _ in range(len(self.dim_shape))]]
                                           ^
SyntaxError: invalid syntax

README says you need to install Python >= 3.11:

"We recommend you install it after you've installed python >= 3.11, Cython and latest PyTorch version."

Sign up or log in to comment