Qpid 安装问题之qpid.messaging

最近在研究Qpid,使用的版本为qpid-cpp-1.39.0;在经过编译安装后,在创建队列是遇到了如下问题:

[root@localhost qpid-cpp-1.39.0]# qpid-config add queue hello-world
Traceback (most recent call last):
  File "/usr/local/bin/qpid-config", line 31, in <module>
    from qpid.messaging import Connection, ConnectionError
ImportError: No module named qpid.messaging

这是缺少引用python-qpid,我们可以使用yum search python-qpid 命令查找安装包

[root@localhost qpid-cpp-1.39.0]# yum search python-qpid
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * epel: d2lzkl7pfhq30w.cloudfront.net
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
https://repo.saltstack.com/yum/redhat/7/x86_64/archive/2018.3.2/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.

============================================================================================== N/S matched: python-qpid ===============================================================================================
python-qpid.noarch : Python client library for AMQP
python-qpid-common.noarch : Shared code for Qpid Python language bindings
python-qpid-proton.x86_64 : Python language bindings for the Qpid Proton messaging framework
python-qpid-proton-docs.noarch : Documentation for the Python language bindings for Qpid Proton

  Name and summary matches only, use "search all" for everything.

根据需要把以上的包都安装了即可,例如:

[root@localhost qpid-cpp-1.39.0]# yum install python-qpid-common.noarch
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * epel: d2lzkl7pfhq30w.cloudfront.net
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
https://repo.saltstack.com/yum/redhat/7/x86_64/archive/2018.3.2/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found
Trying other mirror.
To address this issue please refer to the below wiki article

https://wiki.centos.org/yum-errors

If above article doesn't help to resolve this issue please use https://bugs.centos.org/.

Package python-qpid-common is obsoleted by python2-qpid, trying to install python2-qpid-1.37.0-5.el7.noarch instead
Resolving Dependencies
--> Running transaction check
---> Package python2-qpid.noarch 0:1.37.0-5.el7 will be installed
--> Processing Dependency: python-saslwrapper for package: python2-qpid-1.37.0-5.el7.noarch
--> Running transaction check
---> Package python-saslwrapper.x86_64 0:0.16-5.el7 will be installed
--> Processing Dependency: saslwrapper(x86-64) = 0.16-5.el7 for package: python-saslwrapper-0.16-5.el7.x86_64
--> Processing Dependency: libsaslwrapper.so.1()(64bit) for package: python-saslwrapper-0.16-5.el7.x86_64
--> Running transaction check
---> Package saslwrapper.x86_64 0:0.16-5.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================================================================================================================================================
 Package                                                     Arch                                            Version                                               Repository                                     Size
=======================================================================================================================================================================================================================
Installing:
 python2-qpid                                                noarch                                          1.37.0-5.el7                                          epel                                          363 k
Installing for dependencies:
 python-saslwrapper                                          x86_64                                          0.16-5.el7                                            epel                                           26 k
 saslwrapper                                                 x86_64                                          0.16-5.el7                                            epel                                           19 k

Transaction Summary
=======================================================================================================================================================================================================================
Install  1 Package (+2 Dependent packages)

Total download size: 408 k
Installed size: 1.9 M
Is this ok [y/d/N]: y
Downloading packages:
(1/3): python2-qpid-1.37.0-5.el7.noarch.rpm                                                                                                                                                     | 363 kB  00:00:01
(2/3): saslwrapper-0.16-5.el7.x86_64.rpm                                                                                                                                                        |  19 kB  00:00:02
(3/3): python-saslwrapper-0.16-5.el7.x86_64.rpm                                                                                                                                                 |  26 kB  00:00:03
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                                  129 kB/s | 408 kB  00:00:03
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : saslwrapper-0.16-5.el7.x86_64                                                                                                                                                                       1/3
  Installing : python-saslwrapper-0.16-5.el7.x86_64                                                                                                                                                                2/3
  Installing : python2-qpid-1.37.0-5.el7.noarch                                                                                                                                                                    3/3
  Verifying  : python2-qpid-1.37.0-5.el7.noarch                                                                                                                                                                    1/3
  Verifying  : saslwrapper-0.16-5.el7.x86_64                                                                                                                                                                       2/3
  Verifying  : python-saslwrapper-0.16-5.el7.x86_64                                                                                                                                                                3/3

Installed:
  python2-qpid.noarch 0:1.37.0-5.el7

Dependency Installed:
  python-saslwrapper.x86_64 0:0.16-5.el7                                                                        saslwrapper.x86_64 0:0.16-5.el7

Complete!

再次创建新的队列即成功

[root@localhost qpid-cpp-1.39.0]# qpid-config add queue hello-world

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值