Re: [python-win32] problem After compiling with py2exe on a com class

2012-07-17 Thread Matteo Boscolo
Il 17/07/2012 03:19, Mark Hammond ha scritto: On 17/07/2012 8:37 AM, Matteo Boscolo wrote: Hi all, I got a com server that is crated inside a cad application. if i run the following code(That is a method of my com class): def showWindows(self): show a qt windows with a

[python-win32] new Pywin32 errors stating 'object has no attribute' - and the code worked previously

2012-07-17 Thread Kurt Munson
I have been using pywin32 successfully for years to control Excel. Now, suddenly I get errors executing the same code that has run previously. My python code controls Excel like this: import win32com.client xl = win32com.client.DispatchEx(Excel.Application) xl.DisplayAlerts = 0 xl.visible = 0

Re: [python-win32] new Pywin32 errors stating 'object has no attribute' - and the code worked previously

2012-07-17 Thread Tim Golden
On 17/07/2012 14:51, Kurt Munson wrote: I have been using pywin32 successfully for years to control Excel. Now, suddenly I get errors executing the same code that has run previously. [...] The last line(‘xl.visible = 0’) now causes an error: [...] This error goes away if I use xl.Visible

Re: [python-win32] new Pywin32 errors stating 'object has no attribute' - and the code worked previously

2012-07-17 Thread Tim Golden
[cc-ing the list back in so you get the benefit of more and greater intelligences...] On 17/07/2012 15:20, Kurt Munson wrote: I don't get it: I haven't made any changes to that Dispatch call in months! My code worked for months with the existing Dispatch method, up through yesterday

Re: [python-win32] new Pywin32 errors stating 'object has no attribute' - and the code worked previously

2012-07-17 Thread Kurt Munson
Dunno exactly what you mean by what's your Dispatch code look like. If you mean what am I doing with Excel via Python, it's like this: it creates an Excel spreadsheet, adds a bunch of content, formats cells, etc. All of this worked beautifully until this morning. Here is a little bit of the

Re: [python-win32] new Pywin32 errors stating 'object has no attribute' - and the code worked previously

2012-07-17 Thread Tim Golden
On 17/07/2012 16:05, Kurt Munson wrote: Dunno exactly what you mean by what's your Dispatch code look like. Well pretty much what you posted, in fact :) Incidentally, I tried changing the dispatch line to use dynamic dispatch using this code: code xl =

Re: [python-win32] new Pywin32 errors stating 'object has no attribute' - and the code worked previously

2012-07-17 Thread Graham Bloice
-Original Message- Subject: Re: [python-win32] new Pywin32 errors stating 'object has no attribute' - and the code worked previously On 17/07/2012 16:05, Kurt Munson wrote: Dunno exactly what you mean by what's your Dispatch code look like. Well pretty much what you posted, in

Re: [python-win32] new Pywin32 errors stating 'object has no attribute' - and the code worked previously

2012-07-17 Thread Kurt Munson
There almost nothing in C:\Python26\Lib\site-packages\win32com\gen_py. In a subfolder \00020813---C000-0046x0x1x7, I have 30 .py and .pyc, all generated in the last day. Are you saying that they should be removed? -Kurt -Original Message- From:

Re: [python-win32] new Pywin32 errors stating 'object has no attribute' - and the code worked previously

2012-07-17 Thread Kurt Munson
Graham, Thanks for the suggestion - deleting the \win32com\gen_py .py and .pyc files solved the problem! It appears that my dispatch (whether static or dynamic) was using old generated py instead of regenerating. Why would this be? Either way, deleting the folder under \win32com\gen_py

Re: [python-win32] new Pywin32 errors stating 'object has no attribute' - and the code worked previously

2012-07-17 Thread Graham Bloice
-Original Message- From: python-win32-bounces+graham.bloice=trihedral@python.org [mailto:python-win32-bounces+graham.bloice=trihedral@python.org] On Behalf Of Kurt Munson Sent: 17 July 2012 17:08 To: python-win32@python.org Subject: Re: [python-win32] new Pywin32 errors

Re: [python-win32] new Pywin32 errors stating 'object has no attribute' - and the code worked previously

2012-07-17 Thread Tim Roberts
Kurt Munson wrote: Thanks for the suggestion - deleting the \win32com\gen_py .py and .pyc files solved the problem! No, not really. What you did was HIDE the problem. The PROBLEM is that you are simply using the wrong name for that property. The property name is Visible with a capital V,

Re: [python-win32] new Pywin32 errors stating 'object has no attribute' - and the code worked previously

2012-07-17 Thread Kurt Munson
Point taken, while trying to avoid a discussion on the validity of case sensitivity. 8) -Kurt -Original Message- From: python-win32-bounces+kurt.munson=hbmncode@python.org [mailto:python-win32-bounces+kurt.munson=hbmncode@python.org] On Behalf Of Tim Roberts Sent: Tuesday,

[python-win32] py2exe issues with script using selenium

2012-07-17 Thread Ferdinand Sousa
Hi List, My environment: Win 7 Professional 64-bit, Python 2.7 64-bit and appropriate 64-bit libraries installed over that. I downloaded the 64-bit py2exe package. Though I did not specifically download the Distutils package, I guess I have it from having installed 3rd party Python libraries.

Re: [python-win32] Does pywin32 support SD card operation(IOCTL_SFFDISK_QUERY_DEVICE_PROTOCOL)?

2012-07-17 Thread Jane Chen
Thank you for your help. However, I still got pywintypes.error: (50, DeviceIoControl, The request is not supported).   I added the following codes to winioctlcon.py. IOCTL_SFFDISK_QUERY_DEVICE_PROTOCOL = CTL_CODE( FILE_DEVICE_DISK, 0x7a0, METHOD_BUFFERED, FILE_ANY_ACCESS)

Re: [python-win32] Does pywin32 support SD card operation(IOCTL_SFFDISK_QUERY_DEVICE_PROTOCOL)?

2012-07-17 Thread Tim Roberts
Jane Chen wrote: Thank you for your help. However, I still got pywintypes.error: (50, DeviceIoControl, The request is not supported). I added the following codes to winioctlcon.py http://winioctlcon.py/. You should not probably modify the standard library files, because you'll lose the