python-ldap/win32 or python/ldap/win32

2006-11-06 Thread rcmn
i'm running around in circle trying to to use python/ldap/ on win32(WinXP). I want to write a script that read SQL data(no pbm) and insert member in a AD group(pbm).I used the module Active_Directory(very easy to use).but it read only AD. So i have been try to install python-ldap on a win32/python2

Py2exe issue

2009-01-02 Thread rcmn
I'm using 2.6 (the issue was the same with 2.5) script.py: [code]import re from optparse import OptionParser parser = OptionParser() parser.add_option("-f", "--file", action="store", type="string", dest="filename") parser.add_option("-o", "--output", action="store", type="string", dest="fileout"

Re: Py2exe issue

2009-01-02 Thread rcmn
I'm using py2exe-0.6.9.win32-py2.6.exe i used option 3. On a list of 500 i get the same error than previous. On a list of 250 once it just quit leaving the open file at 0k and on the second attempt it failed with the same error and a note about "TypeError: 'NoneType' object is not callable". Basic

Re: Py2exe issue

2009-01-02 Thread rcmn
I just tried to compile with gui2exe. And i ran the exe. it faile the same way but at least generate a log. Exception in thread Thread-1: Traceback (most recent call last): File "threading.pyc", line 522, in __bootstrap_inner File "pingable.py", line 35, in run File "subprocess.pyc", line 588

Re: Py2exe issue

2009-01-02 Thread rcmn
On Jan 2, 3:08 pm, rcmn wrote: > I just tried to compile with gui2exe. And i ran the exe. it faile the > same way but at least generate a log. > Exception in thread Thread-1: > Traceback (most recent call last): >   File "threading.pyc", line 522, in __bootstrap_inner >

parse/slice/...

2009-01-06 Thread rcmn
I'm not sure how to call it sorry for the subject description. Here what i'm trying to accomplish. the script i'm working on, take a submitted list (for line in file) and generate thread for it. unfortunately winxp has a limit of 500 thread . So I have to parse/slice the file by chunk of 500 and