Skip to content

Analytics causes nix run of application to crash due to incorrect positional arguments #249

Description

@kittywitch
~ via ❄️  impure took 32s
at 13:08:05 ❯ nix run nixpkgs#gnome-frog
2025-10-23 13:19:07.581 | INFO     | frog.main:ensure_installation_id:137 - No installation id was found. Generating a new one.
Traceback (most recent call last):
  File "/nix/store/k2yfx2q9160vch7b0v7p4qgd3p6p54cp-gnome-frog-1.6.0/bin/.frog-wrapped", line 61, in <module>
    sys.exit(main.main(VERSION))
             ~~~~~~~~~^^^^^^^^^
  File "/nix/store/k2yfx2q9160vch7b0v7p4qgd3p6p54cp-gnome-frog-1.6.0/lib/python3.13/site-packages/frog/main.py", line 275, in main
    app = FrogApplication(version)
  File "/nix/store/k2yfx2q9160vch7b0v7p4qgd3p6p54cp-gnome-frog-1.6.0/lib/python3.13/site-packages/frog/main.py", line 64, in __init__
    self.ensure_installation_id()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/nix/store/k2yfx2q9160vch7b0v7p4qgd3p6p54cp-gnome-frog-1.6.0/lib/python3.13/site-packages/frog/main.py", line 141, in ensure_installation_id
    telemetry.capture('new Installation ID generated')
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/nix/store/k2yfx2q9160vch7b0v7p4qgd3p6p54cp-gnome-frog-1.6.0/lib/python3.13/site-packages/frog/services/telemetry.py", line 56, in capture
    self.posthog.capture(self.installation_id, event, props)
    ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Client.capture() takes 2 positional arguments but 4 were given

Tried running the application via nix run. Had this issue. Your analytics are not more important than my capacity to run your program. Seconding the sentiment of #240; get rid of the janky overblown analytics.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions