DEV Community

Joseph D. Marhee
Joseph D. Marhee

Posted on

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

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.

Top comments (0)