Source: pytest
Version: 7.1.2-4
Severity: serious
X-Debbugs-Cc: roehl...@debian.org

Hi,

While building pairtools version 1.0.2-1 I noticed this error. I have 
temporarliy added
a build depend on exceptiongroup in the said package to work around the issue.

| I: pybuild base:240: export CURPY=python3.10; cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build && python3.10 -m pytest -v
| Traceback (most recent call last):
|  File "/usr/lib/python3.10/runpy.py", line 187, in _run_module_as_main
|    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
|  File "/usr/lib/python3.10/runpy.py", line 146, in _get_module_details
|    return _get_module_details(pkg_main_name, error)
|  File "/usr/lib/python3.10/runpy.py", line 110, in _get_module_details
|    __import__(pkg_name)
|  File "/usr/lib/python3/dist-packages/pytest/__init__.py", line 5, in <module>
|    from _pytest._code import ExceptionInfo
|  File "/usr/lib/python3/dist-packages/_pytest/_code/__init__.py", line 2, in 
<module>
|    from .code import Code
|  File "/usr/lib/python3/dist-packages/_pytest/_code/code.py", line 60, in 
<module>
|    from exceptiongroup import BaseExceptionGroup
| ModuleNotFoundError: No module named 'exceptiongroup'
| E: pybuild pybuild:388: test: plugin custom failed with: exit code=1: export 
CURPY=python3.10; cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10/build && 
python3.10 -m pytest -v

My hunch is that the issue is this:

| $ apt show python3-pytest | grep excep
| Depends: python3-attr, python3-more-itertools, python3-pkg-resources, 
python3-pluggy (>= 0.12), python3-py, python3-exceptiongroup | python3 (>> 
3.11), python3-importlib-metadata | python3 (>> 3.8), python3-iniconfig, 
python3-packaging, python3-tomli | python3 (>> 3.11), python3:any

The "python3 (>> 3.11)" dependency is now beginning to be satisfied with doko's 
new python3.11 upload i.e. version 3.11.1 (see[1])
exceptiongroup should still be picked in this scnario, this is a bit odd 
though, but definitely worth a look.

[1]: 
https://tracker.debian.org/news/1404008/accepted-python311-3111-2-source-into-unstable/

-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.0.0-6-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Reply via email to