smtplib is broken when using TLS

2011-05-17 Thread nirinA raseliarison
", line 509, in wrap_socket ciphers=ciphers) File "/usr/local/lib/python3.2/ssl.py", line 266, in __init__ raise x File "/usr/local/lib/python3.2/ssl.py", line 262, in __init__ self.do_handshake() File "/usr/local/lib/python3.2/ssl.py&quo

test_ftplib.py failed with segmentation fault,gcc4.6.0,glibc-2.13

2011-05-17 Thread nirinA raseliarison
3f000-7f38f8d41000 rw-p 4000 08:0e 54345 /mnt/sda14/pack_build/Python-3.2.1rc1/build/lib.linux-x86_64-3.2/select.cpython-32m.so 7f38f8d41000-7f38f8d55000 r-xp 08:0b 219 /usr/lib64/libz.so.1.2.3 7f38f8d55000-7f38f8f54000 ---p 00014000 08:0b 219 /usr/lib64/libz.so.1.2.3Aborted -- nirinA --

test_argparse.py FAILED (failures=6)

2011-05-17 Thread nirinA raseliarison
e "/mnt/sda14/pack_build/Python-3.2.1rc1/Lib/test/support.py", line 1167, in _run_suite raise TestFailed(err) test.support.TestFailed: multiple errors occurred -- nirinA -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3 dict question

2011-05-06 Thread nirinA raseliarison
ms() return iterator. > Of course, I could use > for key, val in myDict.items(): > do_something > break > but maybe there is any better way? key, val = list(myDict.items())[0] -- nirinA -- http://mail.python.org/mailman/listinfo/python-list

Re: BeautifulSoup import error

2011-05-06 Thread nirinA raseliarison
5.4 on windows, so can't help much. with Linux, it is just: 2to3 a_python_file_or_a_dir_package on windows, i don't know, maybe: import subprocess subprocess.Popen(('python.exe', 'Tools/Scripts/2to3.py', 'the_package')) -- nirinA -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL Question

2011-05-02 Thread nirinA raseliarison
ppcfg_nag', '.bash_history', '.idlerc', '.inputrc', '.povray', 'bootex.log', 'buildBasicDemo.txt', 'glsample.cpp', 'glsample.o', 'log.txt', 'screen_capture.jpg', 'test.c'] >>> -- nirinA -- http://mail.python.org/mailman/listinfo/python-list

Re: py 2.7.1 & openssl

2011-04-02 Thread nirinA raseliarison
[V N] I tried all your suggestions. No success. don't forget to run: make distclean before you rerun configure nirinA -- http://mail.python.org/mailman/listinfo/python-list

Re: Compiling python without ssl?

2011-04-01 Thread nirinA
lso do surgery on configure or something if that's what it takes. Thanks in advance! Austin you can change or erase the list of include and library files related to ssl in setup.py before configuring. but, as you say, this may break hashlib. and probably the socket module, and may be other

Re: py 2.7.1 & openssl

2011-04-01 Thread nirinA
the -I or -L and the directory name. and the backslash to continue long line. finally, don't use sudo. try to log as root if possible. may be you cannot access some files needed for compilation as a simple user. and some LD*** and CPP*** flags are reset when you use sudo. hope this helps nirinA -- Simple is better than complex. -- http://mail.python.org/mailman/listinfo/python-list

Re: py 2.7.1 & openssl

2011-03-31 Thread nirinA
[V N] import _md5 ImportError: No module named _md5 Any idea(s)? try to build Python with pydebug to enable _md5: ./configure --with-pydebug nirinA -- http://mail.python.org/mailman/listinfo/python-list

Re:py 2.7.1 & openssl

2011-03-31 Thread nirinA raseliarison
le Python. otherwise, look at the make log to see why the building of ssl module failed. nirinA -- http://mail.python.org/mailman/listinfo/python-list

Re: Submission for Python Limmerick Contest

2005-03-24 Thread Raseliarison nirinA
a penguin, a gnu and a snake and an X animal participate in a poem contest. who will win? Ellipsis -- nirinA -- -- http://mail.python.org/mailman/listinfo/python-list

Re: Submission for Python Limmerick Contest

2005-03-22 Thread Raseliarison nirinA
> A tuple, a dict, and a list, > And whitespace which mus'n't be missed. > Imported together, > And stirred with a feather, > Yields a language whose name must be hissed! A char, an integer and a float, And a decimal which precision is fixed Computerised altogether Then shaked down with a mixer As

Re: Listbox fill=BOTH expand=YES (Tkinter)

2005-03-17 Thread Raseliarison nirinA
tants) for i in ['TRUE', 'YES', 'inexistent key']) False lovely... i do not regret the fate of reduce et al. > > To check for subsets, either use the issubset function, or the '<' operator (I > believe they both call the same code): > > .>> set(['TRUE','YES']).issubset(set(dir(Tkconstants))) > True > > can be expressed as > > .>> set(['TRUE','YES']) < set(dir(Tkconstants)) > True i noted! thanks again. -- nirinA -- -- http://mail.python.org/mailman/listinfo/python-list

Re: Listbox fill=BOTH expand=YES (Tkinter)

2005-03-16 Thread Raseliarison nirinA
ts) True i'll recite 42 times precedence rules before going to bed. but now i'm a bit confused by the -in- operator. as: >>> set(['TRUE','YES']).issubset(set(dir(Tkconstants))) True i expected this to be true, but it's not:

Re: distutils setup ignoring scripts

2005-03-15 Thread Raseliarison nirinA
the python > docs. > i think you need to precise it, and even with some other rpm specific options like: --use-rpm-opt-flags but ... i'm not sure that those options are already implemented with Python22. if not you may have to upgrade! -- nirinA -- http://mail.python.org/mailman/listinfo/python-list

Re: distutils setup ignoring scripts

2005-03-15 Thread Raseliarison nirinA
in your package? what command are you issueing? does this include the file? python setup.py sdist as you use Python22 on RH9, maybe: python setup.py bdist_rpm --install-script foobar > Jack -- nirinA -- i ougth to read clearly the post and should refuse the temptation to guess! -- http://mail.python.org/mailman/listinfo/python-list

Re: distutils setup ignoring scripts

2005-03-15 Thread Raseliarison nirinA
command are you issueing? does this include the file? python setup.py sdist as you use Python22 on RH9, maybe: python setup.py bdist_rpm --install-script foobar > Jack -- nirinA -- http://mail.python.org/mailman/listinfo/python-list

Re: distutils setup ignoring scripts

2005-03-15 Thread Raseliarison nirinA
ge? what command are you issueing? does this include the file? python setup.py sdist as you use Python22 (old) on RH9, maybe: python setup.py bdist_rpm --install-script foobar -- nirinA -- -- http://mail.python.org/mailman/listinfo/python-list

Re: Listbox fill=BOTH expand=YES (Tkinter)

2005-03-15 Thread Raseliarison nirinA
"Harlin Seritt" wrote: > either YES, True, or 1 should work. > yes, indeed. >>> import Tkconstants >>> 'True' and 'YES' in dir(Tkconstants) True thanks Harlin, -- nirinA -- http://mail.python.org/mailman/listinfo/python-list

Re: distutils setup ignoring scripts

2005-03-15 Thread Raseliarison nirinA
not specified by the setup script is to write a MANIFEST where you indicate those files. then build the package with the sdist command: $ cat > MANIFEST bin/foobar bin/anotherfoobar anotherbin/barfoo setup.py MANIFEST ctrl-D $ python setup.py sdist > > Jack Orenstein > hope this helps. -- nirinA -- http://mail.python.org/mailman/listinfo/python-list

Re: Listbox fill=BOTH expand=YES (Tkinter)

2005-03-14 Thread Raseliarison nirinA
gt; > Is there any way to force this? > > > > thanks, > > > > Harlin > > > > Harlin, > > It should expand (and fill ) in both directions have you checked > it's parents packing options? > > Martin > is YES a valid flag for expand? maybe expand=1 -- nirinA -- http://mail.python.org/mailman/listinfo/python-list

Re: A Font Dialog (Tkinter)

2005-03-14 Thread Raseliarison nirinA
nt, idlelib.configDialog, inspect >>> print inspect.getsource(tkFont) >>> print inspect.getsource(idlelib.configDialog.ConfigDialog.CreatePageFontTab) > thanks, > > Harlin Seritt > hope this helps -- nirinA -- -- http://mail.python.org/mailman/listinfo/python-list

Re: tkinter: always scroll to show last line of text

2005-03-13 Thread Raseliarison nirinA
the text and scrollbar to be scrolled > > to > > the bottom, so the latest line of text is always shown. How to do > > this? Thanks, > > > text.yview_pickplace("end") > or text.see('end') there is also a "ScrolledText" module >

Re: Searching for a ComboBox for Tkinter?

2005-03-13 Thread Raseliarison nirinA
on : present if created with the fancy option -- nirinA -- http://mail.python.org/mailman/listinfo/python-list

Re: Install problem Windows xp HE

2005-03-13 Thread Raseliarison nirinA
tall report! not an error. start coding and see what happens. >>> print "Hello World!" -- nirinA -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter Bitmap Newbie question

2005-03-13 Thread Raseliarison nirinA
"/" , that is, at the top level directory. bitmap="@c:/test.xbm" is equivalent. some solutions: 1) copy (or cut) and paste the file test.xbm to c:/ and continue to use your code or, 2) if test.xbm is in the same directory as your code, you may write: bitmap="@test.xbm" or bitmap="@./test.xbm" where "./" means the current directory or, 3) you may write something like (one single string!): bitmap="@C:/Documents and Settings\Wim/Mijn documenten\Python/test.xbm" notice also that if the bitmap appears in your button, your text="nieuw" may not be visible. >>> Thanks in advance, >>> Wim Goffin hope this help. -- nirinA -- http://mail.python.org/mailman/listinfo/python-list