Closed arwedus closed 6 months ago
Have you tried apt install python3.8-distutils
?
@cjolowicz : I've done that in the Dockerfile now (also from deadsnakes), and it solved the issue. So it was actually totally unrelated to nox-poetry. Thanks for your super fast answer, though!
So, what was actually the root cause is distutils has to be installed in a separate package for every python version in Ubuntu Linux (from my web search, I've found that the Python maintainers are not really happy with this debian packaging decision, and I can see why). For the system python version, the python3-distutils package was already pre-installed.
Glad this solved the issue. For Python development on Debian, use python3-full
, it also depends on python3-distutils
. Deadsnakes works the same way.
Issue
With this noxfile.py:
I get these errors when running `nox:
It only happens in Python 3.8.
I am running with poetry inside a Ubuntu 22.04 based docker container that contains the python versions 3.10 (system default), 3.8, and 3.11 (both installed via deadsnakes as apt packages). I have also installed the pseudo package python-is-python3 to have "python" symlink available in /usr/bin.
When I try
sudo apt install python3-distutils
in the devcontainer, apt just tells me it's already installed. So it should be available to pip running inside nox-poetry too.What's going on here?
p.s.: Here's an excerpt of my pyproject.toml: