Nixpkgs: solo-python is broken

Created on 19 Jan 2020  路  6Comments  路  Source: NixOS/nixpkgs

Describe the bug
The solo-python module/script is broken.
The function "make-credential" fails.

To Reproduce
Steps to reproduce the behavior:

solo key make-credential                                                                     ~
Touch your authenticator to generate a credential...
Traceback (most recent call last):
  File "/nix/store/wdhccfihy44jcy7cac9ix8ll5spfq3vh-python3.7-solo-python-0.0.21/bin/.solo-wrapped", line 9, in <module>
    sys.exit(solo_cli())
  File "/nix/store/zzmkaz2y9d9lzhkgimbfp6y20h8i3iv2-python3.7-click-7.0/lib/python3.7/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/nix/store/zzmkaz2y9d9lzhkgimbfp6y20h8i3iv2-python3.7-click-7.0/lib/python3.7/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/nix/store/zzmkaz2y9d9lzhkgimbfp6y20h8i3iv2-python3.7-click-7.0/lib/python3.7/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/nix/store/zzmkaz2y9d9lzhkgimbfp6y20h8i3iv2-python3.7-click-7.0/lib/python3.7/site-packages/click/core.py", line 1137, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/nix/store/zzmkaz2y9d9lzhkgimbfp6y20h8i3iv2-python3.7-click-7.0/lib/python3.7/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/nix/store/zzmkaz2y9d9lzhkgimbfp6y20h8i3iv2-python3.7-click-7.0/lib/python3.7/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/nix/store/wdhccfihy44jcy7cac9ix8ll5spfq3vh-python3.7-solo-python-0.0.21/lib/python3.7/site-packages/solo/cli/key.py", line 135, in make_credential
    host=host, user_id=user, serial=serial, output=True, prompt=prompt, udp=udp
  File "/nix/store/wdhccfihy44jcy7cac9ix8ll5spfq3vh-python3.7-solo-python-0.0.21/lib/python3.7/site-packages/solo/hmac_secret.py", line 44, in make_credential
    rp, user, challenge, extensions=hmac_ext.create_dict(), pin=pin
TypeError: make_credential() takes 2 positional arguments but 4 were given

Same behavior for python38

Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

  • system: "x86_64-linux"
  • host os: Linux 5.4.12, NixOS, 20.03pre209690.c438ce12a85 (Markhor)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.3.2
  • channels(root): "nixos-20.03pre209690.c438ce12a85"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:
  - python37Packages.solo-python
  - python38Packages.solo-python
bug python package (update)

All 6 comments

@wucke13

The upstream issue solokeys/solo-python#52

Needs a bump to 0.0.23

The upstream issue solokeys/solo-python#52

Thanks for that. I was expecting it to be a nixpkgs issue, because of the recent update, but I did not check for an upstream issue.

I'll prepare a PR

> result/bin/solo key verify
Please press the button on your Solo key
Register valid
Valid Solo Tap with firmware from SoloKeys.
> result/bin/solo key make-credential
Touch your authenticator to generate a credential...
[...]

Done.

Addressed by #78097

Was this page helpful?
0 / 5 - 0 ratings

Related issues

spacekitteh picture spacekitteh  路  3Comments

rzetterberg picture rzetterberg  路  3Comments

lverns picture lverns  路  3Comments

teto picture teto  路  3Comments

ghost picture ghost  路  3Comments