Open jklewa opened 6 days ago
Have you tried deleting ~/Library/Application Support/ATV Remote
?
It seems like an older version of pyatv
is running on your system. The error shown above points to something that definitely exists in the existing / current version of pyatv (which is the primary library this application uses for talking to the ATV). If you delete the ATV Remote folder, the latest version of pyatv should be installed and updated.
@bsharper I have not tried deleting that directory, but the pyatv
version doesn't seem to be the issue here.
The AttributeError is on the other side of the expression
kbfocus = active_device.keyboard.text_focus_state == pyatv.const.KeyboardFocusState.Focused AttributeError: 'bool' object has no attribute 'keyboard'
@jklewa Good observation. Both sides of the comparison are from pyatv, active_device
is whatever pyatv.interface.AppleTV
instance is returned from pyatv.connect
, and the other is just a const for the keyboard focus.
Also are you using v1.1.1 or v1.1.3? I think there are some minor fixes in v1.1.3 related to startup sequencing where the app would ask if the keyboard was open without being paired properly. The fact that the error you shared was seeing the initial boolean value for active_device
this might be what you're seeing, and using the updated version and re-pairing should fix it.
It's possible only the Airplay protocol is connecting, and the Companion protocol isn't. If you pair with your Apple TV again, you should see 2 pairing screens. Text input is handled by the Companion protocol (I believe), so it's possible if it's only using the Airplay protocol it might not be connecting properly.
You can also try clearing out the settings by opening the app then pressing Cmd+option+i to open Development Tools. Then go to the Console and type localStorage.clear()
by the > in the bottom and press enter. Then press cmd+R to refresh the app and close the Dev Tools window. You should see a "first time" popup if this worked correctly. Then pair again and see if the issue is still happening.
Good luck and let me know if it works for you.
@bsharper ~At the time, I was running v1.1.1.~ The stack trace above references code introduced in v1.1.3, so I must have been running v1.1.3
at the time.
Since then, I've been running a fork of main and haven't experienced the bug again.
System
MacOS Sequoia 15.1 (24B83) arm64
Issue Description
When attempting to (re)open the ATV Remote app, the main window is briefly visible but then the app crashes/closes.
ps aux | grep "ATV"
showed several stale processes still running, interfering with the new app's startup.Workaround
pkill "ATV Remote"
command will kill all related processes and allows a new ATV Remote.app to startStale processes
Further investigation
By manually running
start_server.sh
, we can see a crash-loop onAttributeError: 'bool' object has no attribute 'keyboard'