Installing Python from sources with all the modules

2013-12-16 Thread shankha
Hi,
I am trying to install Python 3.3 from the latest sources on linux.

After the installation when I try to run the following I get a error:


   ./python
   Python 3.3.3 (default, Dec 16 2013, 18:28:25)
   [GCC 4.8.2 20131017 (Red Hat 4.8.2-1)] on linux
   Type help, copyright, credits or license for more information.
import ssl
   Traceback (most recent call last):
 File stdin, line 1, in module
 File /home/shankha/Python-git/Python3-3/Python-3.3.3/Lib/ssl.py,line
   60, in module
   import _ssl # if we can't import it, let the error
   propagate
   ImportError: No module named '_ssl'


Is there a way while installing from sources I enable all modules to be
installed.

-- 
Thanks
Gudge
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Installing Python from sources with all the modules

2013-12-16 Thread Terry Reedy

On 12/16/2013 8:55 PM, shankha wrote:

I am trying to install Python 3.3 from the latest sources on linux.

After the installation when I try to run the following I get a error:

./python
Python 3.3.3 (default, Dec 16 2013, 18:28:25)
[GCC 4.8.2 20131017 (Red Hat 4.8.2-1)] on linux
Type help, copyright, credits or license for more information.
  import ssl
Traceback (most recent call last):
   File stdin, line 1, in module
   File
/home/shankha/Python-git/Python3-3/Python-3.3.3/Lib/ssl.py, line
60, in module
 import _ssl # if we can't import it, let the error propagate
ImportError: No module named '_ssl'


Is there a way while installing from sources I enable all modules to be
installed.


Check http://docs.python.org/devguide
On Windows, I would add 'check repository/PcBuild/README. I do not 
know if there is the equivalent for *nix.


--
Terry Jan Reedy

--
https://mail.python.org/mailman/listinfo/python-list


Re: Installing Python from sources with all the modules

2013-12-16 Thread David Robinow
On Mon, Dec 16, 2013 at 8:55 PM, shankha shankhabaner...@gmail.com wrote:
 Hi,
 I am trying to install Python 3.3 from the latest sources on linux.

 After the installation when I try to run the following I get a error:

 ./python
 Python 3.3.3 (default, Dec 16 2013, 18:28:25)
 [GCC 4.8.2 20131017 (Red Hat 4.8.2-1)] on linux
 Type help, copyright, credits or license for more information.
 import ssl
 Traceback (most recent call last):
   File stdin, line 1, in module
   File /home/shankha/Python-git/Python3-3/Python-3.3.3/Lib/ssl.py, line
 60, in module
 import _ssl # if we can't import it, let the error propagate
 ImportError: No module named '_ssl'


 Is there a way while installing from sources I enable all modules to be
 installed.


You need to install the openssl development package. I don't know how
you do that on Red Hat.  Don't use it myself.
 There will probably be other missing modules for which you will have
to install prerequisites for. Once you do that they should build
automatically when you rebuild.
-- 
https://mail.python.org/mailman/listinfo/python-list