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-64 fails to install on Win 7-64/Py 3.5-64 #706

Closed
ghost opened this issue Nov 12, 2015 · 3 comments
Closed

pywin32-64 fails to install on Win 7-64/Py 3.5-64 #706

ghost opened this issue Nov 12, 2015 · 3 comments

Comments

@ghost
Copy link

ghost commented Nov 12, 2015

I just did a clean install of Python 3.5 64-bit into Windows 7 64-bit SP1.
I then installed pywin32. In both cases I used Admin privileges.

Unfortunately, at the end of the pywin32 install I got this error message displayed in the installer window:

Traceback (most recent call last):
File "", line 613, in
File "", line 321, in install
File "", line 159, in LoadSystemModule
File "C:\Program Files\Python 3.5\lib\imp.py", line 342, in load_dynamic
return _load(spec)
File "", line 693, in _load
File "", line 666, in _load_unlocked
File "", line 577, in module_from_spec
File "", line 903, in create_module
File "", line 222, in _call_with_frames_removed
ImportError: DLL load failed: The specified module could not be found.

The packages I used:
python-3.5.0-amd64.exe
pywin32-219.win-amd64-py3.5.exe

Reported by: m_n_summerfield

Original Ticket: pywin32/bugs/706

@ghost
Copy link
Author

ghost commented Dec 7, 2015

Not sure if it's the same problem, but I hit a missing vc redist file in the post-install scripts going this route, and manually installed vc redist.If you install the missing vcredist for vc2015, does it work for you?

Original comment by: epu

@ghost
Copy link
Author

ghost commented Dec 11, 2015

I just had the same issue.
The problem is that Python 3.5 is built with the VS 2015 (non XP) CRT and the pyWin32 pyd dll's are built with VS 2010 CRT.
Therefore DLL loads fail if VS 2010 CRT isn't found.
Note though that I don't think Python 35 actually runs the VS2015 redist - looks like the vcruntime140.dll just sits in the root Python folder. (Which I believe is a bad thing since VC CRT updates will miss this.)

So in any case I suggest a pyWin32 35 rebuild using the same runtime as Python 35 - makes sense right? Who knows you might get heap corruption between the different CRT's...

Original comment by: bmiller_qw

@Avasam
Copy link
Collaborator

Avasam commented Mar 14, 2024

.exe/binary installers are now deprecated #1939 and wheels for all bitness are available on PyPI
This issue should also be fixed in pywin32>=220

@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