Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python3.12 + PyWin32
#1
Hi,

is Python 3.12 with PyWin32 306 usable with Quick Macros 2?

Python 3.11 with PyWin32 306 works without problems.

Using Python 3.12, the
correct Dlls (pythoncom312.dll, pywintypes312.dll) are loaded,
but I get the error

PyAddCode error: 0x800A017C,
    A script engine for the specified language can not be created.
#2
Possibly not usable. Python 3.11 works, 3.12 not, don't know why.

To install I used these steps:

1. Download Python 32-bit (not 64-bit) from https://www.python.org/downloads/windows/
2. Uninstall other versions of 32-bit Python.
3. Run the downloaded Python installer as administrator.
4. Check "Add python.exe to PATH".
5. Install.
6. Run cmd as administrator. Run it directly from explorer (eg Start menu), else it may inherit old environment variables.
7. In cmd run: where python
    It should print one or more paths. One of them must be of the new installed 32-bit Python. Copy it without "\python.exe" to the clipboard.
8. In cmd change current directory to the copied. Example:
    cd C:\Users\me\AppData\Local\Programs\Python\Python312-32
9. In cmd run: python -m pip install --upgrade pywin32
10. In cmd run one of the following. The first installs just what need for QM, the second something more.
    python Lib\site-packages\win32comext\axscript\client\pyscript.py
    python Scripts/pywin32_postinstall.py -install
11. Exit QM (not just close window). Run QM again. Now QM Python functions should work.

---

In LibreAutomate you can use Python too:
https://www.libreautomate.com/forum/foru...php?fid=25
#3
Hi Gintaras,

I did the same installation steps that you did but without success.
In installation step 8 you say
"...cd C:\Users\me\AppData\Local\Programs\Python\Python312-32"
so installed Python 3.12.

Now to be absolutely clear:
Is your statement with regard to installation step 11 and Python 3.12
1) Now QM Python functions should work but actually don't work
or
2) Now QM Python functions should work and in fact work.

Thanks so much for your support!!
#4
My results are the same.
I did these installation steps for v3.11, and QM Python functions worked.
Then I did the same installation steps for v3.12, and QM Python functions didn't work.
Then tried both again, and results were the same. v3.11 OK, v3.12 no.
#5
Exactly the same issue:
https://github.com/mhammond/pywin32/issues/2137


Forum Jump:


Users browsing this thread: 1 Guest(s)