Subject: bug#77105: python-ipympl can not be built

From: Orahcio Felicio de Sousa <[email-masked]>
Date: Tue, 18 Mar 2025 18:51:59 +0000

After guix build python-ipympl the check phase fails, phase wrap
finishes with success. Below the tail of the build log on the check
phase.

phase `wrap' succeeded after 0.0 seconds
starting phase `check'
running "python setup.py" with command "test" and parameters ()
setup.py:41: DeprecatedWarning: create_cmdclass is deprecated as of
0.8 and will be removed in 1.0. "
Use `wrap_installers` to handle prebuild steps in cmdclass.
Use `get_data_files` to handle data files.
Use `include_package_data=True` and `MANIFEST.in` for package data.

  cmdclass = create_cmdclass('jsdeps', data_files_spec=data_files_spec)
setup.py:43: DeprecatedWarning: install_npm is deprecated as of 0.8
and will be removed in 1.0. Use `npm_builder` and `wrap_installers`
  install_npm(HERE, npm=['yarn'], build_cmd='build:prod'),
/gnu/store/l1698ag2c1mli49fhf9yrmblrgaadm05-python-setuptools-67.6.1/lib/python3.10/site-packages/setuptools/config/setupcfg.py:516:
SetuptoolsDeprecationWarning: The license_file parameter is
deprecated, use license_files instead.
  warnings.warn(msg, warning_class)
running test
WARNING: Testing via this command is deprecated and will be removed in
a future version. Users looking for a generic test entry point
independent of test runner are encouraged to use tox.
/gnu/store/l1698ag2c1mli49fhf9yrmblrgaadm05-python-setuptools-67.6.1/lib/python3.10/site-packages/setuptools/command/test.py:194:
_DeprecatedInstaller: setuptools.installer and fetch_build_eggs are
deprecated. Requirements should be satisfied by a PEP 517 installer.
If you are using pip, you can try `pip install --use-pep517`.
  ir_d = dist.fetch_build_eggs(dist.install_requires)
WARNING: The directory '/homeless-shelter/.cache/pip' or its parent
directory is not owned or is not writable by the current user. The
cache has been disabled. Check the permissions and owner of that
directory. If executing pip with sudo, you should use sudo's -H flag.
ERROR: Exception:
Traceback (most recent call last):
  File "/gnu/store/nla5820scsv7ibvr3kwpgkm9wr4prf0q-python-3.10.7/lib/python3.10/site-packages/pip/_internal/cli/base_command.py",
line 167, in exc_logging_wrapper
    status = run_func(*args)
  File "/gnu/store/nla5820scsv7ibvr3kwpgkm9wr4prf0q-python-3.10.7/lib/python3.10/site-packages/pip/_internal/cli/req_command.py",
line 247, in wrapper
    return func(self, options, args)
  File "/gnu/store/nla5820scsv7ibvr3kwpgkm9wr4prf0q-python-3.10.7/lib/python3.10/site-packages/pip/_internal/commands/wheel.py",
line 145, in run
    requirement_set = resolver.resolve(reqs, check_supported_wheels=True)
  File "/gnu/store/nla5820scsv7ibvr3kwpgkm9wr4prf0q-python-3.10.7/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/resolver.py",
line 92, in resolve
    result = self._result = resolver.resolve(
  File "/gnu/store/nla5820scsv7ibvr3kwpgkm9wr4prf0q-python-3.10.7/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py",
line 481, in resolve
    state = resolution.resolve(requirements, max_rounds=max_rounds)
  File "/gnu/store/nla5820scsv7ibvr3kwpgkm9wr4prf0q-python-3.10.7/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py",
line 348, in resolve
    self._add_to_criteria(self.state.criteria, r, parent=None)
  File "/gnu/store/nla5820scsv7ibvr3kwpgkm9wr4prf0q-python-3.10.7/lib/python3.10/site-packages/pip/_vendor/resolvelib/resolvers.py",
line 172, in _add_to_criteria
    if not criterion.candidates:
  File "/gnu/store/nla5820scsv7ibvr3kwpgkm9wr4prf0q-python-3.10.7/lib/python3.10/site-packages/pip/_vendor/resolvelib/structs.py",
line 151, in __bool__
    return bool(self._sequence)
  File "/gnu/store/nla5820scsv7ibvr3kwpgkm9wr4prf0q-python-3.10.7/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py",
line 155, in __bool__
    return any(self)
  File "/gnu/store/nla5820scsv7ibvr3kwpgkm9wr4prf0q-python-3.10.7/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py",
line 143, in <genexpr>
    return (c for c in iterator if id(c) not in self._incompatible_ids)
  File "/gnu/store/nla5820scsv7ibvr3kwpgkm9wr4prf0q-python-3.10.7/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py",
line 44, in _iter_built
    for version, func in infos:
  File "/gnu/store/nla5820scsv7ibvr3kwpgkm9wr4prf0q-python-3.10.7/lib/python3.10/site-packages/pip/_internal/resolution/resolvelib/factory.py",
line 279, in iter_index_candidate_infos
    result = self._finder.find_best_candidate(
  File "/gnu/store/nla5820scsv7ibvr3kwpgkm9wr4prf0q-python-3.10.7/lib/python3.10/site-packages/pip/_internal/index/package_finder.py",
line 889, in find_best_candidate
    candidates = self.find_all_candidates(project_name)
  File "/gnu/store/nla5820scsv7ibvr3kwpgkm9wr4prf0q-python-3.10.7/lib/python3.10/site-packages/pip/_internal/index/package_finder.py",
line 830, in find_all_candidates
    page_candidates = list(page_candidates_it)
  File "/gnu/store/nla5820scsv7ibvr3kwpgkm9wr4prf0q-python-3.10.7/lib/python3.10/site-packages/pip/_internal/index/sources.py",
line 134, in page_candidates
    yield from self._candidates_from_page(self._link)
  File "/gnu/store/nla5820scsv7ibvr3kwpgkm9wr4prf0q-python-3.10.7/lib/python3.10/site-packages/pip/_internal/index/package_finder.py",
line 790, in process_project_url
    index_response = self._link_collector.fetch_response(project_url)
  File "/gnu/store/nla5820scsv7ibvr3kwpgkm9wr4prf0q-python-3.10.7/lib/python3.10/site-packages/pip/_internal/index/collector.py",
line 577, in fetch_response
    return _get_index_content(location, session=self.session)
  File "/gnu/store/nla5820scsv7ibvr3kwpgkm9wr4prf0q-python-3.10.7/lib/python3.10/site-packages/pip/_internal/index/collector.py",
line 481, in _get_index_content
    resp = _get_simple_response(url, session=session)
  File "/gnu/store/nla5820scsv7ibvr3kwpgkm9wr4prf0q-python-3.10.7/lib/python3.10/site-packages/pip/_internal/index/collector.py",
line 138, in _get_simple_response
    resp = session.get(
  File "/gnu/store/nla5820scsv7ibvr3kwpgkm9wr4prf0q-python-3.10.7/lib/python3.10/site-packages/pip/_vendor/requests/sessions.py",
line 600, in get
    return self.request("GET", url, **kwargs)
  File "/gnu/store/nla5820scsv7ibvr3kwpgkm9wr4prf0q-python-3.10.7/lib/python3.10/site-packages/pip/_internal/network/session.py",
line 518, in request
    return super().request(method, url, *args, **kwargs)
  File "/gnu/store/nla5820scsv7ibvr3kwpgkm9wr4prf0q-python-3.10.7/lib/python3.10/site-packages/pip/_vendor/requests/sessions.py",
line 587, in request
    resp = self.send(prep, **send_kwargs)
  File "/gnu/store/nla5820scsv7ibvr3kwpgkm9wr4prf0q-python-3.10.7/lib/python3.10/site-packages/pip/_vendor/requests/sessions.py",
line 701, in send
    r = adapter.send(request, **kwargs)
  File "/gnu/store/nla5820scsv7ibvr3kwpgkm9wr4prf0q-python-3.10.7/lib/python3.10/site-packages/pip/_vendor/requests/adapters.py",
line 460, in send
    self.cert_verify(conn, request.url, verify, cert)
  File "/gnu/store/nla5820scsv7ibvr3kwpgkm9wr4prf0q-python-3.10.7/lib/python3.10/site-packages/pip/_vendor/requests/adapters.py",
line 263, in cert_verify
    raise OSError(
OSError: Could not find a suitable TLS CA certificate bundle, invalid
path: /etc/ssl/certs/ca-certificates.crt
error: Command '['/gnu/store/04ifnj0kgkwvr4hx95bg9qxjmnzpxvhs-python-wrapper-3.10.7/bin/python',
'-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps',
'-w', '/tmp/guix-build-python-ipympl-0.9.1.drv-0/tmpz2j2sib1',
'--quiet', 'ipywidgets<8,>=7.6.0']' returned non-zero exit status 2.
error: in phase 'check': uncaught exception:
%exception #<&invoke-error program: "python" arguments: ("-c" "import
setuptools, tokenize;__file__='setup.py';f=getattr(tokenize, 'open',
open)(__file__);code=f.read().replace('\\r\\n',
'\\n');f.close();exec(compile(code, __file__, 'exec'))" "test")
exit-status: 1 term-signal: #f stop-signal: #f>
phase `check' failed after 3.7 seconds
command "python" "-c" "import setuptools,
tokenize;__file__='setup.py';f=getattr(tokenize, 'open',
open)(__file__);code=f.read().replace('\\r\\n',
'\\n');f.close();exec(compile(code, __file__, 'exec'))" "test" failed
with status 1
build process 10 exited with status 256