Hi Rishabh,
I installed cmd2 with pip, followed by document
<https://docs.ceph.com/docs/master/cephfs/cephfs-shell/>.
As you recommended, I set the install version of cmd2 to 0.7.9, and
cephfs-shell is good to go.
Thanks a lot :)
Zhenshi Zhou <deaderzzs(a)gmail.com> 于2020年7月14日周二 下午4:25写道:
What's more, I tried in CentOS 7 as well as 8, and
I got the same error.
Zhenshi Zhou <deaderzzs(a)gmail.com> 于2020年7月14日周二 下午4:23写道:
> My system is CentOS7 and python is 3.6.8.
> Ceph version is 14.2.10, installed from ceph official repo.
> Versions of python packages list:
> attrs==19.3.0
> cephfs==2.0.0
> cmd2==1.2.0
> colorama==0.4.3
> importlib-metadata==1.7.0
> pyperclip==1.8.0
> rados==2.0.0
> wcwidth==0.2.5
> zipp==3.1.0
>
> Rishabh Dave <ridave(a)redhat.com> 于2020年7月14日周二 下午4:04写道:
>
>> On Tue, 14 Jul 2020 at 12:18, Zhenshi Zhou <deaderzzs(a)gmail.com> wrote:
>> >
>> > This error disappeared after I installed 'python3-cephfs'. However
the
>> > cephfs-shell command stuck.
>> > It stays at 'CephFS:~/>>>' and whatever subcommand I
executed, it
>> printed
>> > an error as below:
>> >
>> > EXCEPTION of type 'TypeError' occurred with message: 'onecmd()
got an
>> > unexpected keyword argument 'add_to_history''
>> >
>> > How can I use 'cephfs-shell'?
>> >
>>
>> What's the cmd2 version on your system? Looks like you are having an
>> issue with it.
>>
>> Although most of the recent cmd2 versions are supported too, 0.7.9 is
>> more recommended IMHO since cephfs-shell is regularly tested against
>> it. You can install it via pip if you can't find it in CentOS7's
>> repositories.
>>
>> Also, please let me know the Ceph version you are using so that I can
>> try to reproduce the issue next time.
>>
>> - Rishabh
>>
>>