Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyWin32: The specified procedure could not be found / Entry-point not found Errors? #193

Open
dougransom opened this issue Apr 17, 2024 · 2 comments

Comments

@dougransom
Copy link
Member

If this happens during post_install script of pywin32 or during python running (ie within natlink) then
From https://pypi.org/project/pywin32/

In almost all cases, this tends to mean there are other pywin32 DLLs installed in your system, but in a different location than the new ones. .

Most likely if this happens, there are old pythons kicking around with pywin32 installed.

Note this error can happen in dragon, but perhaps not in other python environments, because it seems to be random which set of pywin32 dlls are picked up. So your command line tests might work fine. Or vice versa.

It is recent that pywin32 is a prerequisite for natlink (via dtactions). Unimacro required pywin32 since time immemorial.

@LexiconCode
Copy link
Member

LexiconCode commented Apr 17, 2024

"Installing globally
Outside of a virtual environment you might want to install COM objects, services, etc. You can do this by executing:

python Scripts/pywin32_postinstall.py -install
From the root of your Python installation.

If you do this with normal permissions it will be global for your user (a few files will be copied to the root of your Python install and some changes made to HKCU). If you execute this from an elevated process, it will be global for the machine (files will be copied to System32, HKLM will be changed, etc)"

I will test but we don't need to have it globally as admin but per user for python virtual environment.

quintijn added a commit to dictation-toolbox/dtactions that referenced this issue Apr 27, 2024
* try to get win32 function running... (solved after win32_postinstall ran without errors, cleaning up a lot of pywin32 installs was needed, see dictation-toolbox/natlink#193)
* simplified extenvvars, getFolderFromLibraryName,
* try to specify setClipboard function spurious error, (issue #16)
@quintijn
Copy link
Contributor

quintijn commented Jun 6, 2024

LexiconCode, could you, at least the explanation of Doug, include this issue in a problems section of your Natlink documentation?

Thanks, Quintijn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants