> Traceback (most recent call last):
>File "CharmAnalysis05.py", line 24, in ?
>File "ddeclient.pyc", line 6, in ?
>File "pywin\mfc\object.pyc", line 3, in ?
>File "win32ui.pyc", line 9, in ?
>File "win32ui.pyc", line 7, in __load
> ImportError: DLL load failed: The specified mo
I have been struggling for some time with a strange failure of py2exe.
When I include the dde.py module in a freeze with py2exe and copy the
dist folder to another computer (w/o python)
On some computers it works and others it doesn't (all are recent XP
installs)
I get this message:
Tracebac
> > >
> > > Does the error above show with some certainty that
> > > it's a problem with the COM object?
> >
> > Sadly it doesn't demonstrate much with any
> > certainty!
>
> Humm... Is there a way to debug the python side more
> carefully? E.g., using a lower-level interface in the
> pythoncom mod
I tried the "late-bound" mode (by deleting all the
generated files in the gen_py directory).
It still gives me the same TypeError.
>>> obj.AddTest('IsBuy', True)
Traceback (most recent call last):
File "", line 1, in ?
File "", line 2, in
AddTest
TypeError: The VARIANT type is unknown (
--- Mark Hammond <[EMAIL PROTECTED]> wrote:
> >
> > Does the error above show with some certainty that
> > it's a problem with the COM object?
>
> Sadly it doesn't demonstrate much with any
> certainty!
Humm... Is there a way to debug the python side more
carefully? E.g., using a lower-level in
> I must admit I don't know how to fully test my implementation. I also
> have at least one bug related to strings, which the test below will
> demonstrate. I am soliciting any help I can get to solve the general
> case. Or, failing that, I'm wondering if a less-general patch would be
> accepte
Mark Hammond wrote:
> Your changes look reasonable for the job they are designed to do, but
> doesn't provide a general solution I can try to adopt (which is fine!).
Yeah -- I didn't mean that as a patch for general distribution.
'Suggested workaround' would've been better in the old subject line.
Do you
have the complete traceback? This is from an event-log message, so if this
is a call you are making, it may be that something is wrong with the params (eg,
the inserts). This will not fail in "debug" mode as debug mode makes no
attempt to actually write such entries to the log - it
I already found a solution :=).
--
- Original Message -
From:
Math
To: python-win32@python.org
Sent: Monday, February 06, 2006 7:43
PM
Subject: [python-win32] Attributes of
win32com and accessing MS Access
Hello,
Thanks for your help ... That does the trick.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tim Roberts
Sent: Monday, February 06, 2006 10:27 AM
To: python-win32@python.org
Subject: Re: [python-win32] Visual Basic
Speers, Ted wrote:
>Maybe I should ha
> I tried changing the 30 to 8 in the above line. This
> does *not* work either, although it gives a different
> error this time:
>
> >>> obj.AddTest('IsBuy', True)
> Traceback (most recent call last):
> File "", line 1, in ?
> File
> "c:\Python24\lib\site-packages\win32com\gen_py\98B8AE14-466F
I found a solution (Should be ADOX) :-):
How to create db.mdb in Pyton:
cat = win32com.client.Dispatch(r'ADOX.Catalog')
cat.Create("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=db.mdb")
Thanks
---
> On Mon, 6 Feb 2006 19:43:25 +0100, "Math"
On Mon, 6 Feb 2006 19:43:25 +0100, "Math" <[EMAIL PROTECTED]> wrote:
>Pardon my English, my native is Dutch.
>Can somebody please tell me where I can find more information about win32com
>module and attributes.
>I wanna create a empty MS Access DataBase with COM, ADO and SQL from Python.
>Where
Mark:I appreciate the resposne, I have the exact text of the error message in case this helps anyone else out in the future:pywintypes.error:(1783,'RegisterEventSource/ReportEvent','The stub recieved bad data')
MarkOn 2/5/06, Mark Hammond <[EMAIL PROTECTED]> wrote:
> From: [EMAIL PROTECTED][mailto:
Hi,
> > - - - - - - - -
> > def AddTest(self,
> lpProperty=defaultNamedNotOptArg,
> > vValue=defaultNamedNotOptArg):
> > """method AddTest"""
> > return self._oleobj_.InvokeTypes(4, LCID, 1,
> (24,
> > 0), ((30, 1), (12, 1)),lpProperty, vValue)
>
> Can you please try
Hello,
Pardon my English, my native is Dutch.
Can somebody please tell me where I can find more
information about win32com module and attributes.
I wanna create a empty MS Access DataBase with COM,
ADO and SQL from Python.
Where can I find all methods and so on from
win32com*** when it
Speers, Ted wrote:
>Maybe I should have just asked how to deal with this first.
>
>xlapp=win32com.client.Dispatch("Excel.Application")
>book=xlapp.Workbooks("bookname")
>VBProj=book.VBProject
>
>...
>com_error: (-2147352567, 'Exception occurred.', (0, 'Microsoft Office Excel',
>'Programmatic ac
Maybe I should have just asked how to deal with this first.
xlapp=win32com.client.Dispatch("Excel.Application")
book=xlapp.Workbooks("bookname")
VBProj=book.VBProject
...
com_error: (-2147352567, 'Exception occurred.', (0, 'Microsoft Office Excel',
'Programmatic access to Visual Basic Project
Speers, Ted wrote:
>
>- -All of my VBA code is "within Excel." Sorry for the confusion. I don't
>know any better.
>
>
I wondered about that, and I probably should have clarified it before I
responded. VBA forms are just Excel objects, and should be able to be
manipulated using the Excel ob
>If I can do this I'll be golden:
>
>Imagine an Excel Macro Start that does the following:
>
>Sub Start():
>Set form = MyUserForm
>load form
>form.show vbmodeless
>
>end sub
>
>
Yes, but you can't really do that from Excel either, can you? If
MyUserForm is a VBA form within
On Sun, 5 Feb 2006 16:18:51 -0800, "Speers, Ted" <[EMAIL PROTECTED]>
wrote:
>I'd like to redo all my Visual Basic Projects in Python ... I would
>have started down the Python path from the get-go but was in too much of
>rush. Now that I have a moment, I thought I'd get the help I need.
>
>I kno
[Frank Günther]
| I use win32pdh and EnumObjectsItems ... to get pids for
| application name.
| Has anyone a suggestion for implementing this in a different way?
Well, assuming that all you want is a PID (or a list of them)
for a given application name, you can do it with WMI. I don't
know if i
Hi,
I use win32pdh and EnumObjectsItems … to get
pids for application name.
By importing win32pdh or calling
win32pdh.EnumObjectItems I get several strange hard to find problems on some
machines.
The problems occur only on few machines (XP and NT)!
1.) the
float separator is chang
23 matches
Mail list logo