最近在研究Qpid,使用的版本为qpid-cpp-1.39.0;在经过编译安装后,在创建队列是遇到了如下问题:
[root@localhost ~]# qpid-config add queue hello-world
Traceback (most recent call last):
File "/usr/local/bin/qpid-config", line 32, in <module>
from qpidtoollibs import BrokerAgent, Display, Header
ImportError: No module named qpidtoollibs这是在引用qpidtoollibs库时发现没有,qpidtoollibs在qpid-tools里面,只要安装这个包即可
[root@localhost ~]# pip install qpid-tools
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Collecting qpid-tools
Downloading qpid-tools-1.36.0-1.tar.gz (88 kB)
|████████████████████████████████| 88 kB 368 kB/s
Requirement already satisfied: qpid-python>=0.26 in /usr/lib/python2.7/site-packages (from qpid-tools) (1.37.0)
Building wheels for collected packages: qpid-tools
Building wheel for qpid-tools (setup.py) ... done
Created wheel for qpid-tools: filename=qpid_tools-1.36.0.post1-py2-none-any.whl size=110875 sha256=4edb06617501eeb86c10a56d7358d3bdbfa9d3f607d88cdf7c5f9cf237b8fee5
Stored in directory: /root/.cache/pip/wheels/f2/8c/78/3e0d7a0ed4133110180a4753e2801ec0d53a8bcdb2a75f18e8
Successfully built qpid-tools
Installing collected packages: qpid-tools
Successfully installed qpid-tools-1.36.0.post1再次创建新的队列即成功
[root@localhost ~]# qpid-config add queue hello-world
版权声明:本文为fengyunzhenyu原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。