Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I configure multiple Ubuntu Python installations to avoid App Engine's SSL error?
    primarykey
    data
    text
    <p>I have Karmic Koala which has Python 2.6 installed by default.</p> <p>However I can't run any Python App Engine projects because they require Python 2.5 and python ssl.</p> <p>To install ssl I installed python2.5-dev first while following <a href="http://groups.google.com/group/google-appengine-python/browse_thread/thread/92583bea0395c57a" rel="noreferrer">some instructions I found elsewhere</a>.</p> <pre><code>sudo apt-get install libssl-dev sudo apt-get install python-setuptools sudo apt-get install python2.5-dev sudo easy_install-2.5 pyopenssl </code></pre> <p>However, I am afraid this is not good for my Ubuntu installation since Ubuntu expects to see version 2.6 of Python when you type 'python' on the command line. Instead, it says '2.5.5'. </p> <p>But App Engine still doesn't work after all this. I continue to get an SSL-related error whenever I try to run my Python app:</p> <pre><code>AttributeError: 'module' object has no attribute 'HTTPSHandler' </code></pre> <p>UPDATE1: Just checked whether SSL actually installed as a result of those commands by typing this:</p> <pre><code>$ python2.5 Python 2.5.5 (r255:77872, Apr 29 2010, 23:59:20) [GCC 4.4.1] on linux2 Type "help", "copyright", "credits" or "license" for more information. &gt;&gt;&gt; import ssl Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; ImportError: No module named ssl &gt;&gt;&gt; </code></pre> <p>As you can see, SSL is still not installed, which explains the continuing App Engine error.</p> <p>UPDATE2:</p> <p>I tried to revert to the original default version of Python by doing this:</p> <pre><code>sudo ln -s /usr/bin/python2.6 python </code></pre> <p>in my <code>/usr/bin/local</code> folder.</p> <p>Now I get Python 2.6.4 when I type 'python' on the command line.</p> <p>But this doesn't solve my App Engine SSL issue.</p> <p>If anyone knows how I can dig myself out of this hole, I would appreciate it.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload