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
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
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
[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
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
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 =
-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
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:
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
-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
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,
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,
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.
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)
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
15 matches
Mail list logo