hi,
since you are playing on centos7, why not following http://docs.ceph.com/docs/master/install/get-packages/ or just downloading the binary packages form https://download.ceph.com/rpm-jewel/ ? :)
if you insist to install ceph from ceph-10.2.2.tar.gz, please follow http://docs.ceph.com/docs/giant/install/build-ceph/, make sure your system's clean before you start if you don't know what happens.
which to choose, depending on your purpose. devel or user.
I think you shall know why the error occurs rather than how to solve it.
------------------ Original ------------------
Date: Tue, Nov 29, 2016 02:02 PM
To: "“ceph-users@xxxxxxx"<ceph-users@xxxxxxxx>;
Subject: [ceph-users] No module named rados
hi, I build ceph-10.2.2.tar.gz , but there is an error like this: [root@mds0 ceph-10.2.2]# ceph -s Traceback (most recent call last): File "/usr/local/bin/ceph", line 118, in <module> import rados ImportError: No module named rados I find the module rados like this: [root@mds0 ceph-10.2.2]# locate rados.py /usr/local/ceph-10.2.2/src/pybind/rados/rados.pyx there is no file named rados.py [root@mds0 ceph-10.2.2]# ls /usr/local/lib/python2.7/site-packages/ ceph_argparse.py ceph_argparse.pyo ceph_daemon.pyc ceph_rest_api.py ceph_rest_api.pyo ceph_volume_client.pyc ceph_argparse.pyc ceph_daemon.py ceph_daemon.pyo ceph_rest_api.pyc ceph_volume_client.py ceph_volume_client.pyo ls /usr/lib/python2.7/site-packages/ceph_* /usr/lib/python2.7/site-packages/ceph_detect_init-1.0.1-py2.7.egg /usr/lib/python2.7/site-packages/ceph_disk-1.0.0-py2.7.egg I make and install ceph-10.2.2.tar.gz like this #./install_deps.sh #./autogen.sh #./configure # make -j2 # make install # cat /proc/version Linux version 3.10.0-327.el7.x86_64 (builder@xxxxxxxxxxxxxxxxxxxxxxx) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) ) #1 SMP Thu Nov 19 22:10:57 UTC 2015 centos7 How can I solve the error ! | ||
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com