kdschlosser / samsungctl

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

remote.connect_upnp() still crashing #62

Closed matthieut59 closed 5 years ago

matthieut59 commented 5 years ago

Hello,

same code as your example config = samsungctl.Config( name='samsungctl', description='samsungctl-library', method='websocket', host='192.168.1.7', port=8002 )

config.log_level = logging.DEBUG

config.save("C:\Users\mtourlouse\")

config = samsungctl.Config.load("C:\Users\mtourlouse\samsungctl.config")

with samsungctl.Remote(config) as remote: remote.connect_upnp() print(remote.upnp_tv.as_dict)

Got this error like hundreds of time before it stops (line 42, line 95, line 42, line95 etc.) :

File "C:\Users\mtourlouse\AppData\Local\Programs\Python\Python37-32\lib\site-packages\samsungctl-0.8.0b0-py3.7.egg\samsungctl\remote.py", line 95, in getattr self.connect_upnp() File "C:\Users\mtourlouse\AppData\Local\Programs\Python\Python37-32\lib\site-packages\samsungctl-0.8.0b0-py3.7.egg\samsungctl\remote.py", line 42, in connect_upnp if self._upnp is None: File "C:\Users\mtourlouse\AppData\Local\Programs\Python\Python37-32\lib\site-packages\samsungctl-0.8.0b0-py3.7.egg\samsungctl\remote.py", line 95, in getattr self.connect_upnp() File "C:\Users\mtourlouse\AppData\Local\Programs\Python\Python37-32\lib\site-packages\samsungctl-0.8.0b0-py3.7.egg\samsungctl\remote.py", line 42, in connect_upnp if self._upnp is None: File "C:\Users\mtourlouse\AppData\Local\Programs\Python\Python37-32\lib\site-packages\samsungctl-0.8.0b0-py3.7.egg\samsungctl\remote.py", line 95, in getattr self.connect_upnp() File "C:\Users\mtourlouse\AppData\Local\Programs\Python\Python37-32\lib\site-packages\samsungctl-0.8.0b0-py3.7.egg\samsungctl\remote.py", line 42, in connect_upnp if self._upnp is None: File "C:\Users\mtourlouse\AppData\Local\Programs\Python\Python37-32\lib\site-packages\samsungctl-0.8.0b0-py3.7.egg\samsungctl\remote.py", line 81, in getattr if hasattr(self.remote, item): RecursionError: maximum recursion depth exceeded while calling a Python object

Good luck again :)