Skip to content
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

Cannot find module when mkdocs tries to build the site #11176

Closed
dmundra opened this issue Feb 29, 2024 · 3 comments
Closed

Cannot find module when mkdocs tries to build the site #11176

dmundra opened this issue Feb 29, 2024 · 3 comments
Labels
Support Support question

Comments

@dmundra
Copy link

dmundra commented Feb 29, 2024

Details

Expected Result

Our builds were working, see this example https://readthedocs.org/projects/civicactions-handbook/builds/23494880/

Actual Result

But then for this https://readthedocs.org/projects/civicactions-handbook/builds/23605796/ and subsequent builds we get this error:

Error: MkDocs encountered an error parsing the configuration file: while constructing a Python object
cannot find module 'materialx.emoji' (No module named 'materialx')
  in ".config/mkdocs.yml", line 22, column 22

I am not sure why and we haven't changed the configuration. I am testing upgrading Materials theme but running into a different module that cannot be found.

Am I missing anything in the mkdocs configuration that is causing the issue?

@agjohnson
Copy link
Contributor

This is a bug introduced with Poetry 1.8:

You can find the explanation and a workaround there

@agjohnson agjohnson added the Support Support question label Feb 29, 2024
@stsewd
Copy link
Member

stsewd commented Feb 29, 2024

The solution is documented in our docs at https://docs.readthedocs.io/en/stable/build-customization.html#install-dependencies-with-poetry

@dmundra
Copy link
Author

dmundra commented Feb 29, 2024

Thank you @agjohnson and @stsewd. The addition of VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH to the install step fixed it for us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Support Support question
Projects
None yet
Development

No branches or pull requests

3 participants