tornado icon indicating copy to clipboard operation
tornado copied to clipboard

HTTPS requires either python2.6+ or curl_httpclient

Open joesomoza opened this issue 15 years ago • 2 comments

First of all, I really like your product because it is Jetty for Python. Awesome!

I have your latest git repository, commit 495b39ce7bc7400f0cc385fce7dba64a8176f209

I use Python 3.2.

On an unrelated note, I'm very happy with the byte to string fix you did on auth.py =) It works well on Windows and Ubuntu.

However, when I run your authdemo on my micro-fedora-linux amazon cloud EC2 machine

python3.2 authdemo.py

I get the following error:

[I 110701 03:22:11 web:1306] 302 GET / () 1.07ms [I 110701 03:22:11 web:1306] 302 GET /auth/login?next=%2F () 0.82ms [W 110701 03:22:50 simple_httpclient:267] uncaught exception Traceback (most recent call last): File "/usr/local/lib/python3.2/site-packages/tornado-2.0git-py3.2.egg/tornado/simple_httpclient.py", line 265, in cleanup yield File "/usr/local/lib/python3.2/site-packages/tornado-2.0git-py3.2.egg/tornado/simple_httpclient.py", line 137, in init raise ValueError("HTTPS requires either python3.6+ or " ValueError: HTTPS requires either python2.6+ or curl_httpclient [W 110702 03:22:50 auth:152] Invalid OpenID response: HTTPS requires either python3.6+ or curl_httpclient [W 110701 03:22:50 web:952] 500 GET /auth/login?next=%2F&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.mode=id_res&openid.op_endpoint=https%3A%2F%2Fwww.google.com%2Faccounts%2Fo8%2Fud&openid.response_nonce=2011-07-01T03%3A22%3A38Z2eTypC53PBQpIw&openid.return_to=) 9.57ms ^CTraceback (most recent call last): File "auth/authdemo.py", line 85, in main() File "auth/authdemo.py", line 81, in main tornado.ioloop.IOLoop.instance().start() File "/usr/local/lib/python3.2/site-packages/tornado-2.0git-py3.2.egg/tornado/ioloop.py", line 283, in start event_pairs = self._impl.poll(poll_timeout) KeyboardInterrupt [tornadodemos] >>> ls appengine benchmark chat helloworld websocket auth blog facebook s3server

Maybe I'm smoking crack?

joesomoza avatar Jul 01 '11 04:07 joesomoza

You need the ssl module, which has been part of the standard library since 2.6. If that's not working, there's something wrong with your installation of python (python will disable certain modules if something goes wrong while building them). If you built python yourself, make sure you have openssl (and its header files, etc) installed while you build it.

bdarnell avatar Jul 01 '11 05:07 bdarnell

Thanks!

I was missing

sudo yum install openssl-devel

This is my new Python 3.2 install recipe

#fedora yum yum list installed | grep ssl sudo yum install openssl sudo yum install openssl-devel sudo yum install zlib sudo yum install zlib-devel sudo yum groupinstall "Development Tools" wget http://www.python.org/ftp/python/3.2/Python-3.2.tgz && tar -xvf Python-3.2.tgz cd Python-3.2/ ./configure -with-zlib=/usr/include -with-ssl make sudo make altinstall

joesomoza avatar Jul 01 '11 16:07 joesomoza