kdschlosser / samsungctl

Remote control Samsung televisions via a TCP/IP connection
MIT License
154 stars 33 forks source link

AttributeError: __enter__ #73

Closed andreas-bulling closed 5 years ago

andreas-bulling commented 5 years ago
python3 -m samsungctl --host 192.168.178.60 --method encrypted                                                                          (master)
page: <?xml version="1.0" encoding="UTF-8"?><service xmlns="urn:dial-multiscreen-org:schemas:dial" xmlns:atom="http://www.w3.org/2005/Atom"><name>CloudPINPage</name><options allowStop="true"/><state>running</state><atom:link rel="run" href="run"/></service>
Please enter pin from tv: 3656
second_step_response: {"auth_data":"{\"auth_type\":\"SPC\",\"request_id\":\"1\",\"GeneratorClientHello\":\"010100000000000000009E00000006363534333231081C35EB8DB247EB574DAB5FC569464739E34CC3D57892D5436A8D3A288F10645368E76CE0FAF609C302F6B488D5CA00CE7E22825D32C8DCE40AD1EE62DBCD90513972F38BB87A7BDD574EEE679661D117A9513189754142A421805840F2C3247C0F940A4B981C7348211CB422045A9DDCDB2F37FCF0D854701E5FD9B0F55BE94855E546C87859BAAF8825ECD0447A7AC506CC160000000000\"}"}

third_step_response: {"auth_data":"{\"auth_type\":\"SPC\",\"request_id\":\"1\",\"ClientAckMsg\":\"0104000000000000000014CEA0857A91E9B9511CC1453433CE79BE222FF32A0000000000\",\"session_id\":\"1\"}"}

websocket_response: Nfzt3klmFoqY1m99wOBH:60:60:websocket,htmlfile,xhr-polling,jsonp-polling
Traceback (most recent call last):
  File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/__main__.py", line 426, in <module>
    main()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/__main__.py", line 338, in main
    with Remote(config) as remote:
AttributeError: __enter__