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

PyWin mismatch error #731

Closed
ghost opened this issue Sep 22, 2016 · 8 comments
Closed

PyWin mismatch error #731

ghost opened this issue Sep 22, 2016 · 8 comments

Comments

@ghost
Copy link

ghost commented Sep 22, 2016

I downloaded/installed the latest Python for 64 bit system
(python-3.6.0b1-amd64) for use on a Win10 system.

figuring that this is now the latest/greatest Python, I then download PyWin
(pywin32-220.win-amd64-py3.6)

I get the following error - what combination should I be using?

Reported by: swsolutionsnv

Original Ticket: pywin32/bugs/731

@ghost
Copy link
Author

ghost commented Oct 30, 2016

I'm getting the exact same error. Looks like the 64-bit version is mistakenly expecting the 32-bit version of Python3.6 in the registry. See also https://sourceforge.net/p/pywin32/bugs/702/

I've added a simple registry hack to work around the problem. If your installation is in a different location (i.e., not on C:, and/or not for all users), you'll have to edit it to take that into account. Hope this helps.

Original comment by: ivanlan9

@ghost
Copy link
Author

ghost commented Dec 23, 2016

Also getting the same error. Python 3.6-amd64 was installed for "all users", but pywin32-220.win-amd64-py3.6 won't install, expecting 32-bit.

Original comment by: metolone

@ghost
Copy link
Author

ghost commented Jan 8, 2017

Same as markt with the additon of installing in C:\python36
The error is "Python version 3.6-32 required, which was not found in registery"

It shouldn't be looking for this registery entry since it is not 3.6-32, it's only 3.6

HKLM/SOFTWARE/Python/PythonCore/3.6/PythonPath exists and the value is C:\Python36\Lib;C:\Python36\DLLs\

The install path is correct as well.

Also, After failing to install the next window has place to insert the two paths but you can't type or paste into them.

Original comment by: dj-sylvester

@ghost
Copy link
Author

ghost commented Jan 9, 2017

Worked as expected, thanks a lot for this fix Ivan!

Original comment by: guillaumecombot

@ghost
Copy link
Author

ghost commented Jan 9, 2017

Problem solved using Ivan fix

Original comment by: guillaumecombot

@ghost
Copy link
Author

ghost commented Jan 12, 2017

Why not repair the install package? This fix introduces rubbish in the registry that can impact on other python packages. And you have to remove the keys manually after the installation. It would be better change directly the installation package to solve this problem and to let next users don't worry about the problem.

Original comment by: hectorrr

@ghost
Copy link
Author

ghost commented Jan 19, 2017

I have simply renamed the path:

HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\3.6-32

To:

HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\3.6

Apparently everything works correctly: shell, import, pip... and installation of pywin32

Original comment by: tonioant

@ghost ghost assigned ghost and unassigned ghost Oct 24, 2017
@Avasam
Copy link
Collaborator

Avasam commented Mar 14, 2024

.exe installers are now deprecated #1939 and wheels for all bitness are available on PyPI

@Avasam Avasam closed this as completed Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant