Up to what i know, This is because of missing the package "python-qpid". 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..... (Also include devel packages) If you don't have epel, first get epel into your yum.repos.d/ and then install the package. Also Make sure that you installed the ssl related packages. (For SASL and SSL, include " # yum install cyrus-sasl-devel nss-devel nspr-devel " ) All the best. JustinHan wrote > Hi,all > > My Python version is: >> python -V > Python 2.7.5 > > But, when I run the hello example, it indicate me an error: >> ./hello > Traceback (most recent call last): > File "./hello", line 22, in > <module> > from qpid.messaging import * > File "/home/dchyj/workspace/qpidpy/examples/api/qpid/__init__.py", line > 20, in > <module> > import connection > File "/home/dchyj/workspace/qpidpy/examples/api/qpid/connection.py", > line 20, in > <module> > import datatypes, session > File "/home/dchyj/workspace/qpidpy/examples/api/qpid/session.py", line > 21, in > <module> > from generator import command_invoker > File "/home/dchyj/workspace/qpidpy/examples/api/qpid/generator.py", line > 22, in > <module> > from ops import * > File "/home/dchyj/workspace/qpidpy/examples/api/qpid/ops.py", line 20, > in > <module> > from util import fill > File "/home/dchyj/workspace/qpidpy/examples/api/qpid/util.py", line 25, > in > <module> > from socket import ssl as wrap_socket > ImportError: cannot import name ssl > > anyone can tell me what's the reason? thanks in advance! > > Justin -- View this message in context: http://qpid.2158936.n2.nabble.com/python-ImportError-cannot-import-name-ssl-tp7597645p7598200.html Sent from the Apache Qpid users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org For additional commands, e-mail: users-h...@qpid.apache.org