Open cabo opened 1 year ago
If you still have this environment, can you provide the Python version, xml2rfc version and the WeasyPrint version? Because I could not recreate this error with different WeasyPrint / xml2rfc
combinations.
xml2rfc
already checks for ImportError
, OSError
and AttributeError
.
Maybe we can add KeyError
to the list or swallow all Exceptions.
The error occurred when there was no working WeasyPrint installed (there may have been remnants of one). I have since fixed the problem that prevented installing WeasyPrint on that machine, so I don't have an easy way to reproduce.
Python version must have been python3.10 (see messages above).
Thank you.
This looks like an error occurred due to a Python environment configuration issue.
There's already logic guarding against not having WeasyPrint or an older version of WeasyPrint.
So xml2rfc
will not break if WeasyPrint is not installed.
Describe the issue
After something randomly changed in my Python environment:
I did not try to actually generate PDF, so xml2rfc should not depend on that loading properly.
Code of Conduct