AirCon
AirCon copied to clipboard
[Errno 61] on MacOS running locally
First, thanks for all the work on this plugin! I'm excited to see if I can get it to work.
I'm getting the following error running the server on MacOS:
python -m aircon run --port 8888 --config config_catsroomac.json --mqtt_host localhost
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "/Users/togume/AirCon/aircon/__main__.py", line 304, in <module>
asyncio.run(run(parsed_args))
File "/Users/togume/.asdf/installs/python/3.11.4/lib/python3.11/asyncio/runners.py", line 190, in run
return runner.run(main)
^^^^^^^^^^^^^^^^
File "/Users/togume/.asdf/installs/python/3.11.4/lib/python3.11/asyncio/runners.py", line 118, in run
return self._loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/togume/.asdf/installs/python/3.11.4/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
return future.result()
^^^^^^^^^^^^^^^
File "/Users/togume/AirCon/aircon/__main__.py", line 193, in run
mqtt_client.connect(parsed_args.mqtt_host, parsed_args.mqtt_port)
File "/Users/togume/.asdf/installs/python/3.11.4/lib/python3.11/site-packages/paho_mqtt-1.6.1-py3.11.egg/paho/mqtt/client.py", line 914, in connect
return self.reconnect()
^^^^^^^^^^^^^^^^
File "/Users/togume/.asdf/installs/python/3.11.4/lib/python3.11/site-packages/paho_mqtt-1.6.1-py3.11.egg/paho/mqtt/client.py", line 1044, in reconnect
sock = self._create_socket_connection()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/togume/.asdf/installs/python/3.11.4/lib/python3.11/site-packages/paho_mqtt-1.6.1-py3.11.egg/paho/mqtt/client.py", line 3685, in _create_socket_connection
return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/togume/.asdf/installs/python/3.11.4/lib/python3.11/socket.py", line 851, in create_connection
raise exceptions[0]
File "/Users/togume/.asdf/installs/python/3.11.4/lib/python3.11/socket.py", line 836, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 61] Connection refused
The command is python -m aircon run --port 8888 --config config_catsroomac.json --mqtt_host localhost
I've gotten this error both with Python 3.10 as well as when upgrading to 3.11 using asdf
.
Any ideas on how to fix this? Let me know if there's anything else I can get you