Re: [python-win32] py2exe issues with script using selenium

2012-07-17 Thread Mark Hammond
The problem is a "conflict" between the firefox_profile module and py2exe. firefox_profile is attempting to open 'C:\\Users\\ferdinand\\Desktop\\Landmark_Ops\\dist\\library.zip\\selenium\\webdriver\\firefox\\webdriver.xpi' as a regular file (a .xpi file is a .zip file, hence the fact zipfile i

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 . You should not probably modify the standard library files, because you'll lo

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) GUID_SFF_PROTOCO

[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. I'm

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, Jul

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 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 error

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 solved

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: Kurt Munson [mailto:kurt.mun...@hbmncode.com] > Sent: 17 July 2012 16:46 > To: Graham Bloice; python-win32@python.org > Subject: RE: [python-win32] new Pywin32 errors stating 'object has no > attribute' - and the code worked previously > > There almost nothing i

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: python-win32-bounces+kur

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 post

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: > > xl = win32com.client.dynamic.Dispatch(

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
[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 af

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.Visib

[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 =