Skip to content

[BUG] Default windows 11 installation steps incomplete #333

@seth-rah

Description

@seth-rah

Describe the bug

Windows 11 does not ship with WMIC as an installed feature anymore, and is planned to be deprecated. Currently requires manual installation.

Error messaging on trying to run trakt-scrobbler when WMIC is not present is not enough information for an end user to investigate why the installation is failing.

Attempting to

Desktop (please complete the following information):

  • OS and Version: Win 11
  • Python Version: 3.8+ (3.9, 3.10 and 3.13 were tried)
  • Player and Version: N/A
  • Trakt Scrobbler Version: 1.7.2

To Reproduce

  • Fresh install latest revision of windows 11
  • Follow instructions present here
  • Attempting to start the service after populating details into step 6 will return error listed below.
  • Does not populate information into the log file at AppData\Roaming\trakt-scrobbler when using --verbose

Logs

Click to see log contents

The nature of this error seems to be an annoying one, as it's a generalised return from python for not being able to reach a dependency. I found instances online of this being that ffprobe couldn't be reached, or some other topics like task scheduler due to pathing / permission issues. It's a nasty one.

FileNotFoundError

  [WinError 2] The system cannot find the file specified

  at AppData\Local\Programs\Python\Python310\lib\subprocess.py:1438 in _execute_child

      1434sys.audit("subprocess.Popen", executable, args, cwd, env)
      14351436# Start the process
      1437try:
    → 1438hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
      1439# no special security
      1440None, None,
      1441int(not close_fds),
      1442creationflags, 

Notes

Spent a bit too long trying to debug this, but found the data within the process monitor tool after looking options avaialble online to identify a potential cause of the error.

Windows Process Monitor View

Image

After adding WMIC the issue was resolved.

Image

Deprecation seems to not be far off with WMIC, so it likely needs the follow up task.

Image

One recommendation is outside of adjusting the intallation guide, to create a fallback mechanism when a dependency isn't found, to print what is missing from the current system. It has to be available somewhere, otherwise I'd never have found it in the process monitor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is neededneeds-more-infoAwaiting more info from the user's end

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions