Re: win32com pythonwin extensions part of stdlib?

2010-12-07 Thread harijay
Thanks Tim for your reply. I did get that build . Also thanks for the examples. Looking forward to using the module Hari On Dec 7, 3:22 pm, Tim Golden wrote: > You want something from here: > >    http://sourceforge.net/projects/pywin32/files/pywin32/Build%20214/ > > Which one you need will depe

Re: win32com pythonwin extensions part of stdlib?

2010-12-07 Thread harijay
Thanks Ian for your reply. I downloaded the zip file linked by the "Download Binaries/View All files link" . All that gave me was a zip file which unpacked to the source and documentation implying I had to use distutils. If instead I looked at the Build 214 link on sourceforge which corresponds to

Re: win32com pythonwin extensions part of stdlib?

2010-12-07 Thread Tim Golden
You want something from here: http://sourceforge.net/projects/pywin32/files/pywin32/Build%20214/ Which one you need will depend on your architecture and the version of Python you're running TJG -- http://mail.python.org/mailman/listinfo/python-list

Re: win32com pythonwin extensions part of stdlib?

2010-12-07 Thread harijay
Using the "binary" offered on sourceforge and calling "python setup.py install" Has the install asking for "vcsvarsall.bat" . So this does not seem to be a binary build On Dec 7, 1:27 pm, Ian wrote: > On Dec 7, 11:02 am, harijay wrote: > > > > > > > > > > > Hi I am using Python 2.6.5 on Windo

Re: win32com pythonwin extensions part of stdlib?

2010-12-07 Thread Ian
On Dec 7, 11:02 am, harijay wrote: > Hi I am using Python 2.6.5 on Windows. > > I wanted to start using the win32com extensions which I understand are > "essentially part of the stdlib" ( quoted > inhttp://tgolden.sc.sabren.com/python/win32_how_do_i.html) > Since I didnt have the extensions as st

Re: win32com pythonwin extensions part of stdlib?

2010-12-07 Thread Godson Gera
Not sure what you are trying to do but you can get a standalone binaries from http://sourceforge.net/projects/pywin32/ which gets installed without any issues. If for some reason you are still having issues, you can try ActiveState Python which come bundled with pywin32 packages. On Tue, Dec 7, 2

Re: win32com sql update problem

2010-05-12 Thread Tim Roberts
Mark Carter wrote: > >Consider the following snippet of code: > >import win32com.client > >DSN = 'PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=M:\\Finance\\camel\ >\camel.mdb;' >conn.Open(DSN) >cursor = conn.Execute("UPDATE tblInvoice SET InvComments='Python' >WHERE InvBillingPeriod = 'April 2010'

Re: win32com

2010-05-10 Thread mohamed issolah
hey, I need help . 2010/5/9 mohamed issolah > hey, > I wich to have an example please > > need help > > > > 2010/5/9 Chris Rebert > > On Sun, May 9, 2010 at 1:15 AM, mohamed issolah >> wrote: >> > hey, >> > >> > there is an alternative of win32com in linux? >> > >> > what i want to say : can

Re: win32com

2010-05-09 Thread mohamed issolah
hey, I wich to have an example please need help 2010/5/9 Chris Rebert > On Sun, May 9, 2010 at 1:15 AM, mohamed issolah > wrote: > > hey, > > > > there is an alternative of win32com in linux? > > > > what i want to say : can communicate with application (ex: evolution or > > another) through

Re: win32com

2010-05-09 Thread Chris Rebert
On Sun, May 9, 2010 at 1:15 AM, mohamed issolah wrote: > hey, > > there is an alternative of win32com in linux? > > what i want to say : can communicate with application (ex: evolution or > another) throught python like in windows with win32com The closest equivalent would probably be python-dbus

Re: win32com python AttributeError!

2009-03-31 Thread Mark Hammond
My guess is that you have a hidden instance of excel running (ie, without a window). Check the task manager for instances of excel.exe and kill them. Cheers, Mark On 31/03/2009 3:17 PM, Michael wrote: Hi Python-list - Has anyone figured this out from Rebecca: Hi, I am having trouble with

Re: win32com python AttributeError!

2009-03-31 Thread Mike Driscoll
On Mar 30, 11:17 pm, Michael wrote: > Hi Python-list - > > Has anyone figured this out from Rebecca: > > Hi, I am having trouble with win32com for python.  I get the following > error when I try to issue any command after using Dispatch. > > >>> xl=win32com.client.Dispatch("Excel.Application") > >

Re: win32com and DispatchWithEvents

2008-11-14 Thread RyanN
On Nov 13, 2:16 pm, Mike Driscoll <[EMAIL PROTECTED]> wrote: > On Nov 13, 10:27 am, RyanN <[EMAIL PROTECTED]> wrote: > > > > > Greetings, > > > I'm trying to get DispatchWithEvents() to work with HyperAccess > > (terminal program) without much success. I've done a bunch of > > searching and found s

Re: win32com and DispatchWithEvents

2008-11-13 Thread Mike Driscoll
On Nov 13, 10:27 am, RyanN <[EMAIL PROTECTED]> wrote: > Greetings, > > I'm trying to get DispatchWithEvents() to work with HyperAccess > (terminal program) without much success. I've done a bunch of > searching and found some examples using IE: > > This works but doesn't handle the "Event Driven Fu

Re: win32com ChartObject pythonwin vs idle

2008-08-01 Thread sterling
On Jul 31, 11:22 pm, "Roger Upole" <[EMAIL PROTECTED]> wrote: > "sterling" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > > > > > I'm curious as to why the difference between IDLE and pythonWin when > > using win32com. > > opening an excel file, i've attempted to grab the cha

Re: win32com ChartObject pythonwin vs idle

2008-07-31 Thread Roger Upole
"sterling" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm curious as to why the difference between IDLE and pythonWin when > using win32com. > opening an excel file, i've attempted to grab the chart information > out of the file. > > commands like co = ChartObjects(1) works in

Re: win32com ChartObject pythonwin vs idle

2008-07-31 Thread sterling
On Jul 31, 4:28 am, Tim Golden <[EMAIL PROTECTED]> wrote: > sterling wrote: > > I'm curious as to why the difference between IDLE and pythonWin when > > using win32com. > > opening an excel file, i've attempted to grab the chart information > > out of the file. > > > commands like co = ChartObjects

Re: win32com ChartObject pythonwin vs idle

2008-07-31 Thread Tim Golden
sterling wrote: I'm curious as to why the difference between IDLE and pythonWin when using win32com. opening an excel file, i've attempted to grab the chart information out of the file. commands like co = ChartObjects(1) works in pythonWin but doesn't work in IDLE. however, on both co = charto

Re: win32com extension documentation/API

2008-07-07 Thread Mike Driscoll
On Jul 7, 10:26 am, korean_dave <[EMAIL PROTECTED]> wrote: > Hi. Where can i find the API for this extension? > > Sourceforge only has downloads. Python has stopped supporting the > upkeep of the versions. > > Thanks. I usually use ActiveState's docs: http://aspn.activestate.com/ASPN/docs/ActiveP

Re: Win32com and Excel

2008-01-10 Thread John Machin
On Jan 10, 8:21 pm, Mike P <[EMAIL PROTECTED]> wrote: > Hi, > > I currently have an excel table (1 table each time) that has differing > number of rows and differing number of columns each time, for another > program i use (SPSS) to import the data i need to know the cell range > of this data table

RE: Win32com and Excel

2008-01-10 Thread Ryan Ginstrom
> On Behalf Of Mike P > Does anyone have any code that does something similar? My > guess is i have to do something like thefollowing to enable > python to read xl? I think that what you want is UsedRange for row in sheet.UsedRange.Value: ... Regards, Ryan Ginstrom -- http://mail.python.

Re: win32com COMAdminCatalogObject Value method

2007-10-04 Thread rc
On Oct 2, 11:11 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Tue, 02 Oct 2007 12:12:09 -0300, rc <[EMAIL PROTECTED]> escribi?: > > >> Try objCOMAdminCatalogObject.SetValue("ID", AppID). > > When I try that I get exception: > > AttributeError: Add.SetValue > > I think you would get more h

Re: win32com COMAdminCatalogObject Value method

2007-10-02 Thread Gabriel Genellina
En Tue, 02 Oct 2007 12:12:09 -0300, rc <[EMAIL PROTECTED]> escribi�: >> Try objCOMAdminCatalogObject.SetValue("ID", AppID). > When I try that I get exception: > AttributeError: Add.SetValue I think you would get more help asking in [EMAIL PROTECTED] -- Gabriel Genellina -- http://mail.python.

Re: win32com COMAdminCatalogObject Value method

2007-10-02 Thread rc
> Try objCOMAdminCatalogObject.SetValue("ID", AppID). > > Roger- Hide quoted text - > > - Show quoted text - When I try that I get exception: AttributeError: Add.SetValue I think the only valid methods are: Key(), Name(), Valid() and Value() The thing I'm most confused about is that it

Re: win32com COMAdminCatalogObject Value method

2007-10-01 Thread Roger Upole
rc wrote: > I'm trying to convert VB code that registers COM+ components to > Python. However, I'm unable to set values on COMAdminCatalogObject > using the Value() method, it seems to think I'm trying to call the get > method. > > VB Code: > Dim cat As COMAdminCatalog > Set cat = New COMAdminCata

RE: win32com problem: more than one instance

2007-08-31 Thread Stefan Schukat
instances running in any COM client. Stefan > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Tim Golden > Sent: Friday, August 31, 2007 1:36 PM > To: Thomas Rademacher > Cc: python-list@python.org > Subject: Re: win

Re: win32com problem: more than one instance

2007-08-31 Thread Tim Golden
Thomas Rademacher wrote: > Hello, > > I start my script convert.py simultaneously in any dos-shells several > times. But I get every time the same solidworks instance. > I see in the proccess (task) manager only one solidworks.exe > Therefore I get for all simultaneous conversions the same output

Re: win32com ppt embedded object numbers reverting back to original numbers - SOLVED

2007-07-25 Thread Lance Hoffmeyer
Hey all, I solved this problem. Here is the final version of this def for anyone who someday may be interested: def attributesbyID(row,base,slideID,spreadsheet): sh = wb.Worksheets (spreadsheet) sh.Select() LIST = xlparams(row, base) POWERPOINT SE

Re: win32com ppt embedded object numbers reverting back to original numbers

2007-07-20 Thread kyosohma
On Jul 19, 4:33 pm, Lance Hoffmeyer <[EMAIL PROTECTED]> wrote: > Hey all, > > I have a script that takes numbers from XL and inserts them into an embedded > MSGRAPH dataset in PPT. The problem is that when I reopen the modified > document > that has been saved as a new filename and activate the e

Re: win32com ppt embedded object - SOLVED

2007-07-11 Thread Lance Hoffmeyer
Basically, if I ran (after discovering what the object name I was trying to modify in the ppt slide was): if WB.Slides(29).Shapes("Object 2").Type==7: PWB = WB.Slides(29).Shapes("Object 2") #Select the Graph Object oGraph = PWB.OLEFormat.Object

RE: win32com ppt embedded object

2007-07-10 Thread Ryan Ginstrom
> On Behalf Of Lance Hoffmeyer > for Z in WB.Slides(29).Shapes: > if (Z.Type== 7): > ZZ=Z.OLEFormat.Object > WSHEET = ZZ.Worksheets(1) > WSHEET.Range("A1").Value = .50 > WSHEET.Range("A1").NumberFormat="0%" I think you need to call Acti

Re: win32com ppt embedded object

2007-07-10 Thread fynali
On Jul 10, 8:40 pm, Lance Hoffmeyer <[EMAIL PROTECTED]> wrote: > Hey all, > > I am trying to create some python code to edit embedded ppt slides and need > some help. > > import win32com.client > from win32com.client import constants > import re > import codecs,win32com.client > import time > impo

Re: Win32com, and Excel issues.

2007-04-18 Thread kyosohma
On Apr 18, 1:58 pm, Ant <[EMAIL PROTECTED]> wrote: > Hi Mike, > > > I can't find anything about copying a worksheet, but I found a some > > fairly detailed information about COM objects and getting more > > information about Python's bindings to them > > here:http://www.oreilly.com/catalog/pythonw

Re: Win32com, and Excel issues.

2007-04-18 Thread Ant
Hi Mike, > I can't find anything about copying a worksheet, but I found a some > fairly detailed information about COM objects and getting more > information about Python's bindings to them > here:http://www.oreilly.com/catalog/pythonwin32/chapter/ch12.htmlor > here:http://mathieu.fenniak.net/pl

Re: Win32com, and Excel issues.

2007-04-18 Thread kyosohma
On Apr 18, 2:38 am, Ant <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm doing some Excel automation work for a friend, and am developing > on a machine running Office 2000. My friends machine is running Excel > 2003. The code I've written works like a charm on my machine (in fact > all three of my mac

Re: win32com/python different behavour.

2006-11-10 Thread Roger Upole
bli wrote: >I have been developing an application driving a device through COM. I > used win32com (brilliant ) > and was at a fairly advanced stage being able to access the functions > of the device and access/ retrieve its data. > A week or two ago I did some overdue upgrading to all the component

Re: win32com problem - Problem Solved

2006-10-25 Thread cfriedalek
Problem solved. Turns out it was a problem of mistranslating VBS code to Python. The PYTHON line "print str(tet)" casts tet to a string and prints. This is what I thought the VBS line "Str = Tet.ConvertToString()" was doing. But of course "ConvertToString()" is a method of a Tet instance. So in p

Re: win32com problem

2006-10-25 Thread cfriedalek
Gabriel Genellina wrote: > Run it on the debugger step by step, and inspect all the intermediate objects. > Synergy.StudyDoc might be a function, by example, so you should add > another pair of (). > This is not obvious looking at the VB code. (Sorry, tied up this arvo so I could respond to your

Re: win32com problem

2006-10-24 Thread Gabriel Genellina
At Tuesday 24/10/2006 23:20, [EMAIL PROTECTED] wrote: > tet = Synergy.StudyDoc.GetFirstTet(), perhaps? com_error: (-2147352573, 'Member not found.', None, None) Sorry, should have mentioned that I tried that already. Any thoughts on how to establish if the problem is with win32com or the 3rd p

Re: win32com problem

2006-10-24 Thread Aries Sun
Have you tried late binding? Does late binding produce the same error? Regards, Aries [EMAIL PROTECTED] wrote: > I'm interacting with a third party application using python and com. > However having problems and don't know what to look at next to resolve > the issue. > > The app. can be driven b

Re: win32com problem

2006-10-24 Thread Gabriel Genellina
At Tuesday 24/10/2006 22:15, [EMAIL PROTECTED] wrote: Set Tet = Synergy.StudyDoc.GetFirstTet() tet = Synergy.StudyDoc.GetFirstTet Can you see the difference...? -- Gabriel Genellina Softlab SRL __ Correo Yahoo! Espacio para todos tus mensaje

Re: win32com problem

2006-10-24 Thread cfriedalek
> tet = Synergy.StudyDoc.GetFirstTet(), perhaps? com_error: (-2147352573, 'Member not found.', None, None) Sorry, should have mentioned that I tried that already. Any thoughts on how to establish if the problem is with win32com or the 3rd party app? -- http://mail.python.org/mailman/listinfo/py

Re: win32com problem

2006-10-24 Thread Steve Holden
[EMAIL PROTECTED] wrote: > I'm interacting with a third party application using python and com. > However having problems and don't know what to look at next to resolve > the issue. > > The app. can be driven by VBS. The following VBS code works: > > Set Synergy = CreateObject("synergy.Synergy")

Re: win32com InvokeTypes is None

2006-09-18 Thread Gabriel Genellina
At Monday 18/9/2006 12:32, SS Hares wrote: I'm encountering an issue where the InvokeTypes method is returning None and I'm unable to Dispatch a particular COM object from I think you will get better responses if you post on http://mail.python.org/mailman/listinfo/python-win32 Gabriel Gen

Re: win32com and name of com

2006-06-25 Thread bli
Roger Upole wrote: > "bli" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > > (All authors are fairly sparse on the topic using Microsoft examples > > that are more self evident.) > > thanks muchly! > > > > Your best bet is the documentation for the application. > However, if the d

Re: win32com and name of com

2006-06-22 Thread Roger Upole
"bli" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > hi all > first post. > I am using python to connect to dll. I have read everything I can find > on [EMAIL PROTECTED] > and tried all variations of the name of the dll to use in the Dispatch. > I get a com error-(-2147...1005, 'Inv

Re: win32com: how to connect to a specific instance of a runningobject?

2006-06-02 Thread Terry Reedy
"ago" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > solved, if it can be useful to others here is my code: > > import pythoncom > import win32com.client > > def getWorkbook(workbookName): > lenstr = len(workbookName) > workbook = None > rot = pythoncom.GetRunningObjectTable() > ro

Re: win32com: how to connect to a specific instance of a running object?

2006-06-02 Thread ago
solved, if it can be useful to others here is my code: import pythoncom import win32com.client def getWorkbook(workbookName): lenstr = len(workbookName) workbook = None rot = pythoncom.GetRunningObjectTable() rotenum = rot.EnumRunning() while True:

Re: win32com: how to connect to a specific instance of a running object?

2006-06-02 Thread ago
The other approach I tried (as suggested by Tim, thanks) involves browsing the ROT. import pythoncom SPREADSHEET_NAME = r'\MySpreadsheet.xls' lenstr = len(SPREADSHEET_NAME) obj = None rot = pythoncom.GetRunningObjectTable() rotenum = rot.EnumRunning() while True: monikers = rotenum.Next()

Re: win32com: how to connect to a specific instance of a running object?

2006-06-02 Thread ago
Thanks, after some further digging I hit something... The following seems to do the trick: import win32gui WINDOW_CLASS = 'XLMAIN' WINDOW_TITLE = 'Microsoft Excel - MySpreadsheet.xls' hwindow = win32gui.FindWindow(WINDOW_CLASS,WINDOW_TITLE) Now the next question is: how do I use the window-handle

RE: win32com: how to connect to a specific instance of a running object?

2006-06-02 Thread Tim Golden
[ago] | Is it possible to use win32com.client to connect to a | specific instance | of a running application? In particular I am interested in finding the | instance of excel which has a particular spreadsheet opened | considering | that there might be more instances of excel running at the | s

Re: win32com short path name on 2k

2006-04-26 Thread bytecolor
Thanks Russell, those funcs sound familiar. I've probably used them or, more than likely, read about them in the past. -- bytecolor -- http://mail.python.org/mailman/listinfo/python-list

Re: win32com short path name on 2k

2006-04-26 Thread Russell Warren
I've been driven crazy by this type of thing in the past. In my case it was with the same application (not two like you), but on different machines, with all supposedly having the same OS load. In some cases I would get short path names and in others I would get long path names. I could never fig

Re: win32com short path name on 2k

2006-04-26 Thread bytecolor
I have no idea how Featurecam registers the type library. I did figure out that I can get the full name 'C:\Program Files\Featurecam' from within Featurecam using VBA and the same property I used in Pyhton -> fc.InstallPath. Why would VBA and Python return two different strings? This is really dri

Re: win32com short path name on 2k

2006-04-26 Thread Thomas Heller
bytecolor wrote: > Hi people, > > Using win32com on 2k SP3... import win32com.client as w32c fc = w32c.Dispatch('Featurecam.Application') fc.InstallPath > u'C:\\PROGRA~1\\FEATUR~1' > > Using win32com on XP Professional SP2... import win32com.client as w32c fc = w32c.Dispa

Re: win32com Excel bug?

2006-04-19 Thread cfriedalek
yth (Yes That Helped). You know how it goes, I thought I'd already tried to include all arguments. Obviously I didn't, or stuffed it up in some other way. Also some confusion about the meaning of "required" and "default". The doc explains these arguments as required, but some have defaults. I gues

Re: win32com Excel bug?

2006-04-19 Thread Roger Upole
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm driving Excel from python, largely successfully. Now I'm trying to > add errorbars to XY scatter plots. Keep getting a com_error. Can't > track down the problem. > > I modified a simple example to duplicate the problem. Thanks to Mat

Re: win32com

2006-04-07 Thread floris . vannee
Thanks :) For people who are also having this problem. The VB .NET code to import that COM object is: dim com_object as object com_object = CreateObject("Python.TestServer") 'Python.TestServer in this case, but for different programs, different names of course. And in order to get it work you ne

Re: win32com

2006-04-07 Thread M�ta-MCI
Hi! Answer in the mailing-list. @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: win32com: error 80004005

2006-03-30 Thread Roger Upole
The only thing I see wrong is that the Hello method doesn't take any arguments, but the VB code is passing one. It works fine for me if I remove the arg. When registered with --debug, you should still be able to see the output in Pythonwin's trace collector window even when the object is instantiat

Re: win32com: error 80004005

2006-03-28 Thread ago
I solved it. If someone else is in the same situation... It was due to a defective installation. I reinstalled python and pywin, re-registered the server and everything worked well. -- http://mail.python.org/mailman/listinfo/python-list

Re: win32com, BSTR, and null terminated strings

2006-02-06 Thread Matt Helm
"John Bauman" <[EMAIL PROTECTED]> writes: > "Matt Helm" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> However, what is the proper way to recover the actual string? I have >> been using: >> >>r.split("\0", 1)[0] >> > I'd prefer to use > r[:-1] > to strip off the last charact

Re: win32com, BSTR, and null terminated strings

2006-02-06 Thread Matt Helm
> It's perfectly good Python, though, so just forget about it or wrap it > in a "cstring(s)" function do you don't have to look at it! Thanks for the sanity check. I just wanted to make sure I was correct as well as right. Matt -- http://mail.python.org/mailman/listinfo/python-list

Re: win32com, BSTR, and null terminated strings

2006-02-06 Thread Steve Holden
John Bauman wrote: > "Matt Helm" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >>However, what is the proper way to recover the actual string? I have >>been using: >> >> r.split("\0", 1)[0] >> > > I'd prefer to use > r[:-1] > to strip off the last character of the string. >

Re: win32com, BSTR, and null terminated strings

2006-02-05 Thread John Bauman
"Matt Helm" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > However, what is the proper way to recover the actual string? I have > been using: > >r.split("\0", 1)[0] > I'd prefer to use r[:-1] to strip off the last character of the string. -- http://mail.python.org/mailman/l

Re: win32com, BSTR, and null terminated strings

2006-02-05 Thread Steve Holden
Matt Helm wrote: > > I am using win32com to access a third party COM interface but am > having trouble using the string that is returned. > > The vendor's docs show the following method: > > HRESULT CookString(BSTR param_a, short buf_size, [out, retval] BSTR* > result_b); > > param_a is a

Re: win32com early binding problem

2006-01-25 Thread Roger Upole
"Roland" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > I'm trying to use Sparx Systems Enterprise Architect OLE automation > interface. There is no problem to get early binding interface using > Microsoft Visual Basic. But using win32com makepy utility there problem > is.

RE: win32com early binding problem

2006-01-25 Thread Stefan Schukat
win32com does only support late bound interfaces in python scripts. To support early bound interfaces a pyd has to be created. If you want to script early bound interfaces try ctypes.com aka. comtypes from Thomas Heller. Stefan > -Original Message- > From: [EMAIL PROTECTED] > [

Re: win32com 'catastrophic failure'

2005-12-06 Thread Richie Hindle
[gerd] > com_error: (-2147418113, 'catastrophic failure', None, None) The last time I saw this error it was because I'd created a control instance but hadn't initialised it before trying to use it. I had to do something like this (apologies for the C++): IPersistStreamInit* IPSI = NULL;

Re: win32com 'catastrophic failure'

2005-12-05 Thread Tim Roberts
"g.franzkowiak" <[EMAIL PROTECTED]> wrote: > >I'm trying to interface to an .ocx file. >After successfully running makepy over it, the following is my problem: > > com_error: (-2147418113, 'catastrophic failure', None, None) That's not nearly enough information. -2147418113 is 0x8000, which

Re: win32com, generating the cache programaticaly?

2005-10-12 Thread Andrew Markebo
| You can use win32com.client.gencache.EnsureDispatch | to automatically generate the makepy file for an object's library | when the object is created. Use the bForDemand option to | only generate the code for objects as needed. Drats, I get an: raise TypeError, "This COM object can not automa

Re: win32com, generating the cache programaticaly?

2005-10-11 Thread Roger Upole
"Andrew Markebo" wrote: > > Hello! > > I am messing around with communicating between LabVIEW and Python, got > it to work by a small 'fix' (grabbing the generated file, and > importing it by hand) > > What I might want to do, is to automatically generate the data done by > executing makepy.py and

Re: win32com: use not possible as normal user

2005-08-12 Thread Tim Roberts
Sibylle Koczian <[EMAIL PROTECTED]> wrote: > >I've installed Python 2.4 and the win32 extensions, using administrator >rights, under Windows XP in "C:\Programme". As this is a directory >without spaces I didn't expect any problems. But now I can't _use_ >win32com as a normal user, because normal

Re: win32com and apache and permissions

2005-05-14 Thread Chris Curvey
found the answer five minutes after posting the question. Isn't that always the way? I had not granted the Apache user permission to launch IE. To do so: * launch DCOMCNFG.exe * choose "internet explorer" and click "properties" * choose the "security" tab and and "custom launch permissions" * "

Re: win32com Dispatch() and SetPriorityClass()

2005-05-12 Thread Roger Upole
The ie object exposes its window handle as attribute HWND, and you should be able to use win32process.GetWindowThreadProcessId to get the thread id and process id that created the window. hth Roger "Chris Curvey" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > if I'm usin

Re: win32com and ADO

2005-05-11 Thread Chris Curvey
it was working fine before running makepy, once I ran makepy, I had to add the array index to make it work. -- http://mail.python.org/mailman/listinfo/python-list

Re: win32com and ADO

2005-05-11 Thread Peter Hansen
Chris Curvey wrote: > Achim, > > Bingo. The recordset is in item 0. And that appears to work even on > systems where makepy has not been run. > > Thanks so much. So was this not really something that was working *before* you ran makepy, or is there still an unsolved mystery there? -- http://

Re: win32com and ADO

2005-05-11 Thread Chris Curvey
Achim, Bingo. The recordset is in item 0. And that appears to work even on systems where makepy has not been run. Thanks so much. -- http://mail.python.org/mailman/listinfo/python-list

Re: win32com and ADO

2005-05-11 Thread Chris Curvey
Thanks Peter. I found the files that makepy generated (in $PYTHON_HOME/Lib/site-packages/win32com/gen_py). I've tried deleting the individual files, and the entire directory, and I'm still getting the error. (Maybe something was changed in the registry?) [Fun side note -- after deleting the fil

Re: win32com and ADO

2005-05-11 Thread Achim Domma (Procoders)
Chris Curvey wrote: > result = conn.execute("select * from foo") > > while not result.EOF: > doSomething() > result.MoveNext() > > 'tuple' object has no attribute EOF The recordset you are looking for is a element of the tuple. Out of my head I would say it's element 1, so you have to

Re: win32com and ADO

2005-05-11 Thread Peter Hansen
Chris Curvey wrote: > I'm having one of those weeks. > > I have this pattern all over my code. > > result = conn.execute("select * from foo") > > while not result.EOF: > doSomething() > result.MoveNext() > > So recently I got around to running makepy on all of the Microsoft > ActiveX Da

Re: win32com and IIS

2005-05-10 Thread Roger Upole
Are you authenticating when you connect to the web server ? If you're connected as an anonymous user, you don't have enough privilege. Roger "Chris Curvey" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, > > I have a python script that uses the PAMIE libraries to dri

Re: win32com and IIS

2005-05-10 Thread Chris Curvey
my OS is Win2K (server, I think) if that makes any difference. -- http://mail.python.org/mailman/listinfo/python-list

Re: win32com and Python2.4: Interpreter crashing!

2005-03-07 Thread Roger Upole
There's a bug in the tokenizer that's triggered by the long lines generated by makepy. See http://sourceforge.net/tracker/index.php?func=detail&aid=1085454&group_id=78018&atid=551954 and www.python.org/sf/1089395 Roger "Tim N. van der Leeuw" <[EMAIL PROTECTED]> wrote in message news:

Re: win32com/makepy question

2005-01-28 Thread Tom Willis
Wow Thanks I didn't even know about the gencache that's is exactly what I was hoping for. On Fri, 28 Jan 2005 09:06:15 -, Tim Golden <[EMAIL PROTECTED]> wrote: > [Tom Willis] > > | It seems in COM late binding is something that should be > | avoided if possible. > | > | Because python se

RE: win32com/makepy question

2005-01-28 Thread Tim Golden
[Tom Willis] | It seems in COM late binding is something that should be | avoided if possible. | | Because python seems to be really good at doing thing dynamically I'm | wondering why no one has figured out how to make the functionality in | makepy fire automagically when you need it. I (near

Re: win32com/makepy question

2005-01-27 Thread Robert Kaplan
Hi, I've been looking at the client side com stuff in __init__.py in the client subdirectory under win32com, and some of the routines do exactly that. Certainly DispatchWithEvents tries to generate that, and I thought Dispatch does before returning a late binding object. Hope this helps, Bob T