Bug#1031759: autopkg tests fail with python3.11

Matthias Klose doko at ubuntu.com
Wed Feb 22 05:49:06 GMT 2023


Package: src:spyder
Version: 5.4.2+ds-2
Severity: serious
Tags: sid bullseye

the autopkg tests fail with python3.11:

[...]
autopkgtest [03:30:32]: test pytest-mainwindow: [-----------------------
Testing with python3.11:
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
     python3-xyz, where xyz is the package you are trying to
     install.

     If you wish to install a non-Debian-packaged Python package,
     create a virtual environment using python3 -m venv path/to/venv.
     Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
     sure you have python3-full installed.

     If you wish to install a non-Debian packaged Python application,
     it may be easiest to use pipx install xyz, which will manage a
     virtual environment for you. Make sure you have pipx installed.

     See /usr/share/doc/python3.11/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation 
or OS distribution provider. You can override this, at the risk of breaking your 
Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
autopkgtest [03:30:32]: test pytest-mainwindow: -----------------------]
autopkgtest [03:30:32]: test pytest-mainwindow:  - - - - - - - - - - results - - 
- - - - - - - -
pytest-mainwindow    FLAKY non-zero exit status 1
autopkgtest [03:30:32]: test pytest-ipythonconsole: preparing testbed
Reading package lists...
Building dependency tree...
Reading state information...
Starting pkgProblemResolver with broken count: 0
Starting 2 pkgProblemResolver with broken count: 0
Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up autopkgtest-satdep (0) ...
(Reading database ... 66303 files and directories currently installed.)
Removing autopkgtest-satdep (0) ...
autopkgtest [03:30:35]: test pytest-ipythonconsole: [-----------------------
Testing with python3.11:
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
     python3-xyz, where xyz is the package you are trying to
     install.

     If you wish to install a non-Debian-packaged Python package,
     create a virtual environment using python3 -m venv path/to/venv.
     Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
     sure you have python3-full installed.

     If you wish to install a non-Debian packaged Python application,
     it may be easiest to use pipx install xyz, which will manage a
     virtual environment for you. Make sure you have pipx installed.

     See /usr/share/doc/python3.11/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation 
or OS distribution provider. You can override this, at the risk of breaking your 
Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
autopkgtest [03:30:36]: test pytest-ipythonconsole: -----------------------]
autopkgtest [03:30:36]: test pytest-ipythonconsole:  - - - - - - - - - - results 
- - - - - - - - - -
pytest-ipythonconsole FLAKY non-zero exit status 1
autopkgtest [03:30:36]: @@@@@@@@@@@@@@@@@@@@ summary
pytest-rest          FAIL non-zero exit status 1
pytest-mainwindow    FLAKY non-zero exit status 1
pytest-ipythonconsole FLAKY non-zero exit status 1



More information about the debian-science-maintainers mailing list