-
Notifications
You must be signed in to change notification settings - Fork 815
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Textual command dev mode for live editing throws error about websocket. #3003
Comments
I've just tested this in a fresh virtual environment with textual and textual-dev and running Could you try creating a virtual environment and see if you get the same error? |
Did you manage to get this working @gallen? |
Assuming this is fixed. Please reopen if it is still an issue. |
Don't forget to star the repository! Follow @textualizeio for Textual updates. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is the first time I tried dev mode. Got this exception error,
textual run --dev app.py Traceback (most recent call last): File "/Users/liulyan/workspace/op/ARM/TESetMonitor/app.py", line 26, in <module> app.run() File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/textual/app.py", line 1210, in run asyncio.run(run_app()) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/runners.py", line 190, in run return runner.run(main) ^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/runners.py", line 118, in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete return future.result() ^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/textual/app.py", line 1199, in run_app await self.run_async( File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/textual/app.py", line 1161, in run_async await app._process_messages( File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/textual/app.py", line 1872, in _process_messages await self.devtools.connect() File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/textual_dev/client.py", line 116, in connect self.websocket = await self.session.ws_connect( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/aiohttp/client.py", line 779, in _ws_connect resp = await self.request( ^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/aiohttp/client.py", line 560, in _request await resp.start(conn) File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/aiohttp/client_reqrep.py", line 899, in start message, payload = await protocol.read() # type: ignore[union-attr] ^^^^^^^^^^^^^^^^^^^^^ File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/aiohttp/streams.py", line 616, in read await self._waiter aiohttp.client_exceptions.ServerDisconnectedError: Server disconnected
Here is the output for textual diagnose,
`# Textual Diagnostics
Versions
Python
Operating System
Terminal
Rich Console options
The text was updated successfully, but these errors were encountered: