-
Notifications
You must be signed in to change notification settings - Fork 55
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the issue
I'm getting the following error:
>pip install xml2rfc
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: xml2rfc in /home/user/.local/lib/python3.10/site-packages (3.25.0)
Requirement already satisfied: requests>=2.5.0 in /home/user/.local/lib/python3.10/site-packages (from xml2rfc) (2.32.3)
Requirement already satisfied: configargparse>=1.2.3 in /home/user/.local/lib/python3.10/site-packages (from xml2rfc) (1.7)
Requirement already satisfied: google-i18n-address>=3.0.0 in /home/user/.local/lib/python3.10/site-packages (from xml2rfc) (3.1.1)
Requirement already satisfied: platformdirs>=3.6.0 in /home/user/.local/lib/python3.10/site-packages (from xml2rfc) (4.3.6)
Requirement already satisfied: pycountry>=22.3.5 in /home/user/.local/lib/python3.10/site-packages (from xml2rfc) (24.6.1)
Requirement already satisfied: setuptools>=24.2.0 in /usr/lib/python3/dist-packages (from xml2rfc) (59.6.0)
Requirement already satisfied: pyyaml>=5.3.1 in /usr/lib/python3/dist-packages (from xml2rfc) (5.4.1)
Requirement already satisfied: lxml>=5.3.0 in /home/user/.local/lib/python3.10/site-packages (from xml2rfc) (5.3.0)
Requirement already satisfied: intervaltree>=3.1.0 in /home/user/.local/lib/python3.10/site-packages (from xml2rfc) (3.1.0)
Requirement already satisfied: jinja2>=3.1.2 in /home/user/.local/lib/python3.10/site-packages (from xml2rfc) (3.1.3)
Requirement already satisfied: wcwidth>=0.2.5 in /home/user/.local/lib/python3.10/site-packages (from xml2rfc) (0.2.13)
Requirement already satisfied: sortedcontainers<3.0,>=2.0 in /home/user/.local/lib/python3.10/site-packages (from intervaltree>=3.1.0->xml2rfc) (2.4.0)
Requirement already satisfied: MarkupSafe>=2.0 in /home/user/.local/lib/python3.10/site-packages (from jinja2>=3.1.2->xml2rfc) (2.1.5)
Requirement already satisfied: urllib3<3,>=1.21.1 in /home/user/.local/lib/python3.10/site-packages (from requests>=2.5.0->xml2rfc) (2.2.3)
Requirement already satisfied: certifi>=2017.4.17 in /usr/lib/python3/dist-packages (from requests>=2.5.0->xml2rfc) (2020.6.20)
Requirement already satisfied: charset-normalizer<4,>=2 in /home/user/.local/lib/python3.10/site-packages (from requests>=2.5.0->xml2rfc) (3.4.0)
Requirement already satisfied: idna<4,>=2.5 in /usr/lib/python3/dist-packages (from requests>=2.5.0->xml2rfc) (3.3)
>pip install xml2rfc[pdf]
no matches found: xml2rfc[pdf]
The main error I'm getting:
xml2rfc draft-rfcxml-general-template-annotated-00.xml --pdf ─╯
Cannot generate PDF due to missing external libraries.
------------------------------------------------------
In order to generate PDFs, xml2rfc uses the WeasyPrint library, which
depends on external libraries that must be installed as native packages.
1. First, install the Pango, and other required libraries on your
system. See installation instructions on the WeasyPrint Docs:
https://doc.courtbouillon.org/weasyprint/stable/first_steps.html
2. Next, install weasyprint python modules using pip.
pip install xml2rfc[pdf]
3. Finally, install the required fonts:
* Download latest fonts from xml2rfc-fonts.
https://github.com/ietf-tools/xml2rfc-fonts/releases/latest
* In the "Assets" section, download either the tar.gz or
the zip archive.
* Extract the contents of the downloaded xml2rfc-fonts archive.
* Install the fonts found in the noto and roboto_mono directories
to your operating system.
With these libraries, modules, and fonts installed and available to
xml2rfc, the --pdf switch will be enabled.
Could not import weasyprint
Could not find the pango lib
Code of Conduct
- I agree to follow the IETF's Code of Conduct
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working