[python-win32] memory leak in extension

2020-09-15 Thread Robin Becker
he allocated python objects show growth in the Gb range. -- Robin Becker ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] pure python way to open a file with write deny for others

2020-03-09 Thread Robin Becker
On 06/03/2020 22:04, Eryk Sun wrote: On 3/6/20, Robin Becker wrote: OK I want to read the (small) file completely. The other process may try to re-write the file while I am reading it. I thought the other process already had the file open for writing, but apparently you just want to deny

Re: [python-win32] pure python way to open a file with write deny for others

2020-03-09 Thread Robin Becker
ir read. thanks, but I have no control over (and little knowledge about) the other process; the intention is to poll an output folder for say *.txt files and post these to a web server for processing. Readers don't block other readers, while writers block both writers and readers. .

Re: [python-win32] pure python way to open a file with write deny for others

2020-03-06 Thread Robin Becker
On 05/03/2020 16:04, Eryk Sun wrote: On 3/5/20, Robin Becker wrote: I want to be able to read a windows file which is being periodically written by another process. I'm having difficulty reconciling this sentence with the subject line. OK I want to read the (small) file completely

Re: [python-win32] pure python way to open a file with write deny for others

2020-03-05 Thread Robin Becker
On 05/03/2020 14:19, paul.kon...@dell.com wrote: On Mar 5, 2020, at 5:42 AM, Robin Becker wrote: [EXTERNAL EMAIL] I want to be able to read a windows file which is being periodically written by another process. I created a small extension ... that seems to work, but I wonder if there&#

[python-win32] pure python way to open a file with write deny for others

2020-03-05 Thread Robin Becker
OR_EXIT(); } that seems to work, but I wonder if there's an easier pure python way to do this. Looking at the docs I see O_EXCL, but the _SH_DENY flags seem to be absent. -- Robin Becker ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] LNK4197 error building c++ extension

2018-08-21 Thread Robin Becker
g25 _aggstate.lib _aggstate.pyd.manifest digging a bit deeper I find taht the problem comes from the exp file and the linker /EXPORT. It seems that the /EXPORT:init_aggstate can be suppressed for this build and the warning disappears, but something (I a

[python-win32] LNK4197 error building c++ extension

2018-08-17 Thread Robin Becker
state.lib and object build\temp.win-amd64-2.7\Release\_aggstate .exp *PS this also occurs when compiling with 3.7, but there the initializer function is PyInit__aggstate -- Robin Becker ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] sys.path for windows multiple pythons

2017-03-22 Thread Robin Becker
On 22/03/2017 15:27, Zachary Ware wrote: On Wed, Mar 22, 2017 at 10:14 AM, David Rock wrote: On Mar 22, 2017, at 09:48, Robin Becker wrote: do I get extra stuff from c:\Python27 because those folders are in my execution PATH variable; Yes; that’s how Windows works. No; that's no

[python-win32] sys.path for windows multiple pythons

2017-03-22 Thread Robin Becker
#x27;\n'.join(sys.path))" C:\Python27 C:\Python27\Scripts c:\Python36\python36.zip c:\Python36\DLLs c:\Python36\lib c:\Python36 c:\Python36\lib\site-packages do I get extra stuff from c:\Python27 because those folders are in my execution PATH variable; seems a bit dodgy to have those fold

Re: [python-win32] dbi.interalError

2016-05-05 Thread Robin Becker
s that connections to SQL Server might be obtained in Python. In > general, it would seem that the version of Python may have changed. The > bit-width of the SQL Server server should not affect a data client. > > > On Thu, May 5, 2016 at 3:18 AM, Robin Becker wrote: >> >> A cl

[python-win32] dbi.interalError

2016-05-05 Thread Robin Becker
python software is running on 32/64 bit python. -- Robin Becker ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

[python-win32] remote database changed causing odbc error

2015-09-02 Thread Robin Becker
problem is here? -- Robin Becker ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] running a service within a virtual environment

2014-01-30 Thread Robin Becker
On 29/01/2014 12:56, Robin Becker wrote: ... 1) The application is currently set up as a virtual environment, but it was created as using enthought python. It has pywin32 installed, but running pythonservice.exe gives an error "cannot import module site" My questions are: sho

[python-win32] running a service within a virtual environment

2014-01-29 Thread Robin Becker
win32 installed, but running pythonservice.exe gives an error "cannot import module site" My questions are: should I dump enthought and install python and all the dependenxies normally? Also is it possible/practical to get a service to run inside a python virtual environment?

Re: [python-win32] odbc exceptions

2010-12-01 Thread Robin Becker
ou tried to create a connection. Earlier you were getting "TypeError: exceptions must be classes or instances, not str". Try putting a valid connection string in your test. thanks, Preston .. you're absolutely right, I must have been snow blind. The exception's no longer a s

Re: [python-win32] odbc exceptions

2010-12-01 Thread Robin Becker
win32\odbc.pyd -rw-rw-rw- 1 user group 28160 Jul 5 2009 C:\Python26\lib\site-packages\win32\odbc.pyd C:\code\rlextra\graphics\guiedit> can you tell me what the timestamp of your odbc.pyd is to finally eliminate that as the source of the problem? -- Robin Becker __

[python-win32] odbc exceptions

2010-11-30 Thread Robin Becker
ad.py C:\Python26\lib\site-packages\win32\odbc.pyd Traceback (most recent call last): File "C:\code\rlextra\examples\graphics\toad.py", line 6, in raise TypeError: exceptions must be classes or instances, not str C:\code\rlextra\examples\graphics> so I guess odbc must be rai

Re: [python-win32] odbc version

2009-12-30 Thread Robin Becker
during the import. I cannot give an authoritative answer for odbc (sorry). -- Vernon On Tue, Dec 29, 2009 at 6:44 AM, Robin Becker wrote: I'm trying to use the odbc extension in a cross-python version. The problem is that recent pythons/win32 versions have changed the odbc dbi interface.

[python-win32] odbc version

2009-12-29 Thread Robin Becker
n the modern context just importing dbi causes a warning so I would prefer to avoid testing the result of dbi.dbiDate(..) etc etc -- Robin Becker ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Looking for python-win32 version of EasyGUI

2009-02-07 Thread Robin Becker
://ginstrom.com/scribbles/2008/02/26/python-gui-programming-platforms-for-windows/#Win32 -- Robin Becker ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] dbi.dbDate

2007-02-20 Thread Robin Becker
be able to detect that the date is out of range and raise some kind of ValueError or something. I guess an alternative would be to abandon compatibility with python's time module and switch to datetime for the dbDate construction. -- Robin Becker

Re: [python-win32] isapi + IIS 6

2006-09-12 Thread Robin Becker
work without extra complication, but an extension needs an extra step ie entering and enabling in the WSE list. -- Robin Becker ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] isapi + IIS 6

2006-09-11 Thread Robin Becker
David Primmer wrote: > Robin Becker wrote: >> Robin Becker wrote: >>> I thought I'd check here in case anyone has already connected django to IIS. >> despite this it seems that the application produces a page. However, no >> matter >> what I try I canno

[python-win32] isapi + IIS 6

2006-09-11 Thread Robin Becker
Robin Becker wrote: > I thought I'd check here in case anyone has already connected django to IIS. > > Well I thought I'd give the isapi module a twirl as it seemed it would be easy, but with IIS 6 running on a virtual Win Server 2003 Web edition I fell at the first

[python-win32] isapi + django

2006-09-08 Thread Robin Becker
ates the dll etc etc? -- Robin Becker ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] starnge error at startup

2006-07-20 Thread Robin Becker
ne 24, in GetIDLEModule __import__(modname) File "C:\Python\Lib\site-packages\pythonwin\pywin\idle\AutoIndent.py", line 503, in ? import tokenize File "C:\Python\lib\tokenize.py", line 38, in ? COMMENT = N_TOKENS exceptions.NameError: name 'N_TOKENS&#x

[python-win32] pythonwin 204 editor crash

2006-05-03 Thread Robin Becker
thonwin\pywin\idle\AutoIndent.py", line 546, in run _tokenize.tokenize(self.readline, self.tokeneater) File "c:\python\lib\tokenize.py", line 153, in tokenize tokenize_loop(readline, tokeneater) File "c:\python\lib\tokenize.py", line 159, in tokenize_loop for token_info in generate_tokens(readline): File "c:\python\lib\tokenize.py", line 229, in generate_tokens raise IndentationError( IndentationError: unindent does not match any outer indentation level win32ui: OnInitialUpdate() virtual handler (>) raised an exception -- Robin Becker ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] Pythonwin problem

2005-10-08 Thread Robin Becker
32 bit (Intel)] on win32. Portions Copyright 1994-2004 Mark Hammond ([EMAIL PROTECTED]) - see 'Help/About PythonWin' for further copyright information. >>> -- Robin Becker ___ Python-win32 mailing list Python-win32@python.org htt

[python-win32] dynamic Word strangeness

2005-04-22 Thread Robin Becker
ocuments.Add() wrange=doc.Range() for i in xrange(10): wrange.InsertAfter("Hello from Python %d\n" % i) paras = doc.Paragraphs for i in xrange(len(paras)): p = paras[i]() p.Font.ColorIndex = i+1 p.Font.Size = 12 + (4 * i)

[python-win32] system toolbar icons

2005-03-17 Thread Robin Becker
illed by killing the toplevel window). This is build 203 Python 2.4 -- Robin Becker ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] MFC71.dll

2005-02-05 Thread Robin Becker
.exe. -- Robin Becker ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32