You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Resolving gitlab remote.
Traceback (most recent call last):
File "lib/manage_gitlab_project.py", line 10, in
import gitlab
File "/usr/lib/python2.7/site-packages/gitlab/init.py", line 612
) from e
^
SyntaxError: invalid syntax
There was an unknown issue with manage_gitlab_project.py
I found out what the issue was.
By checking when the docs were written I found out that they were written at the time python-gitlab was on v1.x.
By doing the following:
Activity
flylan commentedon Jun 15, 2020
same error
flylan commentedon Jun 15, 2020
Resolving gitlab remote.
Traceback (most recent call last):
File "lib/manage_gitlab_project.py", line 10, in
import gitlab
File "/usr/lib/python2.7/site-packages/gitlab/init.py", line 613
) from e
^
SyntaxError: invalid syntax
ydewinte commentedon Mar 22, 2021
I found out what the issue was.
By checking when the docs were written I found out that they were written at the time python-gitlab was on v1.x.
By doing the following:
It started working:
samrocketman commentedon Aug 1, 2021
@ydewinte thanks for the solution for others.
I think I will touch up this project and simplify it a bit. I'll pip freeze dependencies and update documentation to recommend use of virtualenv.
For now, this issue will remain open and I will close it when there's a fix out for users which don't involve running into errors out of the box.
As a side note; what is the oldest version of GitLab which should be supported currently?