Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trakts init [Installation] #224

Closed
MFKDGAF opened this issue Nov 12, 2022 · 6 comments
Closed

trakts init [Installation] #224

MFKDGAF opened this issue Nov 12, 2022 · 6 comments
Labels
upstream Bug in a dependency

Comments

@MFKDGAF
Copy link

MFKDGAF commented Nov 12, 2022

System Info

  • Operating system and version: [eg: Windows 10, Linux Manjaro KDE]: Windows Server 2022 Standard
  • Media Player and version: [eg: VLC v3.0.16, Plex v1.24.0.4930]: Plex v1.29.2.6354
  • Python version: [eg: 3.9]: 3.11

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.

</p>
</details>

@iamkroot
Copy link
Owner

Sadly, this is an upstream bug samschott/desktop-notifier#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 iamkroot added the upstream Bug in a dependency label Nov 13, 2022
@iamkroot
Copy link
Owner

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
Copy link

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.exe
done! ✨ 🌟 ✨

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
Copy link
Owner

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

@amphoterism
Copy link

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
Copy link
Owner

iamkroot commented Jan 6, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream Bug in a dependency
Projects
None yet
Development

No branches or pull requests

4 participants