sudo salt-call pip.list | grep -C 1 "kubernetes"
1.0.1
kubernetes:
31.0.0
sudo salt-call kubernetes.nodes context=/home/rutger/kubernetes/rke2.yaml
'kubernetes.nodes' is not available.
sudo salt-pip install kubernetes
Requirement already satisfied: kubernetes in /opt/saltstack/salt/extras-3.10 (31.0.0)
Requirement already satisfied: certifi>=14.05.14 in /opt/saltstack/salt/lib/python3.10/site-packages (from kubernetes) (2023.7.22)
Requirement already satisfied: six>=1.9.0 in /opt/saltstack/salt/lib/python3.10/site-packages (from kubernetes) (1.16.0)
Requirement already satisfied: python-dateutil>=2.5.3 in /opt/saltstack/salt/lib/python3.10/site-packages (from kubernetes) (2.8.2)
Requirement already satisfied: pyyaml>=5.4.1 in /opt/saltstack/salt/lib/python3.10/site-packages (from kubernetes) (6.0.1)
Requirement already satisfied: google-auth>=1.0.1 in /opt/saltstack/salt/extras-3.10 (from kubernetes) (2.37.0)
Requirement already satisfied: websocket-client!=0.40.0,!=0.41.*,!=0.42.*,>=0.32.0 in /opt/saltstack/salt/extras-3.10 (from kubernetes) (1.8.0)
Requirement already satisfied: requests in /opt/saltstack/salt/lib/python3.10/site-packages (from kubernetes) (2.31.0)
Requirement already satisfied: requests-oauthlib in /opt/saltstack/salt/extras-3.10 (from kubernetes) (2.0.0)
Requirement already satisfied: oauthlib>=3.2.2 in /opt/saltstack/salt/extras-3.10 (from kubernetes) (3.2.2)
Requirement already satisfied: urllib3>=1.24.2 in /opt/saltstack/salt/lib/python3.10/site-packages (from kubernetes) (1.26.18)
Requirement already satisfied: durationpy>=0.7 in /opt/saltstack/salt/extras-3.10 (from kubernetes) (0.9)
Requirement already satisfied: cachetools<6.0,>=2.0.0 in /opt/saltstack/salt/extras-3.10 (from google-auth>=1.0.1->kubernetes) (5.5.0)
Requirement already satisfied: pyasn1-modules>=0.2.1 in /opt/saltstack/salt/extras-3.10 (from google-auth>=1.0.1->kubernetes) (0.4.1)
Requirement already satisfied: rsa<5,>=3.1.4 in /opt/saltstack/salt/extras-3.10 (from google-auth>=1.0.1->kubernetes) (4.9)
Requirement already satisfied: charset-normalizer<4,>=2 in /opt/saltstack/salt/lib/python3.10/site-packages (from requests->kubernetes) (3.2.0)
Requirement already satisfied: idna<4,>=2.5 in /opt/saltstack/salt/lib/python3.10/site-packages (from requests->kubernetes) (3.7)
Requirement already satisfied: pyasn1<0.7.0,>=0.4.6 in /opt/saltstack/salt/extras-3.10 (from pyasn1-modules>=0.2.1->google-auth>=1.0.1->kubernetes) (0.6.1)
ERROR: Exception:
Traceback (most recent call last):
File "/opt/saltstack/salt/lib/python3.10/site-packages/pip/_internal/cli/base_command.py", line 105, in _run_wrapper
status = _inner_run()
File "/opt/saltstack/salt/lib/python3.10/site-packages/pip/_internal/cli/base_command.py", line 96, in _inner_run
return self.run(options, args)
File "/opt/saltstack/salt/lib/python3.10/site-packages/relenv/runtime.py", line 638, in wrapper
return func(self, options, args)
File "/opt/saltstack/salt/lib/python3.10/site-packages/pip/_internal/cli/req_command.py", line 67, in wrapper
return func(self, options, args)
File "/opt/saltstack/salt/lib/python3.10/site-packages/pip/_internal/commands/install.py", line 468, in run
lib_locations = get_lib_location_guesses(
File "/opt/saltstack/salt/lib/python3.10/site-packages/pip/_internal/commands/install.py", line 650, in get_lib_location_guesses
scheme = get_scheme(
File "/opt/saltstack/salt/lib/python3.10/site-packages/relenv/runtime.py", line 673, in wrapper
scheme.platlib = TARGET.PATH
File "<string>", line 4, in __setattr__
dataclasses.FrozenInstanceError: cannot assign to field 'platlib'
sudo pip3 install salt-pip
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.
If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.
If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.
See /usr/share/doc/python3.11/README.venv for more information.
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
pipx install kubernetes --include-deps
'kubernetes' already seems to be installed. Not modifying existing installation in '/home/rutger/.local/pipx/venvs/kubernetes'. Pass '--force' to force installation.
--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/salt-users/d3a581540734467461dd95e4eb112c99aede4dba.camel%40xiag.ch.
To view this discussion visit https://groups.google.com/d/msgid/salt-users/CAOekgU5TRroejjuRAm7FAk3WGDTF-jfraxs4oPW18KBwwWzZmg%40mail.gmail.com.
Any help and especially explanation is appreciative!
Kind regards,
Rutger