13mralex / c4-pyatv-remote

9 stars 4 forks source link

Json Lua Error when pairing #10

Open thevrownguy opened 5 months ago

thevrownguy commented 5 months ago

This looks like an amazing driver but I am having issues with it pairing. The web setver is running and it finds all my apple tvs. When I try to pair wither the companion or air play this is the lua ouotput.

JSON decode error:can't parse JSON at char 1 of: Pairing Failed with pin 7464: Error: LUA_ERROR [id: 1038][name: Apple TV IP Control][file: atv-remote.c4z]: driver.lua:325: attempt to index global 'array' (a nil value)

I am going to look at it in the C4 driver editor and see if I cant find the hangup. Is there something simple I am missing.

Jay Owner Lifetech Media Solutions Mckinney Texas. C4 programmer since 2005.

thevrownguy commented 5 months ago

I figured this out and its not your issue. The dependency for cryptography is broken with the latest release. You have to roll back to cryptography==41.0.7 on pyatv