Request updated gitlab-python-runner - Stale gitlab-python-runner broken with current gitlab-emulator ?
Bit new at this, so maybe I'm doing something wrong, but looking for a gitlab runner on AIX and this seemed a neat option.
When simply installing with pip3 install gitlab-python-runner
Then it's choosing 14.3.20 and gitlab_emulator 16.3.2
Defaulting to user installation because normal site-packages is not writeable
Collecting gitlab-python-runner
Using cached gitlab_python_runner-14.3.20-py3-none-any.whl.metadata (445 bytes)
Requirement already satisfied: pyyaml>=5.1 in /site-packages (from gitlab-python-runner) (6.0.2)
Collecting gitlab-emulator>=0.11.1 (from gitlab-python-runner)
Using cached gitlab_emulator-16.3.2-py3-none-any.whl.metadata (696 bytes)
...
gitlab-python.py fails to run with error
Traceback (most recent call last):
File ".local/bin/gitlab-runner.py", line 3, in
from GitlabPyRunner.tool import run
File ".local/lib/python3.9/site-packages/GitlabPyRunner/tool.py", line 16, in
from . import consts, runner, executor, common, service
File ".local/lib/python3.9/site-packages/GitlabPyRunner/executor.py", line 19, in
from gitlabemu.helpers import is_windows, debug_enabled
ImportError: cannot import name 'debug_enabled' from 'gitlabemu.helpers' (.local/lib/python3.9/site-packages/gitlabemu/helpers.py)
This seems to have happened since gitlab_emulator 1.5.5
Walking back the dependency found that install of
pip3 install gitlab-emulator==1.5.3 gitlab-python-runner==14.3.20
allows gitlab-python.py to run, but can no longer work with current gitlab versions to register a runner
requests.exceptions.HTTPError: 410 Client Error: Gone for url: https://gitlab.corp.net/api/v4/runners