WIP: Fix: Unable to run livehtml with python3.9 #104908

Draft
Sean Kim wants to merge 1 commits from Sean-Kim/blender-manual:main into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Member

See https://github.com/sphinx-doc/sphinx-autobuild/issues/166 for
related issues that were reported upstream.

This commit bumps the sphinx-autobuild version to the one that has
support for python3.9 fixed.

See https://github.com/sphinx-doc/sphinx-autobuild/issues/166 for related issues that were reported upstream. This commit bumps the sphinx-autobuild version to the one that has support for python3.9 fixed.
Sean Kim added 1 commit 2024-09-06 00:42:23 +02:00
See https://github.com/sphinx-doc/sphinx-autobuild/issues/166 for
related issues that were reported upstream.

This commit bumps the sphinx-autobuild version to the one that has
support for python3.9 fixed.
Sean Kim requested review from Aaron Carlisle 2024-09-06 00:42:32 +02:00
Sean Kim changed title from Fix: Unable to run livehtml with python3.9 to WIP: Fix: Unable to run livehtml with python3.9 2024-09-06 00:46:42 +02:00
Author
Member

Hm, putting this back into WIP - the server starts up but it seems like the live reloading is broken somehow.

ERROR:    Exception in ASGI application
Traceback (most recent call last):
  File "/Users/seankim/Projects/blender-manual/.venv/lib/python3.9/site-packages/uvicorn/protocols/websockets/websockets_impl.py", line 244, in run_asgi
    result = await self.app(self.scope, self.asgi_receive, self.asgi_send)  # type: ignore[func-returns-value]
  File "/Users/seankim/Projects/blender-manual/.venv/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 70, in __call__
    return await self.app(scope, receive, send)
  File "/Users/seankim/Projects/blender-manual/.venv/lib/python3.9/site-packages/starlette/applications.py", line 113, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/Users/seankim/Projects/blender-manual/.venv/lib/python3.9/site-packages/starlette/middleware/errors.py", line 152, in __call__
    await self.app(scope, receive, send)
  File "/Users/seankim/Projects/blender-manual/.venv/lib/python3.9/site-packages/sphinx_autobuild/middleware.py", line 29, in __call__
    await self.app(scope, receive, send)
  File "/Users/seankim/Projects/blender-manual/.venv/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
    await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  File "/Users/seankim/Projects/blender-manual/.venv/lib/python3.9/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app
    raise exc
  File "/Users/seankim/Projects/blender-manual/.venv/lib/python3.9/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app
    await app(scope, receive, sender)
  File "/Users/seankim/Projects/blender-manual/.venv/lib/python3.9/site-packages/starlette/routing.py", line 715, in __call__
    await self.middleware_stack(scope, receive, send)
  File "/Users/seankim/Projects/blender-manual/.venv/lib/python3.9/site-packages/starlette/routing.py", line 735, in app
    await route.handle(scope, receive, send)
  File "/Users/seankim/Projects/blender-manual/.venv/lib/python3.9/site-packages/starlette/routing.py", line 362, in handle
    await self.app(scope, receive, send)
  File "/Users/seankim/Projects/blender-manual/.venv/lib/python3.9/site-packages/sphinx_autobuild/server.py", line 72, in __call__
    [task.result() for task in done]
  File "/Users/seankim/Projects/blender-manual/.venv/lib/python3.9/site-packages/sphinx_autobuild/server.py", line 72, in <listcomp>
    [task.result() for task in done]
  File "/Users/seankim/Projects/blender-manual/.venv/lib/python3.9/site-packages/sphinx_autobuild/server.py", line 76, in watch_reloads
    await self.flag.wait()
  File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/locks.py", line 226, in wait
    await fut
RuntimeError: Task <Task pending name='Task-90' coro=<RebuildServer.watch_reloads() running at /Users/seankim/Projects/blender-manual/.venv/lib/python3.9/site-packages/sphinx_autobuild/server.py:76> cb=[_wait.<locals>._on_completion() at /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/tasks.py:513]> got Future <Future pending> attached to a different loop

Appears to be an issue with the sphinx_autobuild package - submitted a issue upstream to them here

Hm, putting this back into WIP - the server starts up but it seems like the live reloading is broken somehow. ``` ERROR: Exception in ASGI application Traceback (most recent call last): File "/Users/seankim/Projects/blender-manual/.venv/lib/python3.9/site-packages/uvicorn/protocols/websockets/websockets_impl.py", line 244, in run_asgi result = await self.app(self.scope, self.asgi_receive, self.asgi_send) # type: ignore[func-returns-value] File "/Users/seankim/Projects/blender-manual/.venv/lib/python3.9/site-packages/uvicorn/middleware/proxy_headers.py", line 70, in __call__ return await self.app(scope, receive, send) File "/Users/seankim/Projects/blender-manual/.venv/lib/python3.9/site-packages/starlette/applications.py", line 113, in __call__ await self.middleware_stack(scope, receive, send) File "/Users/seankim/Projects/blender-manual/.venv/lib/python3.9/site-packages/starlette/middleware/errors.py", line 152, in __call__ await self.app(scope, receive, send) File "/Users/seankim/Projects/blender-manual/.venv/lib/python3.9/site-packages/sphinx_autobuild/middleware.py", line 29, in __call__ await self.app(scope, receive, send) File "/Users/seankim/Projects/blender-manual/.venv/lib/python3.9/site-packages/starlette/middleware/exceptions.py", line 62, in __call__ await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send) File "/Users/seankim/Projects/blender-manual/.venv/lib/python3.9/site-packages/starlette/_exception_handler.py", line 62, in wrapped_app raise exc File "/Users/seankim/Projects/blender-manual/.venv/lib/python3.9/site-packages/starlette/_exception_handler.py", line 51, in wrapped_app await app(scope, receive, sender) File "/Users/seankim/Projects/blender-manual/.venv/lib/python3.9/site-packages/starlette/routing.py", line 715, in __call__ await self.middleware_stack(scope, receive, send) File "/Users/seankim/Projects/blender-manual/.venv/lib/python3.9/site-packages/starlette/routing.py", line 735, in app await route.handle(scope, receive, send) File "/Users/seankim/Projects/blender-manual/.venv/lib/python3.9/site-packages/starlette/routing.py", line 362, in handle await self.app(scope, receive, send) File "/Users/seankim/Projects/blender-manual/.venv/lib/python3.9/site-packages/sphinx_autobuild/server.py", line 72, in __call__ [task.result() for task in done] File "/Users/seankim/Projects/blender-manual/.venv/lib/python3.9/site-packages/sphinx_autobuild/server.py", line 72, in <listcomp> [task.result() for task in done] File "/Users/seankim/Projects/blender-manual/.venv/lib/python3.9/site-packages/sphinx_autobuild/server.py", line 76, in watch_reloads await self.flag.wait() File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/locks.py", line 226, in wait await fut RuntimeError: Task <Task pending name='Task-90' coro=<RebuildServer.watch_reloads() running at /Users/seankim/Projects/blender-manual/.venv/lib/python3.9/site-packages/sphinx_autobuild/server.py:76> cb=[_wait.<locals>._on_completion() at /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/tasks.py:513]> got Future <Future pending> attached to a different loop ``` Appears to be an issue with the `sphinx_autobuild` package - submitted a issue upstream to them [here](https://github.com/sphinx-doc/sphinx-autobuild/issues/178)
This pull request has changes conflicting with the target branch.
  • requirements.txt

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u main:Sean-Kim-main
git checkout Sean-Kim-main
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-manual#104908
No description provided.