question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

atvscript playing is facing an exception "app is not supported"

See original GitHub issue

Just installed via pip install pyatv scanning is working fine. Now I want to see what’s currently playing

So while executing atvscript -s 192.168.178.27 playing I’m facing following error:

{
  "result": "failure",
  "datetime": "2021-12-06T13:33:35.612050+01:00",
  "exception": "app is not supported",
  "stacktrace": "Traceback (most recent call last):\n  File \"/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyatv/scripts/atvscript.py\", line 302, in appstart\n    print(args.output(await _handle_command(args, abort_sem, loop)), flush=True)\n  File \"/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyatv/scripts/atvscript.py\", line 198, in _handle_command\n    return await _run_command(atv, args, abort_sem, loop)\n  File \"/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyatv/scripts/atvscript.py\", line 205, in _run_command\n    return output_playing(await atv.metadata.playing(), atv.metadata.app)\n  File \"/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyatv/core/facade.py\", line 193, in app\n    return self.relay(\"app\")\n  File \"/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyatv/core/relayer.py\", line 82, in relay\n    instance = self._find_instance(\n  File \"/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyatv/core/relayer.py\", line 106, in _find_instance\n    raise exceptions.NotSupportedError(f\"{target} is not supported\")\npyatv.exceptions.NotSupportedError: app is not supported\n"
}

further notice: while executing atvscript -s 192.168.178.27 playing ATV is displaying a pair code, haven’t expected this too.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:18 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
postlundcommented, Dec 7, 2021

You need to go to the AirPlay menu on your Apple TV and change so that anyone on the same network is allowed to connect.

0reactions
postlundcommented, Dec 7, 2021

Perfect! 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

atvscript stops push updates · Issue #543 · postlund/pyatv
Describe the bug When running atvscript -s 10.11.11.2 push_updates I don't seem to get ... not the remote app or anything paired to...
Read more >
atvscript - pyatv
When using unicast scanning, i.e. specifying IP address via -s , it is not needed to specify --id as the script will pick...
Read more >
GameKit | Apple Developer Forums
Hi, we are using Game Center in crossplatform way for tvOS, macOS and iOS for achievements and leaderboards. Everything was working fine with...
Read more >
Manual: iOS Player settings - Unity
No data provided for exceptions on the device (the app runs faster when using the Mono scripting backend). Note: Using this option with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found