Last active
November 26, 2023 19:45
-
-
Save cspaier/c2b3570e5c068fba5f69e9d81675aa08 to your computer and use it in GitHub Desktop.
Traceback of mkdocs build with mkdocs-print-site and mkdocs-exporter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INFO - [pdf] Rendering 'index.md'... | |
INFO - Launching browser... | |
INFO - [pdf] Rendering 'assets/abreviations.md'... | |
INFO - [pdf] Rendering 'folder1/document1.md'... | |
INFO - [pdf] Rendering 'folder1/document2.md'... | |
INFO - [pdf] Rendering 'folder1/document3.md'... | |
INFO - [pdf] Rendering 'folder2/document1.md'... | |
INFO - [pdf] Rendering 'folder2/document2.md'... | |
INFO - [pdf] Rendering 'folder3/document1.md'... | |
INFO - [pdf] Rendering 'folder3/document2.md'... | |
INFO - [pdf] Rendering 'folder3/document3.md'... | |
INFO - [pdf] Rendering 'folder4/document1.md'... | |
INFO - [pdf] Rendering 'folder4/document2.md'... | |
Traceback (most recent call last): | |
File "/path/to/project/venv/bin/mkdocs", line 8, in <module> | |
sys.exit(cli()) | |
File "/path/to/project/venv/lib/python3.10/site-packages/click/core.py", line 1130, in __call__ | |
return self.main(*args, **kwargs) | |
File "/path/to/project/venv/lib/python3.10/site-packages/click/core.py", line 1055, in main | |
rv = self.invoke(ctx) | |
File "/path/to/project/venv/lib/python3.10/site-packages/click/core.py", line 1657, in invoke | |
return _process_result(sub_ctx.command.invoke(sub_ctx)) | |
File "/path/to/project/venv/lib/python3.10/site-packages/click/core.py", line 1404, in invoke | |
return ctx.invoke(self.callback, **ctx.params) | |
File "/path/to/project/venv/lib/python3.10/site-packages/click/core.py", line 760, in invoke | |
return __callback(*args, **kwargs) | |
File "/path/to/project/venv/lib/python3.10/site-packages/mkdocs/__main__.py", line 250, in build_command | |
build.build(cfg, dirty=not clean) | |
File "/path/to/project/venv/lib/python3.10/site-packages/mkdocs/commands/build.py", line 332, in build | |
config.plugins.run_event('post_build', config=config) | |
File "/path/to/project/venv/lib/python3.10/site-packages/mkdocs/plugins.py", line 522, in run_event | |
result = method(**kwargs) | |
File "/path/to/project/venv/lib/python3.10/site-packages/mkdocs_exporter/plugins/pdf/plugin.py", line 151, in on_post_build | |
self.loop.run_until_complete(asyncio.gather(*concurrently(self.tasks, max(1, self.config.concurrency or 1)))) | |
File "/path/to/project/venv/lib/python3.10/site-packages/nest_asyncio.py", line 99, in run_until_complete | |
return f.result() | |
File "/usr/lib/python3.10/asyncio/tasks.py", line 234, in __step | |
result = coro.throw(exc) | |
File "/path/to/project/venv/lib/python3.10/site-packages/mkdocs_exporter/plugins/pdf/plugin.py", line 147, in limit | |
return await asyncio.create_task(coroutine) | |
File "/usr/lib/python3.10/asyncio/futures.py", line 285, in __await__ | |
yield self # This tells Task to wait for completion. | |
File "/usr/lib/python3.10/asyncio/tasks.py", line 304, in __wakeup | |
future.result() | |
File "/usr/lib/python3.10/asyncio/futures.py", line 201, in result | |
raise self._exception.with_traceback(self._exception_tb) | |
File "/usr/lib/python3.10/asyncio/tasks.py", line 232, in __step | |
result = coro.send(None) | |
File "/path/to/project/venv/lib/python3.10/site-packages/mkdocs_exporter/plugins/pdf/plugin.py", line 123, in render | |
pdf = await self.renderer.render(html) | |
File "/path/to/project/venv/lib/python3.10/site-packages/mkdocs_exporter/plugins/pdf/renderer.py", line 84, in render | |
return await self.browser.print(html) | |
File "/path/to/project/venv/lib/python3.10/site-packages/mkdocs_exporter/plugins/pdf/browser.py", line 91, in print | |
await page.locator('body[mkdocs-exporter="true"]').wait_for(timeout=30000) | |
File "/path/to/project/venv/lib/python3.10/site-packages/playwright/async_api/_generated.py", line 18191, in wait_for | |
await self._impl_obj.wait_for(timeout=timeout, state=state) | |
File "/path/to/project/venv/lib/python3.10/site-packages/playwright/_impl/_locator.py", line 670, in wait_for | |
await self._frame.wait_for_selector( | |
File "/path/to/project/venv/lib/python3.10/site-packages/playwright/_impl/_frame.py", line 317, in wait_for_selector | |
await self._channel.send("waitForSelector", locals_to_params(locals())) | |
File "/path/to/project/venv/lib/python3.10/site-packages/playwright/_impl/_connection.py", line 62, in send | |
return await self._connection.wrap_api_call( | |
File "/path/to/project/venv/lib/python3.10/site-packages/playwright/_impl/_connection.py", line 492, in wrap_api_call | |
return await cb() | |
File "/path/to/project/venv/lib/python3.10/site-packages/playwright/_impl/_connection.py", line 100, in inner_send | |
result = next(iter(done)).result() | |
File "/usr/lib/python3.10/asyncio/futures.py", line 201, in result | |
raise self._exception.with_traceback(self._exception_tb) | |
playwright._impl._errors.TimeoutError: Timeout 30000ms exceeded. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment