Project

General

Profile

Bug #7968

ImportError occurred when run command 'ceph -v'

Added by HouMing Wang over 6 years ago. Updated over 5 years ago.

Status:
Won't Fix
Priority:
Normal
Assignee:
-
Category:
-
Target version:
% Done:

0%

Source:
Development
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature:

Description

I. How to reproduce:
1. Clone the latest ceph master code from github

2. From my laptop, install the pre-requirement packages, build the source code with "./configure --without-tcmalloc " and install ceph.

3. Try "ceph -v" to check if ceph is successfully installed, and error occurred as below, while 'rbd -v', 'rados -v', 'ceph-fuse -v' are all works as expected.

The detail info is:
[houming@localhost ~]$ ceph -v
Traceback (most recent call last):
File "/usr/local/bin/ceph", line 56, in <module>
import rados
ImportError: No module named rados

II. Version info:
OS: Fedora 20(Linux localhost.localdomain 3.13.6-200.fc20.x86_64 #1 SMP Fri Mar 7 17:02:28 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux)

[houming@localhost ~]$ rados -v
ceph version 0.78-539-g89f38c0 (89f38c09f8cf88671a17cad84466c0ff0ea7e6d6)

[houming@localhost ~]$ dmesg | grep ceph
[17877.493666] Key type ceph registered
[17877.493735] libceph: loaded (mon/osd proto 15/24)
[17877.517335] FS-Cache: Netfs 'ceph' registered for caching
[17877.517342] ceph: loaded (mds proto 32)

[houming@localhost ~]$ lsmod | grep ceph
ceph 292246 0
libceph 219051 1 ceph
libcrc32c 12603 1 libceph
fscache 62354 1 ceph

History

#1 Updated by Sage Weil over 6 years ago

  • Status changed from New to Won't Fix

in order ot get the python stuff installed properly you should use a package. or install teh stuff in ceph.git/src/pybind manually.

#2 Updated by Bjoern Rennhak over 5 years ago

Probably not the right way to fix it, but this worked for me.

cp -vrap ceph.git/src/pybind/* /usr/lib/pymodules/python2.7/.

You might want to place it in /usr/local/lib.

Also available in: Atom PDF