Package: gitlab-cli
Version: 1:1.6.0-1
Severity: minor

Dear maintainer,

I installed the 'gitlab' package and expected to find some documentation
about how to set up a valid '~/.python-gitlab.cfg', but I couldn't find
anything about it.

Thus, starting 'gitlab' leads for me to:

        $ gitlab
        Traceback (most recent call last):
          File "/usr/lib/python3.6/configparser.py", line 1138, in _unify_values
            sectiondict = self._sections[section]
        KeyError: 'global'

        During handling of the above exception, another exception occurred:

        Traceback (most recent call last):
          File "/usr/lib/python3/dist-packages/gitlab/config.py", line 49, in 
__init__
            self.gitlab_id = self._config.get('global', 'default')
          File "/usr/lib/python3.6/configparser.py", line 781, in get
            d = self._unify_values(section, vars)
          File "/usr/lib/python3.6/configparser.py", line 1141, in _unify_values
            raise NoSectionError(section)
        configparser.NoSectionError: No section: 'global'

        During handling of the above exception, another exception occurred:

        Traceback (most recent call last):
          File "/usr/bin/gitlab", line 11, in <module>
            load_entry_point('python-gitlab==1.6.0', 'console_scripts', 
'gitlab')()
          File "/usr/lib/python3/dist-packages/gitlab/cli.py", line 144, in main
            options.config_file)
          File "/usr/lib/python3/dist-packages/gitlab/config.py", line 51, in 
__init__
            raise GitlabIDError("Impossible to get the gitlab id "
        gitlab.config.GitlabIDError: Impossible to get the gitlab id (not 
specified in config file)

Can you please add some (pointers to) documentation about the required initial 
configuration?

Thanks and kind regards,
Nicolas


-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'oldoldstable'), (500, 'unstable'), (500, 
'stable'), (500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.18.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=nb:nn:dk:se:de:en:C, LC_CTYPE=nb:nn:dk:se:de:en:C (charmap=UTF-8) 
(ignored: LC_ALL set to nb_NO.UTF-8), LANGUAGE=nb_NO.UTF-8 (charmap=UTF-8) 
(ignored: LC_ALL set to nb_NO.UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages gitlab-cli depends on:
ii  python3         3.6.5-3
ii  python3-gitlab  1:1.6.0-1

gitlab-cli recommends no packages.

gitlab-cli suggests no packages.

-- no debconf information

Reply via email to