-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
RuntimeError: There is no current event loop in thread 'MainThread'. #3
Comments
Hi @adrienbrignon, I see this as some plugin issue, could you please verify once and confirm with your thoughts on this issue. Thanks |
Hello @JayaramaKrishnaGudipati, Thank you for submitting an issue. Could you please assist me in debugging this problem by sharing your Thanks |
Thank you @adrienbrignon for responding on the issue. I have an mkdocs.yml file with extensions and other plugins included in it. This is the mkdocs-pdf.yml file used for processing the pdf generation, base configuration for the pageINHERIT: mkdocs.yml plugins: Please let me know if you need more details, Thanks |
Thank you @JayaramaKrishnaGudipati for the details. Unfortunately, I am not able to reproduce your issue.
Also, by the way the button is defined in your configuration file; it makes me wonder if you're using the latest version of this plugin. Thanks |
Hi @adrienbrignon, Thanks for contributing the new version, I have updated the version to 2.0.1 and tried, I see the same issue, Please find the below full details of mkdocs.yml and on the error message. mkdocs version: 1.4.2 ###########################################################################################
|
Hello again @JayaramaKrishnaGudipati, Thank you for the precious details you've provided. At the moment, I'm thinking that it may be a compatibility issue with the In the meantime, could you please try to update to the For instance, if your custom theme is called theme:
name: company
plugins:
- mkdocs/exporter:
theme: material
- mkdocs/exporter/pdf:
concurrency: 8 Please note the Finally, thank you for taking the time to contribute to this discussion; you're helping me making this plugin better and for that, I am truly grateful. |
First of all, sorry for the notifications! Could you please upgrade and let me know if the issue is resolved? Thanks |
Hello @adrienbrignon No Problem, its my pleasure to work with you on this issue. I'm happy to contribute to your plugin. I have upgraded the version to 3.0.2 and I see the get_event_loop issue is resolved but I see some error on "playwright" as shown below, I have even upgraded the playwright version from 1.33.0 to 1.34.0 Traceback (most recent call last): Please let me know how to resolve this above error and proceed further. Note:The mkdocs file is working and proceeding further till the playwright issue as describe above if the theme was declared like this, INHERIT: mkdocs.yml theme: plugins: If it was given like the below one, I see the job is stopping with config error, INHERIT: mkdocs.yml plugins: ERROR - Config value 'plugins': Invalid config options for the 'mkdocs/exporter' plugin. Thanks |
Thank you, I'm glad to hear that the For your current issue, it seems that Playwright is not fully installed.
What this command does basically, is:
Thanks |
Hi @adrienbrignon, I actually installed and upgraded the playwright python package with version 1.34.0. Please let me know where this installation need to be done. Thanks. |
No problem. Typically, you'll need to run this command after installing dependencies (via This project features a Dockerfile and a GitHub Workflow that do perform this procedure (some commands are defined in this Makefile), feel free to draw inspiration from them. To sum things up:
|
Hey @adrienbrignon , I tried updating the playwright installation in the docker image, I faced the below issue, looks like the image is distributing debain version of linux and here I see it supports only on Ubuntu. Warning: The file chosen for install of fonttools 4.39.1 (fonttools-4.39.1-py3-none-any.whl) is yanked. Reason for being yanked: regression when building VF with STAT from DesignSpace v5:fonttools/fonttools#3045
Thanks |
As a potential workaround, you could use a container based on Ubuntu to build your documentation. I will now close this issue as it is resolved. Again, thank you for your collaboration in fixing this issue, it is very much appreciated. |
Hi,
I have recently switched from mkdocs-with-pdf plugin to your plugin, first I would like to thank you for the contribution.
The below error message is not allowing to proceed further,
File "/usr/local/lib/python3.11/site-packages/mkdocs_exporter/plugins/pdf/plugin.py", line 141, in on_post_build
loop = asyncio.get_event_loop()
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/asyncio/events.py", line 677, in get_event_loop
raise RuntimeError('There is no current event loop in thread %r.'
RuntimeError: There is no current event loop in thread 'MainThread'.
Could you please check on this one and kindly support to resolve the issue.
The text was updated successfully, but these errors were encountered: