Error while building Python doc

2013-12-22 Thread shankha
Hi,
I am trying to build Python documents as listed here

http://docs.python.org/devguide/documenting.html#building-the-documentation

make -C Doc html

Error message:
Checked out revision 89010.
mkdir -p build/html build/doctrees
python tools/sphinx-build.py -b html -d build/doctrees -D
latex_paper_size=  . build/html
Traceback (most recent call last):
  File "tools/sphinx-build.py", line 27, in 
from sphinx import main
ImportError: No module named sphinx
make: *** [build] Error 1
make: Leaving directory `Python-git/cpythonL-doc/Doc'


Sphinx is located inside the directory:

Doc/tools.

Do I need to change how I import (the path may be).

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


Script for new contributors to check the patch

2013-12-16 Thread shankha
Hi,
For people who wish to contribute is there a script which checks if the
patch is good and the test
results are matching with the baseline and basically says yes or no about
good or not good to merge.

-- 
Thanks
Gudge


On Tue, Dec 17, 2013 at 8:11 AM, shankha  wrote:

> Hi,
> For people who wish to contribute is there a script which checks if the
> patch is good and the test
> results are matching with the baseline and basically says yes or no about
> good or not good to merge.
>
> --
> Thanks
> Gudge
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Total time in running Python Tests

2013-12-16 Thread shankha
Hi,
What is the usually the time taken to run Python tests on a x86 machine
with 1 GB of RAM?

http://docs.python.org/devguide/

./python -m test -j3

Should it be all PASS ? What is the expected summary of the results. Are
these good:


   .3 tests omitted:
   test___all__ test_site test_urllib2net
   348 tests OK.
   3 tests failed:
   test_codecs test_distutils test_ioctl
   2 tests altered the execution environment:
   test___all__ test_site
   33 tests skipped:
   test_bz2 test_codecmaps_cn test_codecmaps_hk test_codecmaps_jp
   test_codecmaps_kr test_codecmaps_tw test_curses test_dbm_gnu
   test_dbm_ndbm test_devpoll test_gzip test_idle test_kqueue
   test_lzma test_msilib test_ossaudiodev test_readline test_smtpnet
   test_socketserver test_sqlite test_ssl test_startfile test_tcl
   test_timeout test_tk test_ttk_guionly test_ttk_textonly
   test_urllibnet test_winreg test_winsound test_xmlrpc_net
   test_zipfile64 test_zlib

Are the results fine.

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


[no subject]

2013-12-16 Thread shankha
Hi,
For people who wish to contribute is there a script which checks if the
patch is good and the test
results are matching with the baseline and basically says yes or no about
good or not good to merge.

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


Running Python tests

2013-12-16 Thread shankha
Hi,
I am following the developers guide in running Python tests. I had few
questions.

1) Say I run the tests and the run got interrupted after few minutes. I
want to start afresh.
Is there a way to get rid of all the test results or intermediate files or
python does the job as and when the test is running.

2) The dev guide says (http://docs.python.org/devguide/)

./python -m test -j3

Can we run the test with -j1 or -j2 or without any options.

Will there be any difference in results.


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


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 "", line 1, in 
 File "/home/shankha/Python-git/Python3-3/Python-3.3.3/Lib/ssl.py",line
   60, in 
   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


Permission for contribution: http://bugs.python.org/issue19940

2013-12-10 Thread shankha
I wish to make contribution to Python source code. I have studied the
developers guide and made myself familiar with mercurial. I wish to start
of with some doc bugs as this will give me insight into
how the whole process(review, tests, patches) works. Is it okay if to take:

http://bugs.python.org/issue19940.


Will update the bug report once you guys are fine with it. My platform will
primarily be Linux.

Background:

I have worked with runtime analysis tools, MPI, OpenMP and now currently
working on Java.
Let me know if there are areas where I can be of help to you. Thanks for
the maintaining this wonderful language.

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


Conversion Issue in Converting code of 2.7 to 3

2013-08-23 Thread shankha
Hi,
I am trying to run the following piece of code:

https://greyhat.gatech.edu/wiki/index.php?title=Java_Bytecode_Tutorial/Getting_Started

python Krakatau/assemble.py minimal.j.

The scripts are written for 2.7. I want to convert them to 3.3.

I am struck with the following error:

[]$ python Krakatau/assemble.py minimal.j
Traceback (most recent call last):
  File "Krakatau/assemble.py", line 4, in 
from Krakatau.assembler import tokenize, parse, assembler

  File "c:\tmp\ByteCode\Krakatau\Krakatau\assembler\tokenize.py", line
3, in 
from ..classfile import ClassFile
  File "c:\tmp\ByteCode\Krakatau\Krakatau\classfile.py", line 1, in 

from . import constant_pool, method, field
  File "c:\tmp\ByteCode\Krakatau\Krakatau\constant_pool.py", line 10
def decodeStr((s,)):
  ^
SyntaxError: invalid syntax



The code where this error originates from:

def decodeStr((s,)):
return s.replace('\xc0\x80','\0').decode('utf8'),



I looked at http://docs.python.org/3/whatsnew/3.0.html but I couldn't
figure out where

I am going wrong?


-- 
Thanks
-- 
http://mail.python.org/mailman/listinfo/python-list