Comment 4 for bug 2091370

Revision history for this message
Javier Fuentes (javier-fs) wrote :

Hi Mauricio,

I found that the installation of `setuptools` and `wheel` that you found in the logs comes form the Python plugin of Snapcraft. Snapcraft creates a virtual environment where the latest `setuptools` and `wheel` packages are installed. I could see the same logs using a toy example.

That should not be a problem. However, I found that the same versions of `setuptools` and `wheel` used by Snapcraft are also used by the MAAS snap, and that is indeed an issue.

The dependency overlapping seems to happen because the packages of the virtual environment created by Snapcraft are exposed to the MAAS Python environment path.

After some digging I found that this is solved by either installing certain Python packages or modifying the PYTHONPATH. So far, I only could fix it by using the first approach.

I created a temporary snap for 3.6 (noble). In a machine with MAAS snap installed, I run:
```
snap refresh maas --channel=3.5/edge/
sudo snap run --shell maas -c "pip show setuptools wheel"
# setuptools 75.6.0
# wheel 0.45.1

snap refresh maas --channel=3.6/edge/lp-2091370
sudo snap run --shell maas -c "pip show setuptools wheel"
# setuptools 68.1.2
# wheel 0.42.0
```

Could you confirm that this works on your end?