[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Can't install ssl for Python2.5

Lacrima

3/10/2010 8:16:00 PM

Hello!

I use Ubuntu 9.10 Karmic Koala. It has Python 2.6 as default
installation.
And I installed Python 2.5 alongside (for the need of Google
AppEngine). But it seems like my Python 2.5 installation lacks ssl
support. I can't import ssl and starting appengine server fails with
"'module' object has no attribute 'HTTPSHandler'".
So I tried to install this: http://pypi.python.org/pyp...
But it failed with a very strange error:
sudo easy_install-2.5 ssl
-------------
Searching for ssl
Reading http://pypi.python.org/s...
Reading http://docs.python.org/dev/librar...
Best match: ssl 1.15
Downloading http://pypi.python.org/packages/source/s/ssl/ssl-1.15.tar.gz#md5=81ea8a1175e437b4c769ae...
Processing ssl-1.15.tar.gz
Running ssl-1.15/setup.py -q bdist_egg --dist-dir /tmp/easy_install-
Kd839q/ssl-1.15/egg-dist-tmp-QCIl6J
looking for /usr/include/openssl/ssl.h
looking for /usr/local/ssl/include/openssl/ssl.h
looking for /usr/include/krb5.h
looking for /usr/kerberos/include/krb5.h
error: Setup script exited with error: SandboxViolation: open('/usr/
local/lib/python2.5/test/test_ssl.py', 'wb') {}

The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, and has been aborted.

This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand. Please inform the package's author and the
EasyInstall
maintainers to find out if a fix or workaround is available.
-------------

I don't know how to solve this problem and I am looking forward for
help.
Thanks in advance.

with regards,
Maxim.
2 Answers

Martin v. Loewis

3/10/2010 9:24:00 PM

0

> I don't know how to solve this problem and I am looking forward for
> help.

Try running "python setup.py install" directly, after downloading and
unpacking the package.

Regards,
Martin

Lacrima

3/11/2010 5:49:00 AM

0

On Mar 10, 11:23 pm, "Martin v. Loewis" <mar...@v.loewis.de> wrote:
> > I don't know how to solve this problem and I am looking forward for
> > help.
>
> Try running "python setup.py install" directly, after downloading and
> unpacking the package.
>
> Regards,
> Martin

Thanks a lot! It helped!