Ceph Health Warning: Module 'telemetry' has failed dependency: No module named 'requests';

jw6677

Active Member
Oct 19, 2019
93
5
28
33
www.cayk.ca
Hey, I've sortof ignored this health warning for a long while, but decided to try to take a crack at fixing it.

I recognize the super common python error, but upon review, my python installation(s) do indeed have requests installed, as shown below...

I beleive my use of anaconda3 for virtual environments may be involved, but am not sure.

Does ceph use it's own python libraries/packages?
Can anyone recommend how I can go about debugging this further?

Code:
# greps are to clear out the cruft
root@server:~# ls -d /usr/bin/*  | grep /python | grep -v '_' | grep -v '-' | grep -v tex
/usr/bin/python
/usr/bin/python2
/usr/bin/python2.7
/usr/bin/python3
/usr/bin/python3.7
/usr/bin/python3.7m
/usr/bin/python3m

root@server:~# ls -d /root/anaconda3/bin/*  | grep /python | grep -v '_' | grep -v '-' | grep -v tex
/root/anaconda3/bin/ipython
/root/anaconda3/bin/ipython3
/root/anaconda3/bin/python
/root/anaconda3/bin/python3
/root/anaconda3/bin/python3.7
/root/anaconda3/bin/python3.7m



root@server:~# /usr/bin/python -m pip list | grep requests
requests                 2.21.0
requests-file            1.5.1

root@server:~# /usr/bin/python3 -m pip list | grep requests
requests             2.25.1
requests-file        1.5.1

root@server:~# /usr/bin/python -m pip list | grep requests
requests                 2.21.0
requests-file            1.5.1

root@server:~# /usr/bin/python2 -m pip list | grep requests
requests                 2.21.0
requests-file            1.5.1

root@server:~# /usr/bin/python2.7 -m pip list | grep requests
requests                 2.21.0
requests-file            1.5.1

root@server:~# /usr/bin/python3 -m pip list | grep requests
requests             2.25.1
requests-file        1.5.1

root@server:~# /usr/bin/python3.7 -m pip list | grep requests
requests             2.25.1
requests-file        1.5.1

root@server:~# /usr/bin/python3.7m -m pip list | grep requests
requests             2.25.1
requests-file        1.5.1

root@server:~# /usr/bin/python3m -m pip list | grep requests
requests             2.25.1
requests-file        1.5.1

root@server:~# /root/anaconda3/bin/ipython -m pip list | grep requests
requests                           2.25.1
requests-file                      1.4.3

root@server:~# /root/anaconda3/bin/ipython3 -m pip list | grep requests
requests                           2.25.1
requests-file                      1.4.3

root@server:~# /root/anaconda3/bin/python -m pip list | grep requests
requests                           2.25.1
requests-file                      1.4.3

root@server:~# /root/anaconda3/bin/python3 -m pip list | grep requests
requests                           2.25.1
requests-file                      1.4.3

root@server:~# /root/anaconda3/bin/python3.7 -m pip list | grep requests
requests                           2.25.1
requests-file                      1.4.3

root@server:~# /root/anaconda3/bin/python3.7m -m pip list | grep requests
requests                           2.25.1
requests-file                      1.4.3

Code:
pveversion --verbose
proxmox-ve: 6.4-1 (running kernel: 5.4.119-1-pve)
pve-manager: 6.4-8 (running version: 6.4-8/185e14db)
pve-kernel-5.4: 6.4-3
pve-kernel-helper: 6.4-3
pve-kernel-5.4.119-1-pve: 5.4.119-1
pve-kernel-5.4.106-1-pve: 5.4.106-1
pve-kernel-5.4.103-1-pve: 5.4.103-1
pve-kernel-5.4.73-1-pve: 5.4.73-1
pve-kernel-5.4.65-1-pve: 5.4.65-1
pve-kernel-5.4.34-1-pve: 5.4.34-2
ceph: 15.2.13-1~bpo10+1
ceph-fuse: 15.2.13-1~bpo10+1
corosync: 3.1.2-pve1
criu: 3.11-3
glusterfs-client: 5.5-3
ifupdown: 0.8.35+pve1
ifupdown2: residual config
ksm-control-daemon: 1.3-1
libjs-extjs: 6.0.1-10
libknet1: 1.20-pve1
libproxmox-acme-perl: 1.1.0
libproxmox-backup-qemu0: 1.0.3-1
libpve-access-control: 6.4-1
libpve-apiclient-perl: 3.1-3
libpve-common-perl: 6.4-3
libpve-guest-common-perl: 3.1-5
libpve-http-server-perl: 3.2-3
libpve-storage-perl: 6.4-1
libqb0: 1.0.5-1
libspice-server1: 0.14.2-4~pve6+1
lvm2: 2.03.02-pve4
lxc-pve: 4.0.6-2
lxcfs: 4.0.6-pve1
novnc-pve: 1.1.0-1
openvswitch-switch: 2.12.3-1
proxmox-backup-client: 1.1.9-1
proxmox-mini-journalreader: 1.1-1
proxmox-widget-toolkit: 2.5-6
pve-cluster: 6.4-1
pve-container: 3.3-5
pve-docs: 6.4-2
pve-edk2-firmware: 2.20200531-1
pve-firewall: 4.1-4
pve-firmware: 3.2-4
pve-ha-manager: 3.1-1
pve-i18n: 2.3-1
pve-qemu-kvm: 5.2.0-6
pve-xtermjs: 4.7.0-3
qemu-server: 6.4-2
smartmontools: 7.2-pve2
spiceterm: 3.1-1
vncterm: 1.6-2
zfsutils-linux: 2.0.4-pve1
 
Last edited:
The "ImportError: No module named requests" error occurs when you try to import the "requests" module in Python, but it's not installed in your environment. To fix this, you should install the "requests" library using pip, a package manager for Python. Open your command prompt or terminal and run the command "pip install requests." This will download and install the "requests" module, allowing you to use it in your Python scripts. Ensure that pip is properly installed and configured in your Python environment before running the installation command.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!