Cannot build dune-common without python3-venv
During a new installation of dune-common I get
-- Found Python3: /usr/bin/python3 (found version "3.9.9") found components: Interpreter Development Development.Module Development.Embed
-- Found pip_/usr/bin/python3: TRUE
-- Failed to find the python package virtualenv with interpreter /usr/bin/python3. (missing: DUNE_PYTHON_virtualenv_FOUND)
-- Found venv_/usr/bin/python3: TRUE
-- Building a virtualenv in /home/sander/dune/dune-common/build-cmake/dune-env
-- WARNING: Failed to build a virtual env with pip installed, trying again without pip
-- If you are using Debian or Ubuntu, consider installing python3-venv and / or python-virtualenv
-- Failed to find the python package pip with interpreter /home/sander/dune/dune-common/build-cmake/dune-env/bin/python. (missing: pippresent)
CMake Error at cmake/modules/DunePythonVirtualenv.cmake:241 (message):
dune-common set up a virtualenv, but needs pip to be installed into it.
You can either install it yourself manually activating the virtualenv with
the activate script in your build directory /home/sander/dune/dune-common/build-cmake or you set
the CMake variable DUNE_PYTHON_ALLOW_GET_PIP to allow Dune to use get-pip.py
from https://bootstrap.pypa.io/get-pip.py
Call Stack (most recent call first):
cmake/modules/DunePythonCommonMacros.cmake:118 (include)
cmake/modules/DuneCommonMacros.cmake:51 (include)
cmake/modules/DuneModuleDependencies.cmake:109 (include)
cmake/modules/DuneProject.cmake:120 (dune_process_dependency_macros)
CMakeLists.txt:11 (dune_project)
-- Configuring incomplete, errors occurred!
Installing the Debian package python3-venv
does indeed seem to solve the issue, but it is still inconvenient: As I don't plan on using Python features in the nearer future I don't expect to be bothered by Python problems.
Edited by Oliver Sander