Using Python module to get Project Tags

api
python

#1

When I run the command:
git show --tags | grep tag

I get exactly what I need when inside my branch of a project. But I need to access an entire Group and look at all the projects.

I can access our Gitlab repository and get all the projects via the API:
git_projects = group.projects.list(all=True)

But the documentation says I can get the project tags like this:
tags = project.tags.list()

This only returns error:
Traceback (most recent call last):
File “/home/burk/.local/lib/python3.5/site-packages/gitlab/base.py”, line 56, in getattr
return self.dict[’_updated_attrs’][name]
KeyError: ‘tags’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/home/burk/.local/lib/python3.5/site-packages/gitlab/base.py”, line 59, in getattr
value = self.dict[’_attrs’][name]
KeyError: ‘tags’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/home/burk/.local/lib/python3.5/site-packages/gitlab/base.py”, line 79, in getattr
return self.dict[’_parent_attrs’][name]
KeyError: ‘tags’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “tags.py”, line 32, in
print(p.tags.list())
File “/home/burk/.local/lib/python3.5/site-packages/gitlab/base.py”, line 81, in getattr
raise AttributeError(name)
AttributeError: tags

Is this some sort of version error?