tox fails with "Detected a distutils installed project ('argparse')"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Released
|
Critical
|
Roman Prykhodchenko | ||
8.0.x |
Fix Released
|
Critical
|
Roman Prykhodchenko |
Bug Description
during env setup
```
...
py27 develop-inst: /home/jenkins/
ERROR: invocation failed, logfile: /home/jenkins/
ERROR: actionid=py27
...
```
pip tries to upgrde `argparse` but can't perform that operation
```
...
Collecting argparse (from oslo.config>
Downloading argparse-
...
Installing collected packages: nailgun, argparse
Running setup.py develop for nailgun
Found existing installation: argparse 1.2.1
Detected a distutils installed project ('argparse') which we cannot uninstall. The metadata provided by distutils does not contain a list of files which have been installed, so pip does not know which files to uninstall.
...
```
Changed in fuel: | |
assignee: | Fuel CI (fuel-ci) → Fuel Python Team (fuel-python) |
Changed in fuel: | |
milestone: | none → 9.0 |
Changed in fuel: | |
status: | New → Won't Fix |
status: | Won't Fix → Confirmed |
Changed in fuel: | |
importance: | Critical → High |
tags: | added: area-python tech-debt |
Changed in fuel: | |
importance: | High → Critical |
summary: |
- verify-fuel-web is failed during setup virtualenv + tox fails with "Detected a distutils installed project ('argparse')" |
Changed in fuel: | |
assignee: | Fuel Python Team (fuel-python) → Roman Prykhodchenko (romcheg) |
there is few possible solutions
- use `tox` for these tests. looks like it can handle such issues
- update `virtualenv` on fuel-ci slaves. It's possible that after updating it will use latest pip with latest argparse