#1147789 python-cigar: FTBFS: ModuleNotFoundError: No module named 'pkg_resources'

#1147789#5
Date:
2026-09-15 10:31:09 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202609/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:python-cigar, so that this is still
visible in the BTS web page for this package.

Thanks.
During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.14/urllib/request.py", line 1333, in do_open
    h.request(req.get_method(), req.selector, req.data, headers,
    ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
              encode_chunked=req.has_header('Transfer-encoding'))
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/http/client.py", line 1386, in request
    self._send_request(method, url, body, headers, encode_chunked)
    ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/http/client.py", line 1432, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
    ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/http/client.py", line 1381, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
    ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/http/client.py", line 1141, in _send_output
    self.send(msg)
    ~~~~~~~~~^^^^^
  File "/usr/lib/python3.14/http/client.py", line 1085, in send
    self.connect()
    ~~~~~~~~~~~~^^
  File "/usr/lib/python3.14/http/client.py", line 1520, in connect
    super().connect()
    ~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.14/http/client.py", line 1051, in connect
    self.sock = self._create_connection(
                ~~~~~~~~~~~~~~~~~~~~~~~^
        (self.host,self.port), self.timeout, self.source_address)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/socket.py", line 874, in create_connection
    raise exceptions[0]
  File "/usr/lib/python3.14/socket.py", line 859, in create_connection
    sock.connect(sa)
    ~~~~~~~~~~~~^^^^
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/setup.py", line 3, in <module>
    ez_setup.use_setuptools()
    ~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/<<PKGBUILDDIR>>/ez_setup.py", line 123, in use_setuptools
    return _do_download(version, download_base, to_dir, download_delay)
  File "/<<PKGBUILDDIR>>/ez_setup.py", line 101, in _do_download
    tarball = download_setuptools(version, download_base,
                                  to_dir, download_delay)
  File "/<<PKGBUILDDIR>>/ez_setup.py", line 282, in download_setuptools
    downloader(url, saveto)
    ~~~~~~~~~~^^^^^^^^^^^^^
  File "/<<PKGBUILDDIR>>/ez_setup.py", line 234, in download_file_insecure
    src = urlopen(url)
  File "/usr/lib/python3.14/urllib/request.py", line 187, in urlopen
    return opener.open(url, data, timeout)
           ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/urllib/request.py", line 487, in open
    response = self._open(req, data)
  File "/usr/lib/python3.14/urllib/request.py", line 504, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
                              '_open', req)
  File "/usr/lib/python3.14/urllib/request.py", line 464, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.14/urllib/request.py", line 1381, in https_open
    return self.do_open(http.client.HTTPSConnection, req,
           ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                        context=self._context)
                        ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/urllib/request.py", line 1336, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 111] Connection refused>
E: pybuild pybuild:485: clean: plugin distutils failed with: exit code=1: python3.14 setup.py clean
dh_auto_clean: error: pybuild --clean -i python{version} -p 3.14 --parallel=2 returned exit code 13
make: *** [debian/rules:7: clean] Error 25
dpkg-buildpackage: error: debian/rules clean subprocess failed with exit status 2
--------------------------------------------------------------------------------