Photo URL issue · Issue #768 · rendercv/rendercv · GitHub
Skip to content

Photo URL issue #768

Description

@Elderweiss-was-taken

My picture is JPEG, 100% quality 4:4:4

Width 517 pixels
Height 630 pixels

Hosted on Imgur

Here is a copy paste of the error

Something went wrong...

  • Traceback (most recent call last): File "/lib/python3.13/site-packages/rendercv/renderer/templater/model_processor.py", line 52, in download_photo_from_url urllib.request.urlretrieve(url_str, destination) ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^ File "/lib/python313.zip/urllib/request.py", line 214, in urlretrieve with contextlib.closing(urlopen(url, data)) as fp: ~~~~~~~^^^^^^^^^^^ File "/lib/python313.zip/urllib/request.py", line 189, in urlopen return opener.open(url, data, timeout) ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^ File "/lib/python313.zip/urllib/request.py", line 489, in open response = self._open(req, data) File "/lib/python313.zip/urllib/request.py", line 511, in _open return self._call_chain(self.handle_open, 'unknown', ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 'unknown_open', req) ^^^^^^^^^^^^^^^^^^^^ File "/lib/python313.zip/urllib/request.py", line 466, in _call_chain result = func(*args) File "/lib/python313.zip/urllib/request.py", line 1395, in unknown_open raise URLError('unknown url type: %s' % type) urllib.error.URLError: The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/lib/python313.zip/_pyodide/_base.py", line 597, in eval_code_async await CodeRunner( ...<9 lines>... .run_async(globals, locals) File "/lib/python313.zip/_pyodide/_base.py", line 411, in run_async coroutine = eval(self.code, globals, locals) File "", line 45, in File "/lib/python3.13/site-packages/rendercv/renderer/templater/templater.py", line 82, in render_full_template download_photo_from_url(rendercv_model) ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^ File "/lib/python3.13/site-packages/rendercv/renderer/templater/model_processor.py", line 54, in download_photo_from_url raise RenderCVUserError( message=f"Failed to download photo from {url_str}: {e}" ) from e rendercv.exception.RenderCVUserError
Image

Please find attached a picture of the error

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