Container - Fontawesome 0.6.0 not included · Issue #775 · rendercv/rendercv · GitHub
Skip to content

Container - Fontawesome 0.6.0 not included #775

Description

@DoctorD90

Hello!
Im running from Debian 12 and I have python3.11 installed (as official repository) and I got a lot of trouble.
I have installed in a VM with Debian 13 that is shipped with python3.12 and it runs smoothly.

Instead to run a dedicated VM I have moved to using the container (command with version,here below). After a bit of working, everything worked "fine".

podman pull ghcr.io/rendercv/rendercv:sha256-699aaee00c9e6754e75bdfbbc37439d6e94ec32d67f0e4065b276ab8b66929f7

Due to a connectivity issue, the connection to internet dropped and when I ran the docker I got an error about fontawesome:

╭───────────────────── Traceback (most recent call last) ──────────────────────╮
│ /app/.venv/lib/python3.12/site-packages/rendercv/cli/error_handler.py:38 in  │
│ wrapper                                                                      │
│                                                                              │
│   35 │   @functools.wraps(function)                                          │
│   36 │   def wrapper(*args: P.args, **kwargs: P.kwargs) -> None:             │
│   37 │   │   try:                                                            │
│ ❱ 38 │   │   │   return function(*args, **kwargs)                            │
│   39 │   │   except RenderCVUserError as e:                                  │
│   40 │   │   │   if e.message:                                               │
│   41 │   │   │   │   print(                                                  │
│                                                                              │
│ /app/.venv/lib/python3.12/site-packages/rendercv/cli/render_command/render_c │
│ ommand.py:238 in cli_command_render                                          │
│                                                                              │
│   235 │   │   │   │   lambda: run_rendercv(input_file_path, progress_panel,  │
│   236 │   │   │   )                                                          │
│   237 │   │   else:                                                          │
│ ❱ 238 │   │   │   run_rendercv(input_file_path, progress_panel, **arguments) │
│   239                                                                        │
│                                                                              │
│ /app/.venv/lib/python3.12/site-packages/rendercv/cli/render_command/run_rend │
│ ercv.py:156 in run_rendercv                                                  │
│                                                                              │
│   153 │   │   │   generate_typst,                                            │
│   154 │   │   │   rendercv_model,                                            │
│   155 │   │   )                                                              │
│ ❱ 156 │   │   timed_step(                                                    │
│   157 │   │   │   "Generated PDF",                                           │
│   158 │   │   │   progress,                                                  │
│   159 │   │   │   generate_pdf,                                              │
│                                                                              │
│ /app/.venv/lib/python3.12/site-packages/rendercv/cli/render_command/run_rend │
│ ercv.py:55 in timed_step                                                     │
│                                                                              │
│    52 │   │   Function result.                                               │
│    53 │   """                                                                │
│    54 │   start = time.perf_counter()                                        │
│ ❱  55 │   result = func(*args, **kwargs)                                     │
│    56 │   end = time.perf_counter()                                          │
│    57 │   timing_ms = f"{(end - start) * 1000:.0f}"                          │
│    58                                                                        │
│                                                                              │
│ /app/.venv/lib/python3.12/site-packages/rendercv/renderer/pdf_png.py:42 in   │
│ generate_pdf                                                                 │
│                                                                              │
│    39 │   │   rendercv_model._input_file_path, typst_path.parent             │
│    40 │   )                                                                  │
│    41 │   copy_photo_next_to_typst_file(rendercv_model, typst_path)          │
│ ❱  42 │   typst_compiler.compile(input=typst_path, format="pdf", output=pdf_ │
│    43 │                                                                      │
│    44 │   return pdf_path                                                    │
│    45                                                                        │
╰──────────────────────────────────────────────────────────────────────────────╯
TypstError: failed to download package 
(https://packages.typst.org/preview/fontawesome-0.6.0.tar.gz: Dns Failed: 
resolve dns name 'packages.typst.org:443': failed to lookup address information:
Temporary failure in name resolution)

I solved with a workaround: mapping the .cache and .local to a dedicated local folder, so it hasnt to download it at each run.

To completely avoid the issue, would be possible to pack the file in the container?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions