Source: nbconvert
Version: 6.4.4-2
Severity: serious

Dear maintainer(s),

Why investigating a fix for bug #1021560 I happened to stumble apon
the following lines in the build log [1]:
'''
loading intersphinx inventory from https://docs.python.org/3.6/objects.inv...
loading intersphinx inventory from http://jinja.pocoo.org/docs/objects.inv...
loading intersphinx inventory from 
https://nbformat.readthedocs.io/en/latest/objects.inv...
intersphinx inventory has moved: http://jinja.pocoo.org/docs/objects.inv -> 
https://jinja.palletsprojects.com/en/3.1.x/objects.inv
'''

And indeed, when I disable network during the build I see this instead:
'''
loading intersphinx inventory from https://docs.python.org/3.6/objects.inv...
loading intersphinx inventory from http://jinja.pocoo.org/docs/objects.inv...
loading intersphinx inventory from 
https://nbformat.readthedocs.io/en/latest/objects.inv...
WARNING: failed to reach any of the inventories with the following issues:
intersphinx inventory 'https://docs.python.org/3.6/objects.inv' not fetchable 
due to <class 'requests.exceptions.ConnectionError'>: 
HTTPSConnectionPool(host='docs.python.org', port=443): Max retries exceeded 
with url: /3.6/objects.inv (Caused by 
NewConnectionError('<urllib3.connection.HTTPSConnection object at 
0x7ff46f7a6b30>: Failed to establish a new connection: [Errno -3] Temporary 
failure in name resolution'))
WARNING: failed to reach any of the inventories with the following issues:
intersphinx inventory 'http://jinja.pocoo.org/docs/objects.inv' not fetchable 
due to <class 'requests.exceptions.ConnectionError'>: 
HTTPConnectionPool(host='jinja.pocoo.org', port=80): Max retries exceeded with 
url: /docs/objects.inv (Caused by 
NewConnectionError('<urllib3.connection.HTTPConnection object at 
0x7ff46f7a63e0>: Failed to establish a new connection: [Errno 101] Network is 
unreachable'))
WARNING: failed to reach any of the inventories with the following issues:
intersphinx inventory 'https://nbformat.readthedocs.io/en/latest/objects.inv' 
not fetchable due to <class 'requests.exceptions.ConnectionError'>: 
HTTPSConnectionPool(host='nbformat.readthedocs.io', port=443): Max retries 
exceeded with url: /en/latest/objects.inv (Caused by 
NewConnectionError('<urllib3.connection.HTTPSConnection object at 
0x7ff46f7a67d0>: Failed to establish a new connection: [Errno 101] Network is 
unreachable'))
'''

That's a violation of the policy section 4.9:
'''
For packages in the main archive, required targets must not attempt network 
access, except, via the loopback interface, to services on the build host that 
have been started by the build.
'''

Paul

[1] 
https://buildd.debian.org/status/fetch.php?pkg=nbconvert&arch=all&ver=6.4.4-2&stamp=1657467822&raw=0

Reply via email to