iamkroot / trakt-scrobbler

Scrobbler for trakt.tv that supports VLC, Plex, MPC-HC, and MPV.
https://github.com/iamkroot/trakt-scrobbler/wiki
GNU General Public License v2.0
468 stars 30 forks source link

trakts init [Installation] #224

Closed MFKDGAF closed 1 year ago

MFKDGAF commented 2 years ago

System Info

Description

Briefly describe the error you are facing

trakts init

Command line output

 OSError

  [WinError -2147024809] The parameter is incorrect

  at .local\pipx\venvs\trakt-scrobbler\Lib\site-packages\desktop_notifier\winrt.py:74 in __init__
       70│     ) -> None:
       71│         super().__init__(app_name, app_icon, notification_limit)
       72│         self._appid = CoreApplication.get_id()
       73│         self.manager = ToastNotificationManager.get_default()
    →  74│         self.notifier = self.manager.create_toast_notifier(self._appid)
       75│
       76│         # BackgroundExecutionManager.remove_access(self._appid)
       77│         # CoreApplication.add_background_activated(self._on_background_activated)
       78│

Log file

Click to see log contents

``` (replace these lines) *PASTE LOG FILE CONTENTS HERE* Command: "trakts log open" or "trakts log path" or see [FAQ](https://github.com/iamkroot/trakt-scrobbler/wiki/FAQs#where-is-the-log-fileother-data-stored). ```

iamkroot commented 2 years ago

Sadly, this is an upstream bug https://github.com/samschott/desktop-notifier/issues/41 for Windows.

For now, you can install an older version of the app-

  1. pipx uninstall trakt-scrobbler
  2. pix install trakt-scrobbler==1.5.0
  3. trakts init

Once the upstream bug is fixed, I'll release a new version of the app so that you can update. Will keep this open till then.

iamkroot commented 2 years ago

I've released v1.6.1-beta1 with the fix included from upstream. Please give it a try-

  1. pipx uninstall trakt-scrobbler
  2. pix install trakt-scrobbler==1.6.1b1
  3. trakts init
Sooleawa commented 2 years ago

I've released v1.6.1-beta1 with the fix included from upstream. Please give it a try-

  1. pipx uninstall trakt-scrobbler
  2. pix install trakt-scrobbler==1.6.1b1
  3. trakts init

pipx uninstall trakt-scrobbler uninstalled trakt-scrobbler! ✨ 🌟 ✨

pipx install trakt-scrobbler==1.6.1b1 installed package trakt-scrobbler 1.6.1b1, installed using Python 3.11.0 These apps are now globally available

trakts init This will guide you through the setup of the scrobbler. If you wish to quit at any point, press Ctrl+C or Cmd+C

OSError

[WinError -2147024809] The parameter is incorrect

at .local\pipx\venvs\trakt-scrobbler\Lib\site-packages\desktop_notifier\winrt.py:74 in init 70│ ) -> None: 71│ super().init(app_name, app_icon, notification_limit) 72│ self._appid = CoreApplication.get_id() 73│ self.manager = ToastNotificationManager.get_default() → 74│ self.notifier = self.manager.create_toast_notifier(self._appid) 75│ 76│ # BackgroundExecutionManager.remove_access(self._appid) 77│ # CoreApplication.add_background_activated(self._on_background_activated) 78│

iamkroot commented 2 years ago

Yep, looks like the upstream bug is still present. Please fall back to the older version for now.

amphoterism commented 1 year ago

Getting this issue when downgrading...

PS C:\Users\rossn> trakts init This will guide you through the setup of the scrobbler. If you wish to quit at any point, press Ctrl+C or Cmd+C

ImportError

DLL load failed: The specified module could not be found.

at .local\pipx\venvs\trakt-scrobbler\lib\site-packages\win10toast__init__.py:19 in 15│ from pkg_resources import Requirement 16│ from pkg_resources import resource_filename 17│ 18│ # 3rd party modules → 19│ from win32api import GetModuleHandle 20│ from win32api import PostQuitMessage 21│ from win32con import CW_USEDEFAULT 22│ from win32con import IDI_APPLICATION 23│ from win32con import IMAGE_ICON

iamkroot commented 1 year ago

This should be resolved in v1.6.3. Please update.