Skip to content

Error when building site with pdm #2764

Answered by pawamoy
tvdboom asked this question in Q&A
Discussion options

You must be logged in to vote

The difference is probably that pdm run does not add the current working directory to PYTHONPATH / sys.path. Therefore the MkDocs YAML loader cannot find docs_sources. To fix this, you have to add it yourself, for example by setting PYTHONPATH: . in your job env, or by running PYTHONPATH=. pdm run mkdocs build --strict.

Replies: 1 comment 3 replies

Comment options

pawamoy
Apr 3, 2024
Maintainer Sponsor

You must be logged in to vote
3 replies
@tvdboom
Comment options

@frostming
Comment options

@pawamoy
Comment options

pawamoy Apr 3, 2024
Maintainer Sponsor

Answer selected by tvdboom
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants