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
...
INFO - Documentation built in 21.14 seconds
INFO - live-edit websocket server starting
INFO - live-edit websocket server thread started
Exception in thread Thread-5 (server_thread_main):
Traceback (most recent call last):
File "/home/user/.pyenv/versions/3.10.13/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
self.run()
File "/home/user/.pyenv/versions/3.10.13/lib/python3.10/threading.py", line 953, in run
self._target(*self._args, **self._kwargs)
File ".venv/lib/python3.10/site-packages/live/plugin.py", line 221, in server_thread_main
asyncio.run(self.event_loop())
File "/home/user/.pyenv/versions/3.10.13/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/home/user/.pyenv/versions/3.10.13/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File ".venv/lib/python3.10/site-packages/live/plugin.py", line 207, in event_loop
async with serve(
File ".venv/lib/python3.10/site-packages/websockets/legacy/server.py", line 1098, in __aenter__
return await self
File ".venv/lib/python3.10/site-packages/websockets/legacy/server.py", line 1116, in __await_impl__
server = await self._create_server()
File "/home/user/.pyenv/versions/3.10.13/lib/python3.10/asyncio/base_events.py", line 1519, in create_server
raise OSError(err.errno, 'error while attempting '
OSError: [Errno 99] error while attempting to bind on address ('::1', 8484, 0, 0): cannot assign requested address
INFO - [09:28:22] Watching paths for changes: 'docs', 'mkdocs.yml'
INFO - [09:28:22] Serving on http://127.0.0.1:8000/
Fix:
/live/plugin.py
async with serve(
self.websocket_receiver,
"localhost",
self.config['websockets_port']
):
...
async with serve(
self.websocket_receiver,
"127.0.0.1",
self.config['websockets_port']
):
...
PR coming shortly 😃
The text was updated successfully, but these errors were encountered:
Thanks for finding and fixing this issue! I've verified the fix locally and everything seems to work right. I'll make sure to include it in the next release.
Python version(s): 3.10.13 / 3.11.7
mkdocs-live-edit-plugin = "^0.1.4"
Fix:
/live/plugin.py
PR coming shortly 😃
The text was updated successfully, but these errors were encountered: