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

Problèmes avec la "inrae-pdf" #11

Open
sguyader opened this issue Feb 21, 2025 · 0 comments
Open

Problèmes avec la "inrae-pdf" #11

sguyader opened this issue Feb 21, 2025 · 0 comments

Comments

@sguyader
Copy link

sguyader commented Feb 21, 2025

Je suis sous Manjaro Linux (basée sur Arch). Je recontre des soucis avec la sortie PDF.
Par défaut c'est le moteur weasyprint qui est paramétré, je l'ai installé en suivant les précaunisations de ma distribution.

Si j'essaye de rendre le fichier "template_pdf" tel quel j'obtiens un message d'erreur :

Traceback (most recent call last):
  File "/usr/bin/weasyprint", line 5, in <module>
    from weasyprint.__main__ import main
ModuleNotFoundError: No module named 'weasyprint'
Error producing PDF.

Pourtant si je lance la commande usr/bin/weasyprint dans un terminal, je n'ai pas de message d'erreur.
A noter qu'il y a aussi d'autres warnings avant l'erreur :

WARNING (/opt/quarto/share/filters/main.lua:9592) 
The following string was found in the document: :::
This string was found in a block element with the following content:
You have to add always_allow_html: yes in the YAML (strange it’s supposed to be prefer-html: true). ::: {.cell} ::: {.cell-output-display}
This usually indicates a problem with a fenced div in the document. Please check the document for errors.

Si je change le moteur PDF pour xelatex ou typst, j'ai cette erreur :
Could not find data file templates/metadata.html
Je peux tout de même produire un PDF xelatex ou typst si je commente la ligne 39 du fichier _extension.yml.

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

No branches or pull requests

1 participant