最近在研究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 articlehttps://wiki.centos.org/yum-errorsIf 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 ProtonName 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 articlehttps://wiki.centos.org/yum-errorsIf 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 ResolutionDependencies 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 ksaslwrapper                                                 x86_64                                          0.16-5.el7                                            epel                                           19 kTransaction 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 transactionInstalling : saslwrapper-0.16-5.el7.x86_64                                                                                                                                                                       1/3Installing : python-saslwrapper-0.16-5.el7.x86_64                                                                                                                                                                2/3Installing : python2-qpid-1.37.0-5.el7.noarch                                                                                                                                                                    3/3Verifying  : python2-qpid-1.37.0-5.el7.noarch                                                                                                                                                                    1/3Verifying  : saslwrapper-0.16-5.el7.x86_64                                                                                                                                                                       2/3Verifying  : python-saslwrapper-0.16-5.el7.x86_64                                                                                                                                                                3/3Installed:python2-qpid.noarch 0:1.37.0-5.el7Dependency Installed:python-saslwrapper.x86_64 0:0.16-5.el7                                                                        saslwrapper.x86_64 0:0.16-5.el7Complete!

再次创建新的队列即成功

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

Qpid 安装问题之qpid.messaging相关推荐

  1. Python通过amqp消息队列协议中的Qpid实现数据通信

    简介: 这两天看了消息队列通信,打算在配置平台上应用起来.以前用过zeromq但是这东西太快了,还有就是rabbitmq有点大,新浪的朋友推荐了qpid,简单轻便.自己总结了下文档,大家可以瞅瞅. A ...

  2. 使用GCM服务(Google Cloud Messaging)实现Android消息推送

    最近在网上查了关于很多Android消息推送的资料,其中主要有四种方法. 1) 使用GCM服务(Google Cloud Messaging) 2) 使用XMPP协议(Openfire + Spark ...

  3. Openstack平台搭建之第二天

    2019独角兽企业重金招聘Python工程师标准>>> Openstack平台搭建之第二天 Author by xxbAndy. If you have any question , ...

  4. 【OpenStack】OpenStack系列5之Cinder详解

    源码下载安装 git clone -b stable/icehouse https://github.com/openstack/cinder.git pip install -r requireme ...

  5. 在KVM最小化搭建openstack平台 --快速部署openstack

    Openstack简介 Openstack是一个云平台管理的项目,它不是一个软件.这个项目由几个主要的组件组合起来完成一些具体的工作.Openstack是一个旨在为公共及私有云的建设与管理提供软件的开 ...

  6. activemq控制发送频率_发送activemq

    ActiveMQ入门实例 1.下载ActiveMQ 去官方网站下载:http://activemq.apache.org/ 2.运行ActiveMQ 解压缩apache-activemq-5.5.1- ...

  7. jboot jboot.properties 设置

    jboot.datasource.shardingEnable= true jboot.datasource.shardingDatabase = db0,db1 jboot.datasource.n ...

  8. 服务器显示不兼容这是什么问题,服务器server0处于不兼容的状态,怎么办?

    请参阅创建受管服务器. 请参阅创建受管服务器. 配置受管服务器与"节点管理器"进行通信.节点管理器是一个 WebLogic Server 实用工具,您可以使用它启动.停止和挂起服务 ...

  9. oslo_messaging使用及测试

    目录 介绍说明 系统环境 rabbitmq-server安装及配置 oslo.messaging安装 oslo.config安装 olso_messaging测试验证 总结 介绍说明 openstac ...

最新文章

  1. 原码,反码,补码,移码的概念以及各自的用途和优点
  2. TD8620手持数字特斯拉计一些基本的定标
  3. 通过 OpenAPI 部署 Nbsf_Management API Service
  4. 【填坑】博客搬家造成的博客重复问题
  5. LeetCode 1209. 删除字符串中的所有相邻重复项 II(栈)
  6. assoc fetch mysql 用法_mysql_fetch_assoc、mysql_fetch_object、mysql_fetch_row、mysql_fetch_array用法学习...
  7. 怎么用html打开图片,viewerjs 在html打开图片或打开pdf文件使用案例
  8. 椭圆型偏微分方程数值解法
  9. 微信网页支付之H5支付
  10. Ubuntu下载工具uGet+aira2
  11. 张宇:7~12月考研数学该如何复习?
  12. 关于CSS居中显示的总结
  13. 泰凌微8258入门教程 环境篇②——Telink IDE开发环境搭建
  14. Python黑客攻防(十六)编写Dos脚本,进行简单攻击演示
  15. 哪些技能,经较短时间的学习,就可以给人的生活带来巨大帮助?
  16. 前端(JavaScript)------字符串
  17. 匈奴国王阿提拉:令整个欧洲发抖的上帝之鞭
  18. 加速应用开发 | Firebase Summit 2021 精彩回顾
  19. AIRPLAY镜像音频数据的处理
  20. 以太坊交易信息及event、input、logs、topics等概念机制

热门文章

  1. 【基本面的量化分析与投资的回报可能 - 上篇】
  2. Mac 切换 键盘布局(Colemak、dvorak、qwerty)
  3. uniapp中调用QQ一键登录实现方法
  4. C++ strcpy、strcat、strcmp和strlen的实现
  5. webuploader上传图片插件案例
  6. android 工具 Draw 9-patch 详解
  7. c语言中如何将字体弄大,CFree怎样调大字体
  8. 别惊讶,我真的不建议你考华为认证,点进来看原因~
  9. Linux7密钥,centos7秘钥验证
  10. 无社交,不创业:2017松松兄弟上海聚会剧透