Command "python setup.py egg_info" failed with error code 1 in /var/local/ralph/

Trying to run the local development version using the command

docker compose -f docker-compose-local-dev.yml run --rm web /root/init.sh

Results in this fatal error:

Obtaining file:///var/local/ralph (from -r /var/local/ralph/requirements/test.txt (line 1))
Complete output from command python setup.py egg_info:
fatal: No annotated tags can describe ‘1ed7c076e5d8fe579ae5b9b9bfef913aa7b7f804’.
However, there were unannotated tags: try --tags.
Traceback (most recent call last):
File “”, line 1, in
File “/var/local/ralph/setup.py”, line 25, in
version=get_version(),
File “/var/local/ralph/setup.py”, line 19, in get_version
ver = subprocess.check_output([script], shell=True)
File “/usr/lib/python3.6/subprocess.py”, line 356, in check_output
**kwargs).stdout
File “/usr/lib/python3.6/subprocess.py”, line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command ‘[’/var/local/ralph/get_version.sh’]’ returned non-zero exit status 128.

----------------------------------------

Command “python setup.py egg_info” failed with error code 1 in /var/local/ralph/

I solved this error by creating a git annotated tag on my local forked repo:

git tag -a 20230926.1 -m "Updated changelog for 20230926.1 version."

I simply used the commit message from this tag