Re: [python-win32] Problem with msvcr90.dll

2011-01-31 Thread Mark Hammond
This stuff is painful and poorly documented. Is it possible the code which triggers the failing import is on a different thread than the one which loaded Python? If so, I suspect the magic done by Python in dl_nt.c may not be kicking in, which is supposed to ensure all python modules are load

Re: [python-win32] Problem with win32com and scikits timeseries

2011-01-31 Thread Mark Hammond
As a work-around, try doing the problematic import in the top-level of the module rather than in a method. HTH, Mark On 29/01/2011 3:15 AM, Mauro wrote: I tried to dig a little further in this, but with no success. I can import the module with no problem and I can't replicate the error outsid

[python-win32] AtributeError with long opening Excel files

2011-01-31 Thread Jacek Jablonski
Hi, I have got a problem with code that opens my Excel workbook and try to perform some operations: self.app = Dispatch('Excel.Application') self.app.Workbooks.Open('someexcel.xls') print(self.app.ActiveWorkbook.Sheets('test').Range('D4')) I receive AttributeError, but I know what caused it. My wo

Re: [python-win32] error importing win32com for Dispatch

2011-01-31 Thread Vernon Cole
Don't use the ZIP file. It is a pain to install, and (as you see) sometimes does not install correctly. Unfortunately, sourceforge sets it as the default thing to do. What you want to do is push the "view all files" button and select the la

Re: [python-win32] error importing win32com for Dispatch

2011-01-31 Thread Tim Roberts
Amelie Lesser wrote: > > I am struggling very hard with using the win32com.client to use > Dispatch. I've been looking around quite a lot, but couldn't find any > help that solved my problem. I only started working with python 2 > months ago, so I am still quite the newbie. > ... > I downloaded t

[python-win32] error importing win32com for Dispatch

2011-01-31 Thread Amelie Lesser
Hello Group, I am struggling very hard with using the win32com.client to use Dispatch. I've been looking around quite a lot, but couldn't find any help that solved my problem. I only started working with python 2 months ago, so I am still quite the newbie. I'm working on a python script that is s

Re: [python-win32] attaching an event handler to alreadycreated object

2011-01-31 Thread Roger Upole
Many OCX controls require a full activex container to function correctly. Pythonwin can act as a host, or you could embed your control in IE with an tag and access it thru IE's COM interfaces. Roger "Patricio Stegmann" wrote in message news:snt128-w10372245b8a4d462238f49d9...@phx.gb

[python-win32] Problem with msvcr90.dll

2011-01-31 Thread Tefnet Developers
Hi, I am developing a msgina replacement. I am at the point where I have the whole Gina API handled in python (a dll written in C, calling methods of a python object). My problem is that somehow my program cannot import pywin32 modules: Jan 31 12:12:41 p11 pygina: callproxy.caller: File "c

Re: [python-win32] attaching an event handler to alreadycreated object

2011-01-31 Thread Patricio Stegmann
Roger, Thanks for your tip ! I tried that but it's still not reporting the events. Maybe this activex does rely or force one to have a gui. Do you know a workaround for this kind of cases ? Is there a way to print if this is the case ? Or to see what is going on ? Thank you, > To: python-win3