You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey! If haven't mentioned before well done on this library, it is very impressive and I am very successfully using it here https://www.indigodomo.com/pluginstore/283/ in replace of Karls (kw123) older indigo plugin (and with his blessing) I think you link karls plugin somewhere - that could be updated.
Anyway - new release of Cryptography library is leading to complete failure.
pip3 install pyatv
Automatically uses 42.0.1 Cryptography which has in the last 2 days been released and has a lot of breaking changes.
It appears incompatible with pyatv.
This leads to cryptography 42.0.1 being installed (if used in --target fashion, or not other cryptography installs) which leads to multiple crashes with cipher/communication.
Something seems up with the distribution wheel packaging?
setup.py
def get_requirements():
"""Retuen requirements with loose version restrictions."""
return read("base_versions.txt").replace("==", ">=").split("\n")
Is replacing the == with >= leading to this change in the Dist wheel - and now incompatible cryptography…
Thanks!
Error log
Exc_info: (<class 'pyatv.exceptions.AuthenticationError'>, AuthenticationError(''), <traceback object at 0x10ef17680>)
Exc_Text: Traceback (most recent call last):
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/appleTV.indigoPlugin/Contents/Packages/pyatv/protocols/companion/protocol.py", line 121, in _setup_encryption
await pair_verifier.verify_credentials()
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/appleTV.indigoPlugin/Contents/Packages/pyatv/protocols/companion/auth.py", line 150, in verify_credentials
encrypted_data = self.srp.verify1(self.credentials, server_pub_key, encrypted)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/appleTV.indigoPlugin/Contents/Packages/pyatv/auth/hap_srp.py", line 94, in verify1
chacha = chacha20.Chacha20Cipher(session_key, session_key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/appleTV.indigoPlugin/Contents/Packages/pyatv/support/chacha20.py", line 14, in __init__
self._enc_out = ChaCha20Poly1305(out_key)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/appleTV.indigoPlugin/Contents/Packages/chacha20poly1305_reuseable/__init__.py", line 82, in __init__
if not AEAD_CIPHER_SUPPORTED(TEST_CIPHER):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/appleTV.indigoPlugin/Contents/Packages/cryptography/hazmat/backends/openssl/backend.py", line 572, in aead_cipher_supported
return aead._aead_cipher_supported(self, cipher)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/appleTV.indigoPlugin/Contents/Packages/cryptography/hazmat/backends/openssl/aead.py", line 22, in _aead_cipher_supported
cipher_name = _evp_cipher_cipher_name(cipher)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Application Support/Perceptive Automation/Indigo 2023.2/Plugins/appleTV.indigoPlugin/Contents/Packages/cryptography/hazmat/backends/openssl/aead.py", line 66, in _evp_cipher_cipher_name
assert isinstance(cipher, AESGCM)
AssertionError
No response
How to reproduce the bug?
pip3 install pyatv -t /test/directory --verbose
Fix;
Make sure cryptography==41.0.7 available prior to pip installing pyatv
What is expected behavior?
Follow requirements.txt which has cryptography==41.0.7
Operating System
macOS
Python
Other
pyatv
0.14.5
Device
pyatv installs
Additional context
Mac OSX Intel
Python dist wheel as above
The text was updated successfully, but these errors were encountered:
Describe the bug
Hey! If haven't mentioned before well done on this library, it is very impressive and I am very successfully using it here https://www.indigodomo.com/pluginstore/283/ in replace of Karls (kw123) older indigo plugin (and with his blessing) I think you link karls plugin somewhere - that could be updated.
Anyway - new release of Cryptography library is leading to complete failure.
pip3 install pyatv
Automatically uses 42.0.1 Cryptography which has in the last 2 days been released and has a lot of breaking changes.
It appears incompatible with pyatv.
The Dist Wheel has these entries:
https://files.pythonhosted.org/packages/64/8f/149fed04fcd9fa709d0840cf191a4b91f4da74ee7b451bab5ba371cc07fc/pyatv-0.14.5-py3-none-any.whl.metadata
This leads to cryptography 42.0.1 being installed (if used in --target fashion, or not other cryptography installs) which leads to multiple crashes with cipher/communication.
Something seems up with the distribution wheel packaging?
setup.py
Is replacing the == with >= leading to this change in the Dist wheel - and now incompatible cryptography…
Thanks!
Error log
No response
How to reproduce the bug?
pip3 install pyatv -t /test/directory --verbose
Fix;
Make sure cryptography==41.0.7 available prior to pip installing pyatv
What is expected behavior?
Follow requirements.txt which has cryptography==41.0.7
Operating System
macOS
Python
Other
pyatv
0.14.5
Device
pyatv installs
Additional context
Mac OSX Intel
Python dist wheel as above
The text was updated successfully, but these errors were encountered: