DEV Community

loading...

Solving `module 'platform' has no attribute 'linux_distribution'` for ceph-deploy with Python 3.8

Joseph D. Marhee
Systems & Infrastructure Engineer
・1 min read

When running ceph-deploy on Python 3.8, you may encounter the following error:

[ceph_deploy][ERROR ] RuntimeError: AttributeError: module 'platform' has no attribute 'linux_distribution'
Enter fullscreen mode Exit fullscreen mode

This is because of the deprecated platform.linux_distribution function in Python3.8.

To correct this issue, if your pip3 instance does not install the latest release of ceph-deploy, you can install it directly from Git:

pip3 install git+https://github.com/ceph/ceph-deploy.git
Enter fullscreen mode Exit fullscreen mode

and then proceed to run your configuration:

ceph-deploy --username ceph install node00 node01 ... node06
Enter fullscreen mode Exit fullscreen mode

to complete the process.

Discussion (0)