Even though you installed the command line tools properly, sometimes you will
get this error.
 This means that you need to install the "python-qpid".
If you have "epel" repository in your "yum.repos.d/", You can directly
install the package by searching like this. 

             #  yum search python-qpid

In search results, select package according to your Operating system
(32-bit/64-bit). And then install the package.

            # yum install python-qpid.....

If you don't have epel, first get epel into your yum.repos.d/ and then
install the package. All the best.


findcomm wrote
> I have installed qpid-0.22 on sles11 sp2 X86_64, the broker works fine.
> But the python client doesn't work, including qpid-config tool and
> qpid-python client test examples.
> When I ran this kind of script, it showed following exception:
> 
> Traceback (most recent call last):
>   File "/usr/local/bin/qpid-config", line 31, in 
> <module>
>     from qpid.messaging import Connection
>   File "/usr/local/lib/python2.7/site-packages/qpid/__init__.py", line 20,
> in 
> <module>
>     import connection
>   File "/usr/local/lib/python2.7/site-packages/qpid/connection.py", line
> 20, in 
> <module>
>     import datatypes, session
>   File "/usr/local/lib/python2.7/site-packages/qpid/session.py", line 26,
> in 
> <module>
>     from ops import Command, MessageTransfer
> ImportError: cannot import name MessageTransfer
> 
> update:
> I have installed qpid-python client and set the env variable.
> PYTHONPATH=/home/zdx/qpid/qpid-0.22/python/:/usr/local/lib/python2.7:/usr/local/lib/python2.7/site-packages
> 
> what is the problem?  thanks





--
View this message in context: 
http://qpid.2158936.n2.nabble.com/Help-qpid-python-client-doesn-t-work-for-qpid-0-22-tp7595680p7598199.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to