Have you tried using PTVS and attaching to process with the Python debug
engine enabled? Then you can set a breakpoint in managed code and look for
calls to sys.exit
On Sat, Aug 27, 2016 at 7:23 AM Bob Hood wrote:
> On 8/25/2016 9:36 PM, eryk sun wrote:
> > On Fri, Aug 26, 2016 at
appreciated
Thanks!Col___
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32
and there's no earthy need to do so that
I can see, maybe a fix is in order?
|
--
Regards,
Ivan
_______
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32
Dear Community,
I'm trying to register pythonservice.exe as it's said in the PyWin32
documentation, but getting errors:
C:\Program Files\Python35\Lib\site-packages\win32>pythonservice.exe
/register
Registering the Python Service Manager...
Registration failed as sys.winver is
I wrote a simple service and it works. Registration doesn't seem to be
needed. Sorry for silly question
Best regards,
Pavel Bychikhin
Original Message
*Subject: *pythonservice.exe doesn't register
*From: *Pavel Bychikhin
*To: *python-win32@python.org
*Date: *10/31
Hi, I've been looking for a solution to this question for some time now.
Hopefully you could help me out. There's a program (Golden Software Surfer)
that I have successfully automated using Python COM. I normally am able to
control every portion I need. The part I have trouble ac
0C02A351Cx0x1x4' has no attribute
'CLSIDToClassMap'
Any idea of what this is and how to solve it?
E m r e
On Tuesday, May 22, 2018, 8:14:34 PM GMT+3, Tim Roberts
wrote:
Emre CETIN via python-win32 wrote:
> Hi, I've been looking for a solution to this
Hi again,
I solved the unexpected error I just posted by following this link:
https://mail.python.org/pipermail/python-list/2008-July/509467.html
There is said to:
"Just in case, could you delete the contents of your gen_py
directory (probably in %TEMP%\gen_py)"That did it.
Now I was ab
much during for all your help!
Best regards,
E m r e
On Tuesday, May 22, 2018, 11:21:35 PM GMT+3, Emre CETIN
wrote:
Hi again,
I solved the unexpected error I just posted by following this link:
https://mail.python.org/pipermail/python-list/2008-July/509467.html
There is said to:
"
Hi, I am writing a script to automate a program named Golden Software Surfer. I
am using import win32com.client in Python during this process. At one point
though i can not get past a certain step of my code. The reason is because
Surfer's automation utility (Scipter) does not allow that
. I'm still stuck :/
E m r e
On Tuesday, September 25, 2018, 1:33:01 AM GMT+3, Simon McConnell
wrote:
I haven't used it myself but I believe this is what pywinauto does:
http://pywinauto.github.io
On Tue, 25 Sep 2018 at 02:04 Emre CETIN via python-win32
wrote:
Hi, I am writ
d.
E m r e
On Tuesday, September 25, 2018, 5:40:49 PM GMT+3, Emre CETIN via
python-win32 wrote:
Hello Simon. Thank you for your response. I had read of pywinauto but hadn't
used it before. After your advise i have been working on it for hours. But
unfortunately i can not get th
nted: Edit | Select All. It
provided me with the following line: WM_COMMAND wNotifyCode:0 (sent from a
menu) wID:57642.
How can I use this class ID (57642) in Python to act as if it was
clicked/pressed?
E m r e
On Saturday, September 29, 2018, 1:55:37 AM GMT+3, James Scholes
wrote:
Emre
Hi all
I'm trying to print PDF documents with pdfix sdk utilizing win32print. This PDF
library requires printer HANDLE value as int directly not as a PyObject.
Is there any way to obtain printer HANDLE value in Python code?(attached is a
sample)
Thanks
Paoloimport os
import win32print, wi
Hi,
I am trying to perform a reply all to an email message that I have passed into
my python script.
import win32com.client
__OUTLOOK = win32com.client.Dispatch("Outlook.Application").GetNamespace("MAPI")
__MSG = __OUTLOOK.OpenSharedItem(sys.argv[1])
emailBody = __MSG.
Hi Professionals,
I am new to python/pywin32. I have a task to check/retrieve/click on some
notifications in the "Action Center" posted by a particular windows app. Can I
use python/pywin32 for this? Are there sample codes that I can take a quick
look? Also, where can I find the DOC f
Hi Tim,
Thank you for the response. I need to deal with toast notifications. I am not
sure if that answer your question.
Regards,David
On Sunday, June 2, 2019, 9:05:32 PM PDT, Tim Roberts
wrote:
On Jun 2, 2019, at 6:06 PM, DAI VU via python-win32
wrote:
]I am new to python/pywin32
I'm trying to open some rtf files to Word and then save as PDFs.
I'm running Windows 10 65 bit -- Word 2016 is installed on my computer.
Python 3.6.0
import os,os.path
import img2pdf
import win32com.client
input_dir = "G:/MHOShare/MHO Staff/James Holland/TempDump/CindyTest/RTFt
Not sure if this is the appropriate place for this question, but I was
wondering how one prints (hard copies, with an actual printer) PDF documents
using python. For example, if I want to write a script to automatically print
hard copies of pdfs saved on my computer. I have tried to search
I have a Python project developed by a colleague, in which pywin32 is used to
control the application: CANoe from Vector.
When he is running the *.py script from PyCharm (2019.2.5) everything is ok, if
he used auto-py-to-exe to convert the python script to *.exe, and then he
executes the *.exe
Hi,
I just started using python on Win10 (I'm a linux native) and wanted to
store and retrive web credentials like vauldcmd.exe would, but I'm
hitting a wall.
Maybe I'm just to stupid to understand the api, but has anyone already
done this?
My guess was using wincred.CredEnume
Hello pywin32 maintainers and enthusiasts,
I intend to use a TPM on Windows to generate, store and sign, through the win32
CNG API (NCryptCreatePersistedKey
(https://docs.microsoft.com/en-us/windows/win32/api/ncrypt/nf-ncrypt-ncryptcreatepersistedkey)
and NCryptSignHash) but within a Python
On Nov 22 2020, at 8:14 pm, Tim Roberts wrote:
> On Nov 22, 2020, at 4:16 AM, Antoine FERRON via python-win32
> wrote:
> >
> > Can you confirm that TPM "Microsoft Platform Crypto Provider" requires
> > "CNG", and pywin32 is only "CAPI" ca
Hi team,
I tried running the python demo code "OutlookAddin.py" which comes with
win32com as a demo outlook com addin. I will still share the code below. My
question here is when I run, it does adds a addin button on my Outlook 2016.
However there is no Caption on it. I will have to
Hello dear authorized,
I'm Salih from Abdullah Gül Univercity from Turkey. Now I'm tring to make a
project with python and abap. I'm now using the pywin32 for com server in
windows. I can send some variables to python from abap and get them.
However, I have a problem with loc
I would recommend that you work with an object from a class, and using def
__del__(self):
I think when Windows shutdown, it send a stop/quit signal to all processes.
When your Python is stopped by the OS, it can stop gracefully, and write the
info in the file to backup, before it dies. This
r use it for any
purpose, nor disclose its contents to any other person. This email does not
constitute the commencement of legal relations between you and FINASTRA. Please
refer to the executed contract between you and the relevant member of the
FINASTRA group for the identity of the contracting pa
Dear Sir,I am using colab and try to install pywin32.I used the following code
(!pip install pywin32) but I got error.
Please can you help me how to install it?Yours SincerelyOsama
___
python-win32 mailing list
python-win32@python.org
https
The error I reported in 304 still exists in the interactive window for Python
3.11. Is this scheduled to be fixed?
Create the function below. Goes bad when you try to call the function.
>>> def biff(x):
... x = x + 1
...
>>> biffFailed to format the args
Traceback (mos
there is any alternative to build a com server and freeze it
> in python 3.8
>
> regards,
> Matteo
>
>
> _______
> python-win32 mailing list
> python-win32@python.org
> https://mail.python.org/mailman/listinfo/python-win32
>
____
ilto:mhamm...@skippinet.com.au>>
To "Wuping Xin" mailto:wup...@caliper.com>>
Cc "Python-win32@python.org<mailto:Python-win32@python.org>"
mailto:Python-win32@python.org>>
Date 3/13/2023 8:45:37 PM
Subject Re: [python-win32] How to enable events for Py
ally create the Source/EventSink connection.
Wuping
-- Original Message --
From "Mark Hammond"
mailto:mhamm...@skippinet.com.au>>
To "Wuping Xin" mailto:wup...@caliper.com>>
Cc "Python-win32@python.org<mailto:Python-win32@python.org>"
mail
edit or unprotect
the field would be appreciated. I was thinking of deleting and remaking the
field, but this duplicates the references I think.
Yours truly,
Ryan Dikdan
____
From: Steven Manross
Sent: Wednesday, March 1, 2023 6:43 PM
To: Ryan Dikdan ; python
.com.au>>
To "Wuping Xin" mailto:wup...@caliper.com>>
Cc "Python-win32@python.org<mailto:Python-win32@python.org>"
mailto:Python-win32@python.org>>
Date 3/14/2023 12:47:27 AM
Subject Re: [python-win32] How to enable events for Python Active Scripting?
W
e two instead, messy, but it'll work hopefully.
Yours truly,
Ryan Dikdan
From: Steven Manross
Sent: Friday, March 17, 2023 2:04 AM
To: Ryan Dikdan ; python-win32@python.org
Subject: RE: How to add citations to a word document
A quick googl
e to do so).
_
Antoine FERRON
Président — BitLogiK
bitlogik.fr (https://bitlogik.fr) — PGP Key ID#22F95B31
(https://keys.openpgp.org/search?q=antoine.ferron%40bitlogik.fr)
On Apr 14 2023, at 11:03 am, Liu Gin wrote:
>
> I pack my python code into exe, and run in win11 with Smart App Contro
== -2147352572 or args[0] ==
None):
return func()
else:
return func(*args)
___
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32
)
Then we can make VBA, Delphi, C++ all clients happy.
Agree? Should I submit a pull request?
Wuping
-- Original Message --
From "Wuping Xin" mailto:wup...@caliper.com>>
To "Mark Hammond" mailto:mhamm...@skippinet.com.au>>
Cc "Python-win32@pyth
Thanks. I'll submit a PR.
When calling from a Delphi COM client (using OleVariant ), arg[0] will be set
by Delphi a value of 0x8002000C, when the target Python method has NO argument
(i.e., taking only "self"). This makes args non-empty.
When calling from a C++ MFC/COM client,
I created a new issue (with sample Delphi project to replicate the issue,
including the Python source file where the COM server is defined):
https://github.com/mhammond/pywin32/issues/2043
And I submit a PR:
https://github.com/mhammond/pywin32/pull/2044
Thank you.
Wuping
-- Original
;,
clsctx=pythoncom.CLSCTX_LOCAL_SERVER)
fails with "pywintypes.com_error: (-2147221164, 'Class not registered', None,
None)"
Thank you and best regards!
_______
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32
installed on the PC you are trying to create the automation from, because
“Class not Registered” isn’t a python error, and it talks more directly to the
fact that the appropriate class from the software you are trying to automate
isn’t on the computer you are running python from: so either you
the C++ sample code you mentioned and consume that via ctypes, or
come up with some wrapper objects you expose via a new Python extension DLL. If
you're really determined, you could add pywin32 style support for the
interfaces in a new DLL without too much grief. (But it is a fairly tedious
When I running a Python Active Script, DebugView captured the following
errrors - any advice?
[22076] File
"C:\Users\.\AppData\Local\Programs\Python\Python39\lib\site-packages\win32comext\axscript\client\framework.py",
line 729, in SetScriptSite
[22076] from . import de
OK, I think this is a bug of pywin32,
Line 37 of \win32comext\axdebug\documents.py,
class DebugDocumentText(
gateways.DebugDocumentInfo, gateways.DebugDocumentText,
gateways.DebugDocument
gateway.DebugDocumentText already inherits from gateway.DebugDocument. This
would cause Python to
event log for details.**
*
Here is the output from event viewer application log:
|The description for Event ID 14 from source Python Service cannot be
found. Either the component that raises this event is not installed on
your local computer or the installation is corrupted. You can install or
security permissions for pythonservice.exe in the root python
directory. SYSTEM and Admin users have full control.
*Jacob Nolan*
*Gayner Technical Services*
Phone: 0437210168
Email: j...@gaynertechnicalservices.com.au
On 1/12/24 01:19, Mark Hammond wrote:
The ""
part sounds like it
E: is just a local harddrive. The full python install and files under
the E: drive is accessible for both the local SYSTEM user, my user and
administrator.
It is configured to run as the Local System Account.
I am successfully able to install the service initially via admin
command prompt
er()
print(f"Time ellapsed (early): {end - start}s")
EnsureDispatch is a little bit slower ~4.2s compared to ~4.0s.
If I don't get a performance boost with EnsureDispatch, is there even a
point using it?
Thanks,
Sven
___
python-win32 mailing list
python
Hi all,
I've been having a reoccurring error across multiple windows installs
and python versions (3.9.*-3.11.*) when performing an install of a
python windows service.
This is the result of calling *python service_config.py install *on 3.9.5
The error is:
|*copying host ex
e of upsetting some COM objects - eg, when `foo.bar` is seen,
> EnsureDispatch knows for sure that `bar` is a method, but dynamic dispatch
> doesn't know if the resulting object is going to be called or not.
>
> HTH,
>
> Mark
> On 2024-04-17 2:07 a.m., Sven Bardos via pytho
x27;t do
that, so we decided to create a `zip` archive and download it on
agent. It works and it is pretty fast, and `python.exe` itself is
portable. The only problem is those scripts like `poetry.exe`.
___
python-win32 mailing list
python-win32@python.org
how to fix it in a proper way?
Thank you in advance,
Ilya.
_______
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32
Dear PyWin32 users,
We have been developing and distributing on Windows a large application
over the years. The application is of course in Python, and it gets
Cythonized and bundled up with py2exe for distribution.
Up until today everything was working fine. We have made no change to any
of the
I'm not sure what's going wrong here. Does fetching the list of
workspaces as a simple list work? That would be a workaround, and
feel free open an issue at https://github.com/mhammond/pywin32 since it
shouldn't break that way.
Cheers
On 2025-04-18 8:33 p.m., dornech via pyt
Hi All,
I am trying to debug Python Active Scripting, using Visual Studio. I am
100% sure it should work but I just cannot get it work.
I've installed the debug symbols of the Python version, and installed
Visual Studio Python Native Development tools.
I also set the "Debugging
Thank you Mark for the response. Appreciate your input.
Best
Wuping
-- Original Message --
From "Mark Hammond"
To "Wuping Xin" ; "python-win32@python.org"
Date 3/3/2025 10:24:18 AM
Subject Re: [python-win32] Python Active Scripting Debug
It ha
The problem is that for Python 3.11+, the frame object has changed,
hence axdebug is not built for it.
Question: Would this be fixed any time soon? This feature is
definitely needed for Python Active Script debugging. Also even with
other Python binding framework such as pybind11, Active
Forget it. I figured out.
W. X.
-- Original Message --
From python-win32-requ...@python.org
To python-win32@python.org
Date 3/1/2025 12:00:02 PM
Subject python-win32 Digest, Vol 258, Issue 1
Send python-win32 mailing list submissions to
python-win32@python.org
To subscribe
Hi,
I am working in python 64-bit, 3.7 environment. I want to install pywin32 to
conda-environment.
"pip install pywin32" installed pywin32 304 to my env. But I cannot "import
pywin32" from my jupyter notebook (No Module named 'pywin32'). I assumed, I
have to i
VERLAPPEDWINDOW | win32con.WS_CLIPCHILDREN
hwnd = win32gui.CreateWindow(
class_atom,
"Python Window",
style,
100, 100, 500, 400,
0, 0, 0, None
)
win32gui.ShowWindow(hwnd, win32con.SW_SHOWNORMAL)
win32gui.UpdateWind
Hi there,
I have simple question that is porbably not really a challenge for
experienced Pytohneers: I am struggling to get the signature object for
Example: let's assume I have a Python variable representing a EXCEL
Workbook object. I want to get an inspect.signature object for the
wor
I have defined an MS COM interface which I want to access from within Python. I
therefore have created a wrapper using the 'makepy' utility that come along
with the win32com package.
[
object,
dual,
...
]
interface IPuma7ScriptContextEx : IDispatch
{
:
[id(21), helpstri
Hi Guys,
I am trying to deploy Python (the latest version) through AD GPO or through
SCCM.
Since there’s no MSI Installer available on the python.org for the latest
versions, I used the python-3.9.1-amd64.exe with the following command line:
python-3.9.0.exe /quiet InstallAllUsers=1
101 - 164 of 164 matches
Mail list logo