I have a Python 3.7 module that registers a COM server, exposing one method
to the Windows environment.
It works well when running from the ,py script (Python 3.7), and the
generated COM server also works fine.
Now I want to distribute it to users that do not have Python installed in
their machin
Kasper wrote:
>
> I hope i have replied correctly, because i did not get the reply in my
> mail...
> (please correct me if i am doing worng and start a new thread)
> https://mail.python.org/pipermail/python-win32/2016-July/013732.html
>
> Well, i see your point, but the IDL filse was modifien for t
Python code:
http://pastebin.com/KV3JKuD3
IDL:
http://pastebin.com/ec6BE4A1
VB code for testing and error:
http://pastebin.com/McD2rnVv
http://picpaste.com/com-AtIFF9f3.png
So i think we are back to the sentence about co-classes are not registrered:
Coclasses are not registered (that is, Registe
Hi again,
I hope i have replied correctly, because i did not get the reply in my
mail...
(please correct me if i am doing worng and start a new thread)
https://mail.python.org/pipermail/python-win32/2016-July/013732.html
Well, i see your point, but the IDL filse was modifien for the second code
t
Kasper wrote:
>
> I have some major problems with something i am not good at :(
>
> I have come to a situation where i have to add a COM server in my
> python code the get access to it from Labview Teststand.
>
> Firs i have tried with pythoncom/wincom and got it almost working, it
> registered a
Hello all,
I have some major problems with something i am not good at :(
I have come to a situation where i have to add a COM server in my python
code the get access to it from Labview Teststand.
Firs i have tried with pythoncom/wincom and got it almost working, it
registered and i could look it
On 19/12/2012 2:39 AM, Russell Warren wrote:
On Mon, Dec 17, 2012 at 10:25 PM, Mark Hammond
mailto:[email protected]>> wrote:
The VS2008 redistributables should probably be in the same directory
(ie, msvc*90*.dll in system32) or else they might not be loaded. If
you use the
Russell Warren wrote:
> On Mon, Dec 17, 2012 at 10:25 PM, Mark Hammond
> mailto:[email protected]>> wrote:
>
> The VS2008 redistributables should probably be in the same
> directory (ie, msvc*90*.dll in system32) or else they might not be
> loaded. If you use the "depends" tool
Russell Warren wrote:
>
> Also - what is the purpose in defaulting to use both InprocServer32
> and LocalServer32? Based on my problem, the default windows choice
> appears to be InprocServer32. When/why would it move on to the
> LocalServer32 entry? It clearly does not do it on error.
An appli
On Mon, Dec 17, 2012 at 10:25 PM, Mark Hammond wrote:
> The VS2008 redistributables should probably be in the same directory (ie,
> msvc*90*.dll in system32) or else they might not be loaded. If you use the
> "depends" tool from MS/sysinternals, you will see both Python itself and
> pythoncom dep
On 18/12/2012 6:27 AM, Russell Warren wrote:
Update - it seems to be the pythoncom27.dll somehow. I tried deleting
the InprocServer32 key and my com server works now.
Assuming you installed Python "for all users", the pythoncom27.dll being
used should be the one in the system32 directory, and
Update - it seems to be the pythoncom27.dll somehow. I tried deleting the
InprocServer32 key and my com server works now.
I see that I can dodge this issue by specifying _reg_clsctx_ =
pythoncom.CLSCTX_LOCAL_SERVER, but I'm concerned about what the problem
could be with pythoncom27.dll and whethe
I'm having a really difficult time trying to get a simple COM server demo
working with win32com. No matter what I do I'm getting an automation error
("The specified module could not be found.") when I try and create the
object from VBA with CreateObject().
The latest COM server I'm trying to creat
Mark,
Per comment on
http://stackoverflow.com/questions/4582819/com-server-build-using-python-on-64-bit-windows-7-machine/4621124#4621124it
was an issue with py2exe and patch provided here worked well.
Thanks,
Vijayendra.
On Thu, Jan 6, 2011 at 10:12 AM, vijayendra bapte <
vijayendra.ba...@gmail
On Thu, Jan 6, 2011 at 7:50 AM, Mark Hammond wrote:
> On 31/12/2010 3:50 PM, vijayendra bapte wrote:
>
>> I have turned on logger in
>> `Python27/Lib/site-packages/py2exe/boot_com_servers.py` and here is the
>> traceback which I am getting in `comerror.txt` on `regsvr32
>> test_icon_overlay.dll`
>
On 31/12/2010 3:50 PM, vijayendra bapte wrote:
I have turned on logger in
`Python27/Lib/site-packages/py2exe/boot_com_servers.py` and here is the
traceback which I am getting in `comerror.txt` on `regsvr32
test_icon_overlay.dll`
PATH is
['C:\\root\\avalon\\module\\sync\\python\\src\\dist
On Fri, Dec 31, 2010 at 7:56 AM, Mark Hammond wrote:
> On 29/12/2010 9:40 PM, vijayendra bapte wrote:
>
>> I have created dll file using `python setup_VI.py py2exe` and then tried
>> to register it using `regsvr32 test_icon_overlay.dll`. Registration
>> fails with windows error message "Error 0x80
On 29/12/2010 9:40 PM, vijayendra bapte wrote:
I have created dll file using `python setup_VI.py py2exe` and then tried
to register it using `regsvr32 test_icon_overlay.dll`. Registration
fails with windows error message "Error 0x80040201 while registering
shell extension".
I guess trying to tr
On 7/03/2009 12:46 PM, Greg Antal wrote:
there I've missed it. (Do I have to deal with Monikers and the
RunningObjectTable myself? If so, exactly what are the arguments for the
ROT's "Register" method?)
I'm afraid you do, and I'm afraid I can't point you at a reference at
the moment (if I coul
Dear Experts:
I want to program a COM server in Python where you can run it as its
own application and work with it through its own UI, and you can also
run an external script that connects to the running executable
using (your language's equivalent of) VB's "GetObject" instead of
"CreateObjec
At 09.35 13/11/2008 +1100, you wrote:
>That is another clue that makes me think the marshaller might be involved.
>Have you changed pippo to only support out-of-process registration?
>Cheers,
>Mark
Sorry for replying late, I had some problems and I could not do tests on
pippo_server before.
Wel
> Thanks Mark for the test. I'm running the test on Windows XP and
> Windows 2k,
> both with python 2.5.2. The problem is that the QI with value to 0 is
> raised somewhere in the pythoncom code
I'm pretty sure pythoncom never (explicitly) QI's for IID_NULL. It may QI
for one of its private interf
>I'm afraid that with the exact same process (although the 'print' says
>'print "QI", iid' - using python 2.6 on vista) I see exactly:
>
>| Object with win32trace dispatcher created (object=None)
>| Object with win32trace dispatcher created (object=instance at 0x02AD8210>)
>| QI {F1A3CC2E-4B2A-4A81
> The result in PythonWin trace Collector is:
> Object with win32trace dispatcher created (object=None)
> Object with win32trace dispatcher created (object= instance at 0x015DF210>)
> {----}Traceback (most recent call
> last):
> File "C:Python25Libsite-packageswin32c
Hello, some weeks ago I posted a message, and opened a bug ticket, but got
not reply. Probably few of us are working with servers or dealing with
pointer to pointer parameters (or simply have no time). Anyway I try to post
the request once again, maybe somebody missed the issue. (Unfortunately at
t
I have the same problem with pippo_server, the test file in the win32com
package. I don't know if somebody can have more info from this.
I used a client written with python and comtypes and, with a little effort I
can see the call to QueryInterface with IID_NULL (as happens if the caller
is a C++
At 10.31 15/10/2008 -0700, you wrote:
[EMAIL PROTECTED] wrote:
> Hi all,
> I still have some problems with my server.
>
> I have a function that should return three parameters defined as:
>
> HRESULT GetInfo([out] BSTR *name, [out] BSTR *version, [out] BSTR
> *description);
>
> If I return a tuple
[EMAIL PROTECTED] wrote:
> Hi all,
> I still have some problems with my server.
>
> I have a function that should return three parameters defined as:
>
> HRESULT GetInfo([out] BSTR *name, [out] BSTR *version, [out] BSTR
> *description);
>
> If I return a tuple with three string I get an error sayi
Hi all,
I still have some problems with my server.
I have a function that should return three parameters defined as:
HRESULT GetInfo([out] BSTR *name, [out] BSTR *version, [out] BSTR
*description);
If I return a tuple with three string I get an error saying that the number
of returned parameter
At 09.19 02/10/2008 +1000, you wrote:
>Just return a string - pythoncom will do the SysAllocString() for you.
>Please see the 'pippo' examples in the win32com directory - they show how
to
>hookup a typelib with your com object implementation.
It's incredible how simple is the answer, I searched a
> Hi all,
> this is my first time here. I looked into the archive but found no
> answer to
> a question that probably is simple (I hope).
> I need to implement a COM server and I got the interface in IDL format.
> Unfortunately to me some functions have a declaration like this:
>
> HRESULT func([i
Hi all,
this is my first time here. I looked into the archive but found no answer to
a question that probably is simple (I hope).
I need to implement a COM server and I got the interface in IDL format.
Unfortunately to me some functions have a declaration like this:
HRESULT func([in] BSTR param1,
Hi Michel,
I'm having a problem on following configuration of Vista,
OS - Vista Ultimate
Pyhton: ver 2.4
IE7: Protected mode On
I'm installing ietoolbar by following command
1) Run cmd.exe as an administrator,
2) Reach to directory, where ietoobar.py resides, in
C:\Python24\Lib\site-packages\w
Hi!
Because Protected mode need to activate UAC, I prefer to test (to try) on a
virtual-PC. I have done a Vista-premium with UAC on, Security center on,
Protected mode on.
In the passing, I benefitted from it to test my procedures of installation
for Vista.
Results :
iebutton: install OK
Greetings Friends,
I'm having a problem with IE7 on Vista under "Protected mode". The
python win32com sample "ietoolbar" even doesn't load under protected
mode enable condition on IE7 vista.
Are your plug-ins for Internet Explorer (IE7) working on Vista
"Protected Mode" enable (on) ? If yes, c
all fine on my end...!
On 11/5/07, Michel Claveau <[EMAIL PROTECTED]> wrote:
>
> Hi!
>
> My COM servers, in Python, run without problem on Vista. I had also try :
> plug-in in Internet-Explorer ; plug-in in Excel. All is OK.
>
> @-salutations
>
> Michel Claveau
>
>
Hi!
My COM servers, in Python, run without problem on Vista. I had also try :
plug-in in Internet-Explorer ; plug-in in Excel. All is OK.
@-salutations
Michel Claveau
___
python-win32 mailing list
[email protected]
http://mail.python.org/mailma
I was wondering if the COM server support in pythonwin works the same
way on Vista. I was informed that the Explorer shell extension I wrote
on XP does not function when installed on Vista. Just want to find if
there's any known bug on Vista. Thanks.
___
Hi,
I'm trying to convert my Python script, which is a COM server, to an
exe file. I'm using py2exe 0.6.5. But I ran into a few problems. After
a lot of work I was able to run py2exe on my script and create the exe
file. I was able to use exectablename.exe --register and --unregister
and it returne
Hi!
I don't know for VB.NET; but, with C-Sharp (C#) it's possible.
After some research, I found that a technique called had to be used: "Late
Binding"
@-salutations
--
Michel Claveau
___
Python-win32 mailing list
[email protected]
http://mail.
Hi,
Is it possible to create a com server in python and then access that server using VB .NET, for example using the following code. A very basic com server i found in a tutorial about win32com:
class HelloWorld: _reg_clsid_ = "{7CC9F362-486D-11D1-BB48-E838A65F}"
_reg_desc_ = "Python
HiI am trying to implement a COM server in
python that supports events.I went over the available documentation, I
looked in the example in win32com/demos/connect.py (which mixes client and
server too much) and still I find it hard to understand what I need to do.I
am looking for a complete,
On 7/11/05, Amit Upadhyay <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a COM server which is working fine on my development machine,
[snip]
> But when I tranfer it to some other machine, i can not create an
> inproc instance of it using win32com.client.dispatch, it gives me:
>
> Python 2.3.5 (#6
Dear Amit Upadhyay,
Try using cx_Freeze
http://starship.python.net/crew/atuining/cx_Freeze/
Bill Vax PAPADOPOULOS
__[EMAIL PROTECTED][EMAIL PROTECTED]
___
Python-win32 mailing list
[email protected]
http://mail.pyt
Hi,
I have a COM server which is working fine on my development machine,
and I am trying to create a distributable using py2exe.
Setup.py file is something like this:
# setup.py
from distutils.core import setup
import py2exe
import sys
sys.argv.append("py2exe")
import mycomsvr
opts = {
"
Hi Mark,
"Mark Hammond" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> Glad you spotted that - if you feel there is something I could add to the
> docs or examples to make that error less likely in the future, please let
> me
> know.
For me a well written example with suffic
Glad you spotted that - if you feel there is something I could add to the
docs or examples to make that error less likely in the future, please let me
know.
> Two questions remains:
> 1.) The following code line seems to be unnecessary. The
> AddIn sever works
> without it as well. What is
> the i
Hi Mark,
now I have made some progress! Using the win32traceutil worked well.
However the real essential part was the addition of the _typelib_guid_
variable
to the server class. Below, I have added the working example. Could you
confirm that this is the proper way of using the modules?
Two que
> unfortunately I do not make any progress. The trace collector
> gives me the
> following output.
>
> Object with win32trace dispatcher created (object=None)
> pythoncom error: Failed to call the universal dispatcher
>
> Traceback (most recent call last):
> File
> "C:\Programme\Python\Lib\site-p
Hi Mark,
unfortunately I do not make any progress. The trace collector gives me the
following output.
Object with win32trace dispatcher created (object=None)
pythoncom error: Failed to call the universal dispatcher
Traceback (most recent call last):
File "C:\Programme\Python\Lib\site-packages
> This won't work! I can't start this COM server from my application.
>
> First some questions: Do I have to write _public_methods_ =
> ['Init', 'Exit'] in order to satisfy the required interface
> ICADdyAddIn?
No - but _public_methods_ must exist (ie, your code is fine)
> How do I handle the
Hi,
I have a problem implementing a simple COM server AddIn which should satisfy a
special COM interface
provided by an application I'm using.
The server application: CADdy.exe => type library CADdy.tlb
The AddIn interface of CADdy.tlb: ICADdyAddIn
From
gencache.EnsureModule('{9C3BB401-114D-1
> Thanks for the hints, I will try to modify the sample now to make it
> work using inter thread marshalling.
>
> But isn't it possible to have all the threads in the python
> COM server run in a single MTA?
Not when the hosting application (VB in this case) is not in the MTA. You
either need to
Thanks for the hints, I will try to modify the sample now to make it
work using inter thread marshalling.
But isn't it possible to have all the threads in the python COM server
run in a single MTA?
Instead of having several worker threads in several STA's in the python
COM server with marshalli
Mark Hammond schrieb:
> The problem is that the connection server is getting an interface object on
> one thread (the main thread as part of the Advise call) - but the new
> threads you create are using these objects without marshalling the objects.
>
> ie, your new threads are referencing objects
> I attached a zip file that contains a small python COM server and a
> small VB6 client that reproduces the problem.
>
> The server sends events to the VB6 client, but the problem is
> the events
> are handled in different threads in the VB6 client.
>
> I would appreciate it if someone could tell
> I don't know how to tell VB6 to use free-threading or how to
> spawn new
> threads in VB6 that belong to the MTA. Are you sure it's possible, do
> you have more information on how to do this?
I doubt it is possible for the main GUI thread. I believe VB can create
threads via API calls, so they
I tried to run the python COM server from a VB6 ActiveX EXE where I
checked the option "Thread per Object" in the project properties window.
This way, the python COM server component is created in a different thread.
But I still get the error "Class does not support Automation or does not
suppor
Thanks for the reply,
The reason I chose to set the threading model of the python server
component to "free" was that if I do this, then the component gets
created in the MTA of the VB6 GUI process. If I don't do this, the VB6
event handlers are run in different threads than the GUI thread and
> I am trying to build an application where the GUI is implemented as a
> VB6 exe and most of the core functionality is implemented as a python
> COM server that is called by the GUI.
>
> The python COM server has multiple threads running in it and sends
> events once in a while to the VB6 GUI.
>
>
Hello,
I am trying to build an application where the GUI is implemented as a
VB6 exe and most of the core functionality is implemented as a python
COM server that is called by the GUI.
The python COM server has multiple threads running in it and sends
events once in a while to the VB6 GUI.
Th
61 matches
Mail list logo