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
452 stars 30 forks source link

[BUG] Windows 10 autostart cannot find the file "trakt-scrobbler.vbs" #219

Closed yolorag closed 9 months ago

yolorag commented 1 year ago

It's not like super annoying or anything cause I rarely turn my laptop off, but it would be nice if I did not have to manually start it.

I've tried reinstalling both the script, python and mpc-hp.

The file definitely exists.

Zrzut ekranu (45)

Win 10 19041 MPC 1.9.23 Python 3.10.8

iamkroot commented 1 year ago

The file definitely exists

How exactly did you verify that?

yolorag commented 1 year ago

Zrzut ekranu (96)

I'm sorry, I know nothing about programming lol.

The content of the file is: "CreateObject("Wscript.Shell").Run "trakts run", 0, False"

Should it be "1, True" ?

iamkroot commented 1 year ago

Should it be "1, True" ?

Not really, those values are as intended (to run the app in the background, instead of creating a window).

Let's try to debug this further-

  1. Open up a powershell window (guide)
  2. Run trakts status
  3. If the above is successful, run where.exe trakts.exe. What is the output?

Also, how did you install Python? From your previous screenshot, I'm seeing a non-standard location (PythonSoftwareFoundation...)

yolorag commented 1 year ago

user paths PowerShell output

Sorry for delay. Apparently , for some reason, I have two different versions of Python added to the system path. I start trakts using old command prompt and it works.

iamkroot commented 1 year ago

Ah, this is a PATH issue. The pipx folder is not in path for some reason (not sure how cmd is able to find it though). Try running python3 -m pipx ensurepath from powershell

iamkroot commented 1 year ago

Also try out the suggestions from this thread- https://github.com/pypa/pipx/issues/659

yolorag commented 1 year ago

I have tried to update the script and python but everything broke.

I restored my whole system to two weeks old backup.

Then I have realized that trakt.tv API is down lol, but before that I have read your response to similar bug I was experiencing with authentication and you have recommended to downgrade your program to older version.

I found out that it was github client that added the second, not updated version of python to the path.

I'll try to reproduce the bug once trakt API is up again on second computer.

iamkroot commented 1 year ago

@yolorag any progress?

iamkroot commented 9 months ago

Closing due to inactivity.