Uploaded image for project: 'ListenBrainz'
  1. ListenBrainz
  2. LB-1502

Fix troi cli list command

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • None
    • troi

      Running

      troi list

      fails with the following error.

      Available patches:
      Traceback (most recent call last):
        File "/home/lucifer/PycharmProjects/troi-recommendation-playground/venv/bin/troi", line 8, in <module>
          sys.exit(cli())
                   ^^^^^
        File "/home/lucifer/PycharmProjects/troi-recommendation-playground/venv/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
          return self.main(*args, **kwargs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/home/lucifer/PycharmProjects/troi-recommendation-playground/venv/lib/python3.11/site-packages/click/core.py", line 1078, in main
          rv = self.invoke(ctx)
               ^^^^^^^^^^^^^^^^
        File "/home/lucifer/PycharmProjects/troi-recommendation-playground/venv/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
          return _process_result(sub_ctx.command.invoke(sub_ctx))
                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/home/lucifer/PycharmProjects/troi-recommendation-playground/venv/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
          return ctx.invoke(self.callback, **ctx.params)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/home/lucifer/PycharmProjects/troi-recommendation-playground/venv/lib/python3.11/site-packages/click/core.py", line 783, in invoke
          return __callback(*args, **kwargs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/home/lucifer/PycharmProjects/troi-recommendation-playground/troi/cli.py", line 116, in list_patches_cli
          ret = list_patches()
                ^^^^^^^^^^^^^^
        File "/home/lucifer/PycharmProjects/troi-recommendation-playground/troi/core.py", line 23, in list_patches
          print("%s:%s %s" % (slug, " " * (size - len(slug)), patches[slug]().description()))
                                                              ^^^^^^^^^^^^^^^
      TypeError: AreaRandomRecordingsPatch.__init__() missing 1 required positional argument: 'args'

            deekshitha deekshitha
            kartik1712 amCap1712
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package