Salt error 'Failed to import states pip_state' since move to python 3
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pip |
Fix Released
|
Unknown
|
|||
python-pip (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
salt (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Since the move to salt running under Python 3, salt 'pip' states fail with:
```
2018-02-20 11:11:29,176 [salt.loader ][ERROR ][13011] Failed to import states pip_state, this is due most likely to a syntax error:
Traceback (most recent call last):
File "/usr/lib/
mod = spec.loader.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "<frozen importlib.
File "/usr/lib/
import pip
File "/usr/lib/
from pip.utils import get_installed_
File "/usr/lib/
from pip.locations import (
File "/usr/lib/
bin_user = os.path.
File "/usr/lib/
a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType
```
This has been noted upstream in salt:
https:/
...which reports that it is an issue with pip:
https:/
However no release of pip has been made that contains this fix.
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: salt-minion 2017.7.
ProcVersionSign
Uname: Linux 4.13.0-32-generic x86_64
ApportVersion: 2.20.8-0ubuntu10
Architecture: amd64
Date: Tue Feb 20 11:29:41 2018
JournalErrors:
-- Logs begin at Mon 2018-01-29 17:20:48 GMT, end at Tue 2018-02-20 11:29:14 GMT. --
Feb 20 11:22:14 hostname kernel: piix4_smbus 0000:00:07.3: SMBus Host Controller not enabled!
Feb 20 11:22:14 hostname kernel: sd 3:0:0:0: [sda] Assuming drive cache: write through
PackageArchitec
ProcEnviron:
LANGUAGE=en_GB:
TERM=xterm-
PATH=(custom, no user)
LANG=en_GB.UTF-8
SHELL=/bin/bash
SourcePackage: salt
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in pip: | |
status: | Unknown → Fix Released |
Since this is a bug in python-pip (not salt), I mark the bug for salt as invalid.