DEV Community

Joseph D. Marhee
Joseph D. Marhee

Posted on

3 1

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.

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay