kdschlosser / samsungctl

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

RuntimeError: Connection Failure: hello_exchange 2 #65

Closed andreas-bulling closed 5 years ago

andreas-bulling commented 5 years ago
python3 -m samsungctl --host 192.168.178.60 --method encrypted                                                                          (master)
Please enter pin from tv: 7355
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 433, in <module>
    main()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/__main__.py", line 345, in main
    with Remote(config) as remote:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote.py", line 68, in __enter__
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote.py", line 75, in open
    self.remote.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 153, in open
    output = self.hello_exchange(tv_pin)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 280, in hello_exchange
    raise RuntimeError('Connection Failure: hello_exchange 2')
RuntimeError: Connection Failure: hello_exchange 2
kdschlosser commented 5 years ago

what is the model number of your TV?

andreas-bulling commented 5 years ago

https://github.com/kdschlosser/UPNP_Device/issues/10

kdschlosser commented 5 years ago

that is the UPNP service files for the TV not the model number.

andreas-bulling commented 5 years ago

the model number is in the title... UE50J6250

kdschlosser commented 5 years ago

did the library work on your model in the past?? I ask this because of the 6250 in the model number.

and my bad about the model number. I didn't see it in the title. wasn't looking there honestly.

kdschlosser commented 5 years ago

sorry about editing your post. clicked on the wrong button.. I'm having one of those days I guess.

(didn't even know I could edit someones post.. interesting...)

andreas-bulling commented 5 years ago

samsungctl did not work (see https://github.com/kdschlosser/samsungctl/issues/40#issuecomment-455277743) but https://github.com/eclair4151/SmartCrypto.git did.

That is, I can authenticate and send commands (see https://github.com/eclair4151/SmartCrypto/issues/4#issuecomment-457892260)

Didn't you integrate SmartCrypto recently?

kdschlosser commented 5 years ago

give it a shot and see if it works.

andreas-bulling commented 5 years ago

endless loop:

python3 -m samsungctl --host 192.168.178.60 --method encrypted                                                                          
Please enter pin from tv: 4982
Please enter pin from tv: 4982
Please enter pin from tv: 4982
kdschlosser commented 5 years ago

hmmm.... I need someone else with an H or a J series TV to give this a try to see if the behavior is the same.

andreas-bulling commented 5 years ago

But this seems to be a program logic issue rather than a library/connection problem. SmartCrypto works as I said, i.e. if you integrate its latest version into samsungctl it should work...

kdschlosser commented 5 years ago

Yeah I know. let me dig back in the commits and get you to install an older copy of the library. and see if it works. I changed something somewhere that is causing this issue. i simply do not know where.

kdschlosser commented 5 years ago

clone the repo from this link. and install it.

https://github.com/kdschlosser/samsungctl/tree/b3aa8386f2d5309eb83b6206839b0a76d280728f

see if it works at this point. There is no Config class. and there is no "token" setting. use this from the command line as follows

samsungctl --host 192.168.1.1 --method encrypted --name TestRemote KEY_MENU
kdschlosser commented 5 years ago

ok so scratch the above..

I think I may have found the cause.

clone the repo and run it again. copy and paste the output in a post please. all of it. I added some print statements so I can see what is going on.

andreas-bulling commented 5 years ago

first time I run it:

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>stopped</state><atom:link rel="run" href="run"/></service>
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 423, in <module>
    main()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/__main__.py", line 335, in main
    with Remote(config) as remote:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote.py", line 74, in __call__
    return RemoteWrapper(conf)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote.py", line 72, in __init__
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 146, in open
    self.start_pairing()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 279, in start_pairing
    self.show_pin_page()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 237, in show_pin_page
    print('show_pin_page: ' + response.content)
TypeError: can only concatenate str (not "bytes") to str
andreas-bulling commented 5 years ago

second time I run it I see the PIN entry prompt. After typing in the PIN I see some long string and then a long list of error messages, too many to fit into my shell history. This is part of it:

  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 75, in power
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 188, in open
    if not self.power:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 42, in wrapper
    func_name, arg_string = func_arg_string(func, args, kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 54, in func_arg_string
    arg_names = inspect.getfullargspec(func)[0]
  File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/inspect.py", line 1132, in getfullargspec
    raise TypeError('unsupported callable') from ex
TypeError: unsupported callable
andreas-bulling commented 5 years ago

I managed to press ctrl+c quick enough. This is the start:

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: 7573
^CTraceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 377, in _make_request
    httplib_response = conn.getresponse(buffering=True)
TypeError: getresponse() got an unexpected keyword argument 'buffering'

During handling of the above exception, another exception occurred:

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 423, in <module>
    main()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/__main__.py", line 335, in main
    with Remote(config) as remote:
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote.py", line 74, in __call__
    return RemoteWrapper(conf)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote.py", line 72, in __init__
    self.open()
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 24, in wrapper
    return func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 153, in open
    output = self.hello_exchange(tv_pin)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/utils.py", line 44, in wrapper
    result = func(*args, **kwargs)
  File "/Users/andreas/Desktop/samsungctl/samsungctl/remote_encrypted/__init__.py", line 297, in hello_exchange
    second_step_response = requests.post(second_step_url, content).text
  File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 116, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/api.py", line 60, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 533, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/requests/adapters.py", line 449, in send
    timeout=timeout
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 600, in urlopen
    chunked=chunked)
  File "/usr/local/lib/python3.7/site-packages/urllib3/connectionpool.py", line 380, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 1321, in getresponse
    response.begin()
  File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 296, in begin
    version, status, reason = self._read_status()
  File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/http/client.py", line 257, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/local/Cellar/python/3.7.2_1/Frameworks/Python.framework/Versions/3.7/lib/python3.7/socket.py", line 589, in readinto
    return self._sock.recv_into(b)
KeyboardInterrupt
kdschlosser commented 5 years ago

Ok so you are going to need to get python 3.6.x doesn't matter the micro version number. The latest one is going to be fine it appears as though you have an error due to httplib and urllib3 which is out of my control. I will report this problem to the authors of python.

Once you have python 3.6 run samsungctl using it. You will have to install samsungctl in order to get the dependencies installed.

kdschlosser commented 5 years ago

OK so after some research.. there is no error except for the one you induced by pressing ctrl + C as indicated at the bottom of the Error. KeyboardInterrupt. the other error about the modding keyword is a normal thing. python 3 introduced exception chaining. so it will show all exceptions, even the ones that are meant to happen and are caught and handled with try: except. this is very misleading.

so the error you are seeing is caused by you pressing Ctrl + C and nothing more.

kdschlosser commented 5 years ago

I need to fix a loop issue it appears.

kdschlosser commented 5 years ago

BTW. this is a new issue. so we should have created one. I am going to fix this anyway. but I am not going to close this issue because the original issue has been resolved. And the loop problem is also fixxed. err.. well it should be anyway.