Re: [python-win32] pythonservice.exe registration failed used by another process

2024-04-26 Thread Mark Hammond
On 2024-04-25 9:29 p.m., Jacob Nolan via python-win32 wrote: 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

Re: [python-win32] Dispatch vs EnsureDispatch performance

2024-04-17 Thread Mark Hammond
I'm mildly surprised by that - a profiler might show some low-hanging fruit, and/or might show different characteristics when many more functions are used. However, the primary reason for EnsureDispatch is for better support of the object model - there's far more context available and this

Re: [python-win32] Help in deciphering error

2024-04-15 Thread Mark Hammond
The first comment of https://github.com/mhammond/pywin32/issues/2155 has STR that doesn't involve pyinstaller or custom executables. If you can reproduce that, then you are probably facing the same problem, so the solution is probably to use Python 3.11 until more information about the 3.12

Re: [python-win32] __getattr__ Error

2024-03-18 Thread Mark Hammond
In general, if you `from win32com.client.gencache import EnsureDispatch`, you should be able to use `EnsureDispatch` anywhere you previously used plain `Dispatch`, and that code should be automatically generated and used for you. You generally only need to specify a special location or run

Re: [python-win32] About support for Windows XP and Internet Explorer, and possible leftover code

2024-03-18 Thread Mark Hammond
On 2024-03-18 1:57 a.m., Samuel Therrien wrote: I've been wondering, what's the state, intent, or policy on support for older OSes? I haven't seen it be mentioned (for example on the readme), yet still see a handle of areas of code referencing support for older OSes (XP, Vista, 7, 8.1, CE,

Re: [python-win32] __getattr__ Error

2024-03-18 Thread Mark Hammond
On 2024-03-18 9:12 a.m., Alok Bhargava wrote: Hi and thank you for your insightful guidance on Jannis' question.  I am running into similar issues as I work with a 3rd party COM app. This may be a silly question but could you point me to where the generated class files are located? I think

Re: [python-win32] Creating COM objects in a new process

2024-02-26 Thread Mark Hammond
I'm not aware of anything, other than arranging for the existing process to terminate. Cheers, Mark On 2024-02-26 4:12 a.m., Aviv Bergman wrote: Hi I'm trying to create several COM objects, each in a new process, but it seems DispatchEx is reusing the existing COM server process, is

Re: [python-win32] pywin32 incompatible with Python 3.12

2024-02-07 Thread Mark Hammond
pywin32 is overdue a release, compounded by the fact I no longer have a Windows machine available. As noted in the readme, github actions to create "artifacts" on some pushes, so, eg, https://github.com/mhammond/pywin32/actions/runs/7713784334/artifacts/1206054711 will have a recent wheel for

Re: [python-win32] Relevance of very outdated `Pythonwin/pywin/idle`

2024-01-12 Thread Mark Hammond
Some of those modules are actually used by pythonwin, particularly by pywin/scintilla - so while I agree the ability to update them is questionable, I don't think just killing the directory makes sense. Did you try to remove it? I'd be surprised if Pythonwin continues to work in that scenario.

Re: [python-win32] PythonService was unable to locate the service manager

2024-01-12 Thread Mark Hammond
if it works - if it does it would still point to user permissions. Mark *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 is failing to find Python itself. Where

Re: [python-win32] PythonService was unable to locate the service manager

2024-01-11 Thread Mark Hammond
The "" part sounds like it is failing to find Python itself. Where is Python installed? Is it possible the user running the service can't access that location? I believe Python being installed in the default location could cause this if the server is running as any other other than the user

Re: [python-win32] Exe not working correctly

2023-09-05 Thread Mark Hammond
Is it possible that the datetime module isn't being packaged? Directly importing that module at the top-level of your script might be enough to fix it. HTH, Mark On 2023-09-05 1:46 p.m., Nasser Issa wrote: Hello There, Currently been working with PyWin32 to interact with the Event Log

Re: [python-win32] Python Active Scripting Error - should I ignore it?

2023-06-29 Thread Mark Hammond
On 2023-06-29 2:29 p.m., Wuping Xin via python-win32 wrote: 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

Re: [python-win32] Question about pywin32 and Anaconda

2023-06-07 Thread Mark Hammond
pywin32_postinstall.py (https://github.com/mhammond/pywin32/blob/main/pywin32_postinstall.py) does not mention anaconda. The fact anaconda ships a version of pywin32 with it has caused problems though - maybe that's in a fork of theirs? If so, you need to ask them. Mark On 2023-06-07 9:18

Re: [python-win32] How to enable pywin to evaluate -X utf8 flag

2023-06-06 Thread Mark Hammond
xxx\winservice_launcher32.py"* I can't find any logs about failure windows doesn't help me.. image.png Thanks in advance for your availability. Best regards Il giorno mar 6 giu 2023 alle ore 15:05 Mark Hammond ha scritto: pythonservice.exe doesn't "wrap" python.exe -

Re: [python-win32] How to enable pywin to evaluate -X utf8 flag

2023-06-06 Thread Mark Hammond
t # stick with the default.* * *  I need to use pythonservice.exe but I don't understand how it wraps my python application. Is there a way to tell to pythonservice.exe to call python with some interpreter arguments? Thanks in advance. * * Il giorno gio 1 giu 2023 alle ore 17:0

Re: [python-win32] How to enable pywin to evaluate -X utf8 flag

2023-06-01 Thread Mark Hammond
https://github.com/mhammond/pywin32/blob/main/win32/Demos/service/nativePipeTestService.py is a demo of using a service using python.exe and supports specifying the command-line, so that might be an option? Mark On 2023-06-01 5:28 a.m., Gualtiero Scotti wrote: Hi, I need to start my python

Re: [python-win32] makepy.py "Some COM library"

2023-05-30 Thread Mark Hammond
Does something like `python -c "from win32com.client.gencache import EnsureDispatch; EnsureDispatch('ADODB.Connection.6.0');` work? That should generate directly into the expected output directory. Mark On 2023-05-30 1:44 p.m., Steven Manross wrote: Command I ran:

Re: [python-win32] pywin32 does not have win32ui under MSYS2

2023-05-25 Thread Mark Hammond
win32ui is a wrapper around the MS "MFC" library. I suspect that there are reasons that can't be built for MSYS2, but you'd need to ask whoever packages that version up - it's not released by the pywin32 project. Cheers, Mark On 2023-05-25 8:29 a.m., Kristiine Silinja wrote: Hi! I am

Re: [python-win32] Win32: -2147418113, 'Catastrophic failure'

2023-05-23 Thread Mark Hammond
On 2023-05-22 11:05 a.m., Pranav S Pawar wrote: Hello Team, My code was working fine from one week in jupyter notebook. Today i just did a kernel restart in jupyter notebook and my code stopped working. Not sure what happened after restart. Tried all options but not able to resolve. So

Re: [python-win32] (no subject)

2023-05-17 Thread Mark Hammond
I'm sorry, but you are very unlikely to find anyone on this list with erwin experience. pywin32 is a general purpose library that allows talking to *any* COM object, so there are literally hundreds and hundreds of different apps it can work with. I've never even heard of erwin and have no idea

Re: [python-win32] win32com, server/policy.py bug? policy.py Line 639

2023-04-17 Thread Mark Hammond
either a PR or issue on github for this, ideally with a complete repro. It might be quite some time (ie, many weeks) before I can look at this in more detail. Thanks, Mark Wuping -- Original Message -- From "Wuping Xin" To "Mark Hammond" Cc "Python-win

Re: [python-win32] in-process COM DLL in Python

2023-04-15 Thread Mark Hammond
You should be able to wrap a Person object - something like ob = win32com.server.util.wrap(Person(...)) - and just return that. You probably don't need the VARIANT dance, it should just work based on the type returned being a Dispatch wrapper. HTH, Mark On 16/4/2023 7:27 am, Wuping Xin

Re: [python-win32] Licensing status?

2023-04-05 Thread Mark Hammond
There are various LICENCE.txt files in subdirectories, which are canonical. These LICENCE.txt files pre-date the PSF licence (or the PSF!) even existing and this package has many many contributors from this week back to last century, so re-licensing is almost impossible. I don't think the PSF

[python-win32] Recommendations for releasing pywin32 without a local windows device?

2023-03-30 Thread Mark Hammond
Hey all,   I'm in the process of moving countries for a couple of years and for the first time in - um - forever - will find myself without a physical Windows machine. It seems unlikely I'll actually need one other than for pywin32 builds and testing. My primary device will end up as an M2

Re: [python-win32] pythoncom.Pumpwaitingmessages() overloaded

2023-03-28 Thread Mark Hammond
On 29/03/2023 5:38 am, Philip Carr wrote: Hi Im looking for help on pythoncom.PumpWaitingMessages(). I’m using it to connect to a Windows application that has a com object to stream stock prices. It works fine most of the time but when the rate of new events/messages gets too high (

Re: [python-win32] Pywin32 Windows Service not responding

2023-03-25 Thread Mark Hammond
The last pywin32 release was before 3.11 was officially released, so maybe try either 3.10 or pywin32-306 Mark On 25/03/2023 7:25 am, jeremy.farmer1206 via python-win32 wrote: Hi, I am looking for some assistance with utilizing pywin32 in order to create a Windows Service. I've tried to

[python-win32] [ANN] pywin32 build 306 released

2023-03-25 Thread Mark Hammond
Hi all, I'm happy to announce the release of pywin32 build 306. There are relatively few changes in this release: * Support for Python 3.6 was dropped, support for later versions was improved. * Add GetSystemPowerStatus (#2010, @CristiFati) * Add CascadeWindows (#1999, @CristiFati) *

Re: [python-win32] How to enable events for Python Active Scripting?

2023-03-13 Thread Mark Hammond
I'll have to use "win32com.client.connect.SimpleConnection()" to manually create the Source/EventSink connection. Wuping -- Original Message ------ From "Mark Hammond" To "Wuping Xin" Cc "Python-win32@python.org" Date 3/13/2023 10:55:03 PM Subject

Re: [python-win32] How to enable events for Python Active Scripting?

2023-03-13 Thread Mark Hammond
event; } interface _ITuesdayEvents {         Do_C_Event;         Do_D_event; }     coclass HostApplication     {         [default] interface IHostApplication;         [source] interface _IMondayEvents;         [source] interface _ITuesdayEvents;     }; -- Original Message -- From "Ma

Re: [python-win32] How to enable events for Python Active Scripting?

2023-03-13 Thread Mark Hammond
n: 617-527-4700 ------ Original Message -- From "Mark Hammond" To "Wuping Xin";python-win32@python.org Date 3/12/2023 10:54:23 PM Subject Re: [python-win32] How to enable events for Python Active Scripting? It's difficult to know what exactly you mean, but if it is how t

Re: [python-win32] How to enable events for Python Active Scripting?

2023-03-12 Thread Mark Hammond
It's difficult to know what exactly you mean, but if it is how to use IConnectionPoint etc from Python in general, then you should check out the following files in the distribution: com\win32com\demos\connect.py com\win32com\server\connect.py com\win32com\client\connect.py If it is about the

Re: [python-win32] possible data corruption when deleting iTunes playlist items

2023-03-06 Thread Mark Hammond
.Name at print time? -- Clayton Macleod If no one comes from the future to stop you from doing it, then how bad of a decision can it really be? On Mar 6, 2023, at 8:40 PM, Mark Hammond wrote: On 4/03/2023 9:55 am, Clayton Macleod wrote: Sorry, forgot to hit reply all. Been many years since I'v

Re: [python-win32] possible data corruption when deleting iTunes playlist items

2023-03-06 Thread Mark Hammond
On 4/03/2023 9:55 am, Clayton Macleod wrote: Sorry, forgot to hit reply all.  Been many years since I've used mailing lists, and I'm surprised anyone still does.  Heh.  Anyway... Perhaps this isn't very clear. I've found a case where the pywin32 COM library is causing data corruption I'm

Re: [python-win32] Object type puzzle

2023-01-03 Thread Mark Hammond
On 4/01/2023 12:58 am, Bob Kline wrote: I've made good progress on our project to port our XMetaL JScript macros to Python (see the thread from about a month ago referring to the project). All the macros (a couple of hundred of them) have been rewritten in Python, and they all appear to work

Re: [python-win32] pywin32 Documentation

2022-12-05 Thread Mark Hammond
Hi Brian, Thanks for your interest. I probably should have written more about this earlier. From my POV, the main considerations I have are: 1) Much of the documentation is inside the c++ source formatted via "autoduck" style comments. I really don't want to abandon this documentation, but

Re: [python-win32] Obsolete code paths and version-specific checks

2022-12-03 Thread Mark Hammond
On 3/12/2022 11:50 am, Samuel Therrien wrote: Hi! While working on adding annotations for typing support in pure python modules, I noticed a *lot*​ of conditions and code made to run on older versions of Python. Which are both EOL and no longer supported in pywin32. Removing those would

Re: [python-win32] Memory access violation using pywin32 as WSH

2022-11-29 Thread Mark Hammond
On 30/11/2022 9:09 am, Bob Kline wrote: So at least part of that puzzle is cleared up, though it's still somewhat unsettling that only seven calls to ScriptItem.Close() are made, regardless of how many ScriptItem objects have been instantiated during a session. The close method is

Re: [python-win32] Memory access violation using pywin32 as WSH

2022-11-29 Thread Mark Hammond
On 30/11/2022 3:06 am, Bob Kline wrote: Cranking up the microscope (or spelunking deeper, whichever metaphor you prefer), the first thing I'll say is that this code is devilishly complex. Here's what I've found in the latest pass. First, there's a minor bug at line 353 of pyscript.py [1],

Re: [python-win32] Memory access violation using pywin32 as WSH

2022-11-28 Thread Mark Hammond
It's been years since I've looked at this, but IIRC, a "script item" is whatever the host wants it to be - eg, in a HTML page, it would be anything between tags. I believe WSH would just use one for a script file. The Close() method will generally be called by the host - not calling this

Re: [python-win32] Looking for PyWin32 for Python 2.3.1

2022-11-15 Thread Mark Hammond
Looks like the last to support 2.3 was build 218 and can be found at https://sourceforge.net/projects/pywin32/files/pywin32/Build%20218/ Cheers, Mark On 16/11/2022 8:56 am, Paul Newton wrote: Hi Please don't ask why I would want to install such an old version of Python, but I have Python

Re: [python-win32] Welcome to the "python-win32" mailing list (Digest mode)

2022-11-08 Thread Mark Hammond
pythoncom.CLSCTX_LOCAL_SERVER means this COM object will be hosted by python.exe - so COM/office is going to look up the registry to get a command-line to execute. As written, that will just re-register the COM server - so yes, you do want that `localserver.serve()`. The default of

Re: [python-win32] [ANN] pywin32 build 305 released

2022-11-06 Thread Mark Hammond
On 6/11/2022 9:17 pm, Łukasz Jakubowski wrote: Hello, First, thanks for the update. You're welcome :) In my pywin32 installation notes I have noted that "pywin32_postinstall.py -install" (not needed now?) It's still as needed as it ever was. and "pyscript.py --register" (to enable

[python-win32] [ANN] pywin32 build 305 released

2022-11-06 Thread Mark Hammond
Hi all, I'm happy to announce the release of pywin32 build 305. This release has quite a few changes under the hood, updating our use of older deprecated Python functions etc - so there's some risk of unintended consequences. Another unintended change is that .exe installers are

Re: [python-win32] pywin32 in python 64bit-3.7 environment

2022-07-05 Thread Mark Hammond
On 6/07/2022 7:13 am, De Silva, Thushara via python-win32 wrote: 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

Re: [python-win32] Regarding Licence

2022-06-23 Thread Mark Hammond
Use is royalty free and you don't need permission - good luck with your project. Mark On 23/06/2022 4:12 pm, Nithyashree wrote: Hi, I would like to use pywin32 Api for my project. Is this royalty free? Do I need prior permissions or is there anything of that sort? I saw the Licence in

Re: [python-win32] Import Certificate with Private Key to Current Computer Certificate store

2022-05-26 Thread Mark Hammond
Hi! I know almost nothing about certificate stores, but as luck would have it, someone did report some issues recently, so it turns out there is a PR that (a) tries to fix a couple of issues and (b) adds a test that adds certificates to the store - see

Re: [python-win32] Python 3.11 and pywin32 304

2022-05-11 Thread Mark Hammond
On 12/05/2022 7:23 am, Scorby, Gary via python-win32 wrote: I’ve looked to see if anyone else is having this issue.  I haven’t found anything.  When trying to call a function in the interactive window I get what you see below.  Appears to be trying to access a deprecated method.  I’d like to

Re: [python-win32] [ANN] pywin32 build 304 released

2022-05-02 Thread Mark Hammond
On 3/05/2022 5:31 am, Steven Manross wrote: Thanks for the new version! Considering I've been on build 227 forever, I tried upgrading my webserver's pywin32 build to 304 with a base of Activestate Python 3.8 (64-bit), and now I'm getting errors in my ASP pages ("500" Server Error), and in

[python-win32] [ANN] pywin32 build 304 released

2022-05-02 Thread Mark Hammond
Hi all, I'm happy to announce the release of pywin32 build 304. There are a number of changes in this release with the significant ones listed below. Note: * There are no .exe installers for 32-bit 3.10+ due to Python dropping support for bdist_wininst. * arm64 wheels for 3.10 and 3.11

Re: [python-win32] Pythoncom PROPVARIANT

2022-04-25 Thread Mark Hammond
On 26/04/2022 5:00 am, Nicholas Pfeiffer wrote: Hi there, Where is the PROPVARIANT class located in the pythoncom library? The docs are not helpful about this: http://timgolden.me.uk/pywin32-docs/PyPROPVARIANT.html I've seen postings

Re: [python-win32] pywin32-223 support request

2022-04-18 Thread Mark Hammond
That uninstall capability is provided by distutils' support for .exe installers, and last I looked that did not offer unintended install or uninstall support - but things might have changed. Another option is to use pip to both install and uninstall. Cheers, Mark On 16/04/2022 4:33 am,

Re: [python-win32] zmq under win32service

2022-03-08 Thread Mark Hammond
I admit I've never fully understood the threading model used to control services, and agree that almost every "real" service will create threads - but it's not clear to me that they *must* - eg, I've seen demo services that use a similar loop, and

Re: [python-win32] zmq under win32service

2022-03-07 Thread Mark Hammond
I've no clear idea what might be going wrong, but: * The `while True` should be fine - it obviously has limitations, but will work in the simple case. * You need some way of working out *what* is going wrong before you can work out *why*. It's possible the `print` statements are failing - I

Re: [python-win32] What happens in a Python service in case of exception thrown?

2022-03-02 Thread Mark Hammond
On 3/03/2022 4:21 pm, Siyuan Ren wrote: I'm trying to subclass win32serviceutil.ServiceFramework in order to create a Windows service in Python. I vaguely understand how each stage of service works, but I wonder, what happens if any of the python code throws an exception? Will the service 

[python-win32] [ANN] pywin32 build 303 released

2021-12-19 Thread Mark Hammond
Hi all, I'm happy to announce the release of pywin32 build 303. There are a small number of changes in this release, but maybe virtualenv will work better! 3.11 gets support, but no .exe installers for 32-bit 3.10+ due to Python dropping support for bdist_wininst. Downloads are available

Re: [python-win32] Outlook Add-In Demo Question ... A runtime error occurred during the loading of the com add-in

2021-12-08 Thread Mark Hammond
Another possibility for the failure is the environment office is running under (which broadly speaking can be described as the PATH). Back in the day, it was very common for Python and pywin32 to end up sticking stuff in the system32 directory, then things like COM would work in almost every

[python-win32] [ANN] pywin32 build 302 released

2021-10-10 Thread Mark Hammond
Hi all, I'm happy to announce the release of pywin32 build 302. There are a relatively small number of visible changes in this release, although there are quite a few changes underneath the covers (eg, the entire repository has been formatted with `black`, so files with a mix of tabs and

Re: [python-win32] help needed, missing pythoncomload[37].dll ?

2021-10-06 Thread Mark Hammond
On 7/10/2021 12:07 am, Lewis, Michael L wrote: Hi, Working on an internal system that we’re trying to update (sadly we were still on Python 2.7 ☹… One think I noticed is amongst the scripts we have is a dependency on: pythoncomloader27.dll (which appears at least to have been part of

Re: [python-win32] pywintypes.error: (5, 'OpenEventLogW', 'Access is denied.')

2021-09-16 Thread Mark Hammond
On 16/09/2021 7:17 pm, Ruggero Paolo Basile wrote: OK , let's explain the case My goal is to read the event log of the remote windows machine. I have experienced the *wmi library,* the wmi problem is that I have to create parsers, I have not found any code. On the remote machine I have no

Re: [python-win32] pywintypes.error: (5, 'OpenEventLogW', 'Access is denied.')

2021-09-16 Thread Mark Hammond
On 16/09/2021 6:41 pm, Ruggero Paolo Basile wrote: ok , i have the username and password of local machine, i'am a starter in python Tim noted that the issue is what permissions you have on the *remote* machine - having the username and password of the local machine means nothing to the

Re: [python-win32] Troubleshooting with moving Outlook emails to subfolders

2021-08-18 Thread Mark Hammond
On 19/08/2021 4:37 am, Giraud Ludovic (AMUNDI) wrote: Hello Mark, I am stuck on this issue: https://github.com/mhammond/pywin32/issues/1743 I am trying to move outlook emails into subfolders and this works well most of the time. However in some cases, probably when a copy of the email I am

Re: [python-win32] COM: Minimal example of a custom server working with DispatchWithEvents()

2021-07-31 Thread Mark Hammond
On 1/08/2021 12:21 am, William Belanger wrote: Hi, Thank you for the follow up. Perhaps I did not express my need clearly enough, so I made this minimal example; # https://gitlab.com/-/snippets/2155778 import pythoncom import sys

Re: [python-win32] COM: Minimal example of a custom server working with DispatchWithEvents()

2021-07-30 Thread Mark Hammond
On 30/07/2021 11:24 pm, William Belanger wrote: Hi, However, products are free to define events in whatever makes sense for them - eg, the object could take a plain IDispatch and try and dynamically query and deliver events to the methods here. If that's what the app in

Re: [python-win32] Troubleshooting with pip install pywin32 using WSL2:Ubuntu and Python 3.8.8

2021-07-29 Thread Mark Hammond
On 29/07/2021 11:05 pm, Giraud Ludovic (AMUNDI) wrote: Hello, When I run pip install pywin32 in WSL2:Ubuntu using Python 3.8.8 I get the following error log: WSL is a linux environment - pywin32 simply doesn't work there. You can install it via a Windows command-prompt, or in WSL stick to

Re: [python-win32] COM: Minimal example of a custom server working with DispatchWithEvents()

2021-07-28 Thread Mark Hammond
On 29/07/2021 9:56 am, William Belanger wrote: Hi, There is no typelib file unfortunately. The interface needs to communicate with Antidote's API by creating a COM server which exposes the methods defined in the AdapteurAntidote class. The problem is that the widget queried (a

Re: [python-win32] COM: Minimal example of a custom server working with DispatchWithEvents()

2021-07-28 Thread Mark Hammond
On 28/07/2021 7:58 am, William Belanger wrote: Hi everyone, I'm trying to make a cross-platform Python interface for a third-party API (Druide Antidote). The D-Bus part is done and working (https://gitlab.com/-/snippets/2151173 ), it consist of a

[python-win32] [ANN] pywin32 build 301 released

2021-05-30 Thread Mark Hammond
Hi all, I'm happy to announce the release of pywin32 build 301. There are a number of relatively small changes in this release. Downloads are available at: https://github.com/mhammond/pywin32/releases/tag/b301 and via pypi. For initial support (eg, to ask questions about the release

Re: [python-win32] how to access IID_IPropertyStore interface

2021-05-02 Thread Mark Hammond
On 3/05/2021 4:37 am, Piotr Miedzik wrote: I'm trying to write Jump Lists without PyQt5. In fact I'm rewriting this source https://github.com/qt/qtwinextras/blob/18bee52fe48500bca46de7e47d134940c48b524c/src/winextras/qwinjumplist.cpp#L141 To set title or separator I need to access

Re: [python-win32] pywin32 building under mingw64/msys2

2021-03-03 Thread Mark Hammond
There is some work going on in https://github.com/mhammond/pywin32/pull/1612, but that's largely stalled at the moment. Frankly, I've no interest in this myself, so if it happens it would need to be driven by contributors. Cheers, Mark On 4/03/2021 1:27 am, Kristiine Silinja wrote: Good

Re: [python-win32] Compiling pywin32 with PyOxidizer

2021-02-02 Thread Mark Hammond
On 2/02/2021 11:54 pm, Will Deem wrote: Good morning Pywin32 mailing list, I appear to be running into an issue compiling my program using pyoxidizer with pywin32. It appears there is some reliance on the __file__ attribute, which is breaking as pyoxidizer is loading the modules into memory

Re: [python-win32] Error: VARIANT Type is unknown

2021-01-21 Thread Mark Hammond
On 21/01/2021 10:00 pm, Olle Pontén wrote: Hello! I'm quite new to the pywin32 package (as in I have never interacted with it before). I'm currently trying to implement a python interface to a win32 bit program that I can connect to using the ordinary win32com.client.Dispatch method. This

[python-win32] [ANN] pywin32 build 300 released

2020-11-13 Thread Mark Hammond
Hi all, I'm happy to announce the release of pywin32 build 300. Significantly, this is the first release to exclusively support Python 3 - Python 2 is no longer supported. All Python source files in the repo are now in Python 3 syntax. To celebrate, the build numbers have jumped to 300 -

Re: [python-win32] IIS and ASP: If blocks that span multiple code blocks

2020-11-02 Thread Mark Hammond
IIS/ASP sends Python different strings to evaluate, and Python evaluates them individually. It's much like wanting Python code such as: if foo: bar() To be handled in Python by using: >>> exec("if foo:\n") >>> exec(" bar()\n") Which doesn't work. The semantics are largely defined by the

Re: [python-win32] Setting service exit code on stop

2020-08-09 Thread Mark Hammond
Do you mean the process exit code? There's no direct way to influence that, although you can probably just arrange to kill your own process - you'll need to manually ensure you've set the service status before you do this. See also https://github.com/mhammond/pywin32/issues/1563 where there's

Re: [python-win32] Question about DDE Advise mode

2020-08-02 Thread Mark Hammond
I'm afraid I can't remember almost anything about DDE :) I suggest you find the modules and examples to determine this. Cheers, Mark On 2/08/2020 4:57 pm, Hylston N. Barbosa wrote: Hi all, I would like to know if pywin32 supports the method conversation.advise or only conversation.request?

Re: [python-win32] Pythonwin.exe - trouble on the starting line

2020-07-21 Thread Mark Hammond
Try running the command listed in README.md under the "Installing via PIP" section. Mark On 21/07/2020 9:37 am, ejohn...@earthlink.net wrote: I wanted to look into using Pythonwin to see how difficult it would be to build GUIs using MFC. I'm having problem in two different places: 1) On

[python-win32] [ANN] pywin32 build 228 released

2020-06-13 Thread Mark Hammond
Hi all, I'm happy to announce the release of pywin32 build 228. If all goes well, this release will be the last release that supports Python 2! If no significant issues are reported in the Python 2 builds of this release, I'll be removing all support for Python 2 from the repository,

[python-win32] [ANN] pywin32 build 227 released

2019-11-13 Thread Mark Hammond
Hi all, I'm happy to announce the release of pywin32 build 227 (although slightly sad it had to be made so quickly after 226 due to issues with that release and virtual environments - apologies for the inconvenience!) Downloads are available at:

[python-win32] [ANN] pywin32 build 226 released

2019-11-09 Thread Mark Hammond
Hi all, I'm happy to announce the release of pywin32 build 226. Downloads are available at: https://github.com/mhammond/pywin32/releases/tag/b226 and via pypi. For initial support (eg, to ask questions about the release etc), please contact this mailing-list (python-win32@python.org).

[python-win32] [ANN] pywin32 build 225 released

2019-09-14 Thread Mark Hammond
Hi all, I'm happy to announce the release of pywin32 build 225. Downloads are available at: https://github.com/mhammond/pywin32/releases/tag/b225 and via pypi. For initial support (eg, to ask questions about the release etc), please contact this mailing-list (python-win32@python.org).

[python-win32] [ANN] pywin32 build 224 released

2018-09-28 Thread Mark Hammond
Hi all, I'm happy to announce the release of pywin32 build 224. There are a few changes in this release, but the most significant one is that many "date" related issues with build 223 in Python 3.7 should be fixed. This should help when installing pywin32 via pypi. While I still consider

Re: [python-win32] Questions regarding pypiwin32 and python 2.7

2018-05-02 Thread Mark Hammond
On 3/05/2018 9:49 am, Daniel Spisak wrote: Mark,      If its possible, could the wheels be published? I have an installer I need to update which I have to give wheels to in case of an offline install scenario. Thanks for the explanation of everything, there wasn't exactly a dearth of

Re: [python-win32] Questions regarding pypiwin32 and python 2.7

2018-05-02 Thread Mark Hammond
On 3/05/2018 6:39 am, Daniel Spisak wrote: Hello! I am trying to do some updates of some systems that utilize pypiwin32 and python 2.7 and I have some confusion about how to go about this. First, a few things: What is the difference between pypiwin32 and pywin32? Is it just packaging in

Re: [python-win32] Bug reporting

2018-03-05 Thread Mark Hammond
That sounds fine to me. On 5/03/2018 6:53 am, Vernon D. Cole wrote: Here is what I propose: 1) This time, rather than copy a selected (major) part of the adodbapi source files over to their pywin32 directory, I would copy _all_ of the files. 2) Adjust adodbapi/MANIFEST.in and setup.py to

Re: [python-win32] Bug reporting

2018-02-26 Thread Mark Hammond
Feb 25, 2018 at 7:35 PM, Bob Kline <bkl...@rksystems.com <mailto:bkl...@rksystems.com>> wrote: On Sun, Feb 25, 2018 at 6:18 PM, Mark Hammond <mhamm...@skippinet.com.au <mailto:mhamm...@skippinet.com.au>> wrote: > 1) There's a relatively easy fix that

[python-win32] [ANN] pywin32 build 223 released

2018-02-25 Thread Mark Hammond
Hi all, I'm happy to announce the release of pywin32 build 223. The only significant change in this release is to help pywin32 when being installed as a wheel (ie, via pypi) - the pywin32_system32 directory is now added to PATH. Thanks to @xoviat via

Re: [python-win32] Bug reporting

2018-02-25 Thread Mark Hammond
On 26/02/2018 1:12 am, Bob Kline wrote: On Sun, Feb 25, 2018 at 12:31 AM, Mark Hammond <mhamm...@skippinet.com.au> wrote: I'm afraid Bob is going to get quite frustrated if he gets upset about responses taking more than a few days to come in. I'm going to assume you hadn't ye

Re: [python-win32] Bug reporting

2018-02-24 Thread Mark Hammond
On 22/02/2018 4:04 am, Vernon D. Cole wrote: Ummm ... "I'm buried under a project right now, and I won't be able to get back to you until next Friday." I'm afraid Bob is going to get quite frustrated if he gets upset about responses taking more than a few days to come in. While pywin32 has

[python-win32] [ANN] pywin32 build 222 released

2018-01-20 Thread Mark Hammond
Hi all, I'm happy to announce the release of pywin32 build 222. There are some notable changes with this release: We have moved to github for development and releases. https://github.com/mhammond/pywin32 is the new home of pywin32 and all builds will be released there. The build process

[python-win32] Moving pywin32 source from Sourceforge to Github

2017-10-09 Thread Mark Hammond
Hi all, Sourceforge appears to be in its death throes, and with Python moving to git/github I've decided to do the same. I hope that this might encourage more contributors, particularly for better supporting PyPi/pip, creating wheels etc. Effective immediately, the new repo for pywin32 is

[python-win32] [ANN] pywin32 build 221 released.

2017-03-28 Thread Mark Hammond
Hi all, I'm happy to announce the release of pywin32 build 221. This release has addressed a number of bugs with previous builds (most notably failure to install in Python 3.6) and has added a few new features, mostly around win32com.client.exchange - I've appended the change log at the

Re: [python-win32] Problem registering COM server at installation time

2016-01-31 Thread Mark Hammond
On 17/01/2016 6:51 AM, Malte Forkel wrote: Hi, I'm trying the register a COM server using the install script of a built distribution, created with the bdist_wininst format of distutils. But the script fails with a message that MSVCR90.dll can't be found. Registering the server after the

Re: [python-win32] Have icon overlays persist after machine restart in Python

2016-01-12 Thread Mark Hammond
t. Thanks for bearing with me Alex On Mon, Jan 11, 2016 at 5:43 PM, Mark Hammond <mhamm...@skippinet.com.au <mailto:mhamm...@skippinet.com.au>> wrote: setup_2.py has: > setup(console=['overlays.py']) So that's going to create a console program with no COM

Re: [python-win32] Calling unregistered COM libraries via Python

2016-01-11 Thread Mark Hammond
On 12/01/2016 4:21 AM, Manowitz, David wrote: Is it possible, either via the win32com extensions or the comtypes package (or some other package), to call to an unregistered COM library? It doesn’t seem so, but I wanted to check. COM uses the registration info to locate and load the library,

Re: [python-win32] Have icon overlays persist after machine restart in Python

2016-01-11 Thread Mark Hammond
stions/4619701/python-64-bit-dll-com-server-registration-problem-on-64-bit-windows-7 It looks like this example came out of a mail thread with you back in 2011 so I'll try to follow the advice there and report back. Thanks again for the help Mark. On Wed, Jan 6, 2016 at 7:19 PM,

[python-win32] [ANN] pywin32 build 220 released.

2016-01-11 Thread Mark Hammond
Hi all, I'm happy to announce the release of pywin32 build 220. This release has addressed a number of bugs with previous builds (most notably failure to install in Python 3.5) and has added a few new features - I've appended the change log at the end of this mail. Downloads are available

Re: [python-win32] Have icon overlays persist after machine restart in Python

2016-01-06 Thread Mark Hammond
My guess is that the environment (eg, PATH, PYTHONPATH etc) for the new explorer instance isn't setup correctly - how is the explorer.exe process started when it *does* work? It's hard to answer without more info, but Python ends up inside explorer.exe, so the environment that explorer.exe

Re: [python-win32] Have icon overlays persist after machine restart in Python

2016-01-06 Thread Mark Hammond
that functions independently of any installed Python - py2exe bundles Python itself, pywin32, etc in just this way. Last I tried though, it only worked with python 2.x Mark -Alex On Wed, Jan 6, 2016 at 5:37 AM, Mark Hammond <skippy.hamm...@gmail.com <mailto:skippy.hamm...@gmail.com&g

Re: [python-win32] Windows 10

2015-10-28 Thread Mark Hammond
On 26/10/2015 10:07 AM, Laura Creighton wrote: Can I suggest a mailing list name change to reflect 64 bit windows? python-windows would be my suggestion python-windows would be a better name, but I don't think it is worth the disruption of changing the email address of the list. I think

  1   2   3   4   5   6   7   8   9   >