Skip to content

project-export download fails in cli.py #559

Closed

Description

@jgeorgeson

Description of the problem, including code/CLI snippet

> python --version
Python 3.6.5
7/20/2018 4:50:32 PM HBL4218 ~
> gitlab -g rd project-export download --project-id 3

Same behavior in Python 3.4.8 on CentOS, also with v1.5.1.

Expected Behavior

Project export archive is downloaded

Actual Behavior

Traceback (most recent call last):
  File "C:\Python36\Scripts\gitlab-script.py", line 11, in <module>
    load_entry_point('python-gitlab==1.5.1', 'console_scripts', 'gitlab')()
  File "c:\python36\lib\site-packages\gitlab\cli.py", line 179, in main
    cli_module.run(gl, what, action, args, verbose, output, fields)
  File "c:\python36\lib\site-packages\gitlab\v4\cli.py", line 357, in run
    data = g_cli()
  File "c:\python36\lib\site-packages\gitlab\v4\cli.py", line 61, in __call__
    return self.do_custom()
  File "c:\python36\lib\site-packages\gitlab\v4\cli.py", line 73, in do_custom
    data[self.cls._id_attr] = self.args.pop(self.cls._id_attr)
KeyError: None

Specifications

  • python-gitlab version: 1.5.1
  • API version you are using (v3/v4): v4
  • Gitlab server version (or gitlab.com): 10.7.5 EE

Activity

  1. gpocentek commented on Aug 25, 2018

    @gpocentek
    Contributor

    @ManchurianSector this looks like a different issue, and from the backtrace you provided I don't think that you are not using version 1.5.1 of python-gitlab.

  2. gpocentek commented on Aug 25, 2018

    @gpocentek
    Contributor

    @jgeorgeson thanks for the bug report, the fix will be in the next release (coming soon).

  3. locked as resolved and limited conversation to collaborators on Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions