Your message dated Mon, 17 Feb 2020 17:50:18 +0000
with message-id <[email protected]>
and subject line Bug#951382: fixed in weasyprint 51-2
has caused the Debian Bug report #951382,
regarding Weasyprint does not work without ca-certificates package
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
951382: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=951382
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: weasyprint
Version: 51-1


When I invoke `weasyprint "https://www.google.com"; google.pdf' an error occurs, 
rather than the expected creation of *.pdf file.
Here is a transcript:


root@b4879d89318d:/home# weasyprint "https://www.google.com"; google.pdf
Traceback (most recent call last):
  File "/usr/lib/python3.7/urllib/request.py", line 1319, in do_open
    encode_chunked=req.has_header('Transfer-encoding'))
  File "/usr/lib/python3.7/http/client.py", line 1252, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1298, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1247, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "/usr/lib/python3.7/http/client.py", line 1026, in _send_output
    self.send(msg)
  File "/usr/lib/python3.7/http/client.py", line 966, in send
    self.connect()
  File "/usr/lib/python3.7/http/client.py", line 1422, in connect
    server_hostname=server_hostname)
  File "/usr/lib/python3.7/ssl.py", line 423, in wrap_socket
    session=session
  File "/usr/lib/python3.7/ssl.py", line 870, in _create
    self.do_handshake()
  File "/usr/lib/python3.7/ssl.py", line 1139, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate 
verify failed: unable to get local issuer certificate (_ssl.c:1076)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/weasyprint/urls.py", line 284, in fetch
    result = url_fetcher(url)
  File "/usr/lib/python3/dist-packages/weasyprint/urls.py", line 248, in 
default_url_fetcher
    timeout=timeout, context=ssl_context)
  File "/usr/lib/python3.7/urllib/request.py", line 222, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.7/urllib/request.py", line 525, in open
    response = self._open(req, data)
  File "/usr/lib/python3.7/urllib/request.py", line 543, in _open
    '_open', req)
  File "/usr/lib/python3.7/urllib/request.py", line 503, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.7/urllib/request.py", line 1362, in https_open
    context=self._context, check_hostname=self._check_hostname)
  File "/usr/lib/python3.7/urllib/request.py", line 1321, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] 
certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/weasyprint", line 11, in <module>
    load_entry_point('WeasyPrint==51', 'console_scripts', 'weasyprint')()
  File "/usr/lib/python3/dist-packages/weasyprint/__main__.py", line 211, in 
main
    media_type=args.media_type)
  File "/usr/lib/python3/dist-packages/weasyprint/__init__.py", line 112, in 
__init__
    with result as (source_type, source, base_url, protocol_encoding):
  File "/usr/lib/python3.7/contextlib.py", line 112, in __enter__
    return next(self.gen)
  File "/usr/lib/python3/dist-packages/weasyprint/__init__.py", line 396, in 
_select_source
    with result as result:
  File "/usr/lib/python3.7/contextlib.py", line 112, in __enter__
    return next(self.gen)
  File "/usr/lib/python3/dist-packages/weasyprint/__init__.py", line 406, in 
_select_source
    with fetch(url_fetcher, url) as result:
  File "/usr/lib/python3.7/contextlib.py", line 112, in __enter__
    return next(self.gen)
  File "/usr/lib/python3/dist-packages/weasyprint/urls.py", line 286, in fetch
    raise URLFetchingError('%s: %s' % (type(exc).__name__, str(exc)))
weasyprint.urls.URLFetchingError: URLError: <urlopen error [SSL: 
CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local 
issuer certificate (_ssl.c:1076)>


I suggest that the "ca-certificates" should be added into "Depends". When the 
package ca-certificates is installed, weasyprint works well.

I am using docker image "debian:bullseye":
  PRETTY_NAME="Debian GNU/Linux bullseye/sid"
  NAME="Debian GNU/Linux"
  ID=debian
  Linux b4879d89318d 4.19.76-linuxkit #1 SMP Thu Oct 17 19:31:58 UTC 2019 
x86_64 GNU/Linux.


Yours sincerely,
Petr Novak

--- End Message ---
--- Begin Message ---
Source: weasyprint
Source-Version: 51-2
Done: Scott Kitterman <[email protected]>

We believe that the bug you reported is fixed in the latest version of
weasyprint, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Scott Kitterman <[email protected]> (supplier of updated weasyprint package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Mon, 17 Feb 2020 12:16:25 -0500
Source: weasyprint
Architecture: source
Version: 51-2
Distribution: unstable
Urgency: medium
Maintainer: Python Applications Packaging Team 
<[email protected]>
Changed-By: Scott Kitterman <[email protected]>
Closes: 951382
Changes:
 weasyprint (51-2) unstable; urgency=medium
 .
   * Add ca-certificates to Recommends (Closes: #951382)
     - Thanks to Petr Novak for the report and a suggested solution
   * Bump standards-version to 4.5.0 without further change
Checksums-Sha1:
 1bd9d0600ec2051ef8c6e86e06ae45af1cdc5de1 2060 weasyprint_51-2.dsc
 e69d190c4bd09f9c0fc0e75515c544974368c465 5788 weasyprint_51-2.debian.tar.xz
 2fba47266cebb79b603247fa0bff4976212f561d 6008 weasyprint_51-2_source.buildinfo
Checksums-Sha256:
 388f779ea17dd20cd7e4e981ac6975bba4475ca68be512c3467f1b0a6513cbcb 2060 
weasyprint_51-2.dsc
 3e9a35db96165140e82745dbda2c6d3d04f120f0a81b5ca2c92defd477ef2512 5788 
weasyprint_51-2.debian.tar.xz
 9b81cb45c0ee7d95b900a91cf08821279a10487d8b48e2d7222628dfb2008110 6008 
weasyprint_51-2_source.buildinfo
Files:
 7eaa658cb1dd4a6834ce4acd577a0eae 2060 text optional weasyprint_51-2.dsc
 fdfc724d25cc15059d0a19901fff28a0 5788 text optional 
weasyprint_51-2.debian.tar.xz
 c5ad43b2e79765bbeb7db21f0165cace 6008 text optional 
weasyprint_51-2_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEE53Kb/76FQA/u7iOxeNfe+5rVmvEFAl5KyrgACgkQeNfe+5rV
mvHnRhAA0V5qRFHpF8C5fOu7I0u5vkzYmIgAzkCUr3c1ORNYXiempC1/AgDC5iUa
7LqxsM9zwHYIzB0CecUIlLghkBNJhFmispXv1Cm55xmHbKO7PCAlJ2KzfVEL5i1S
E7cC2h3o+SwSVx/wFIlNySBipMFupsrxN8Ab2zRNa91xtK2zKHrZtGW/EGOz4AgZ
JlfSf+/t6lhOnAnxKvAL17Fi4GZ36V8/D2zQbnIKyca+VAJ3aB2rSL8rETJ3V3DX
5abhdJxzPG1MepX+xPglKyG6vHTWC26FZDoNSFifrIKClJN9nRMLe7foAXEP2+b9
PssgpZJBgSm/2LxBeNhjfVn0Wu8eeShtkF+tBHdMZ1VF0LqBmsHfFWHp9ITeMZbL
j5CNTBOHXWynm0ph3HwkmN0JEKOl2PaSl9Y/N42kSn5WmP48+zqo/DWNRO1o2Bpl
0ZQCQWHvEE5Cy6c5+OA8bkT24E518t93CNAFLvoOeaMUmOq9O/3UKc/Wy3ZFV0Dg
T+GDTNrGs8595reW+PM6UohBVZsRRm7E9J1AdINR/myCC77MIKXhTb51kVrEtUuW
0Orc4Ex7u7ZKkSt6kaXU0LoqYqM1hfWqKFE/xm3Ug9rynEJg6peZ5zWdJdQf5dRd
Isc9eaBi8W7YqyMOjMUAtlaKnha0VOA9IOkqhf+cAhEG/F9xgZ8=
=41eL
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to