packaging.version.InvalidVersion: Invalid version: ' '

I am trying to run text generation example provided in ‘GitHub - huggingface/optimum-habana: Easy and lightning fast training of 🤗 Transformers on Habana Gaudi processor (HPU)’ in AWS DL1 instance. I receive Invalid Version error. I tried using the AMI as well but still receive the same. Not sure if I am missing something. Sharing the error:

Traceback (most recent call last):
File “/home/ubuntu/optimum-habana/examples/text-generation/…/”, line 35, in
from optimum.habana.distributed import DistributedRunner
File “/home/ubuntu/.local/lib/python3.10/site-packages/optimum/habana/”, line 29, in
File “/home/ubuntu/.local/lib/python3.10/site-packages/optimum/habana/”, line 180, in check_synapse_version
habana_frameworks_version_number = get_habana_frameworks_version()
File “/home/ubuntu/.local/lib/python3.10/site-packages/optimum/habana/”, line 218, in get_habana_frameworks_version
return version.parse(output.stdout.split(“\n”)[0].split(" “)[-1])
File “/home/ubuntu/.local/lib/python3.10/site-packages/packaging/”, line 54, in parse
return Version(version)
File “/home/ubuntu/.local/lib/python3.10/site-packages/packaging/”, line 200, in init
raise InvalidVersion(f"Invalid version: ‘{version}’”)
packaging.version.InvalidVersion: Invalid version: ‘’

I face the same issue while running other examples available in the repo.

Hi @ashwintcs! This PR must have solved this issue. Have you tried again with the latest release or installing Optimum Habana from source?