-
Notifications
You must be signed in to change notification settings - Fork 810
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
DLL load failed on Python 3.4b1 #661
Comments
Digging into the issue a bit, I inspected the .pyd file with Dependency Walker and found that it's unable to load pywintypes34.dll. I see that file is installed at $Lib/site-packages/pywin32_system32. Doing a search around, it appears the issue is that the post install isn't being invoked. Perhaps I'm not invoking the installer with the proper privileges. Original comment by: jaraco |
I ran the installer using "Run as Administrator" from Windows explorer, and it seemed to install just fine this time. Sorry for the noise. Original comment by: jaraco |
The problem has re-emerged, apparently spontaneously. I uninstalled and re-installed (again using Run as Administrator), and the problem persists. Original comment by: jaraco |
I was able to work around the issue by running pywin32_postinstall.py -install; I won't be surprised if the issue arises again. I'm using Windows 8.1. Perhaps it has some protections against installing files to System32? Original comment by: jaraco |
I just ran into the same issue using the just officially released python 3.4.0 64 bit version. I am also using Windows 8.1 64 bit. The workaround by J. Coombs also worked for me. Other than that I had to revert to python 3.3.5 with the pywin32 3.3 extensions to use win32com; I don't have the python working skills to add much more information than a confirmation of the problem. Original comment by: garydyr |
In case it's relevant, with a non-official installer (from http://www.lfd.uci.edu/~gohlke/pythonlibs/#pywin32 ), I had this symptom on Windows 7 x64 using Python 3.4.0 32 bit:
I tried running the installer using "Run as administrator" didn't help. I finally just copied the files:
Original comment by: mdengler |
I have the same problem with the win32 official build for 3.4.0 on Windows 7 64 bit. Installing pywin32 as administrator did not solve it, but running pywin32_postinstall.py -install as suggested did. Original comment by: nmusatti |
EDIT: Accidentally left this comment on the wrong page... sorry Original comment by: flutefreak7 |
Tagging @jaraco as the original SourceForge issue creator. |
Since 71afa71, the Python 3.7 has also reached EOL (meaning no security fixes/support) and I'd recommend migrating over to 3.8+ (see #2207) .exe installers are now deprecated #1939, so you should install from PyPI (ie: Given the sheer amount of "ImportError: DLL load failed" issue duplication and old history, I'd like to consolidate the current state of these issues. So I'll close and reference back any issue that only has comments showing the issue:
Please also try https://github.com/mhammond/pywin32#troubleshooting before opening a new issue, or let us, and others, know if it did fix your issue. |
I've installed pywin32 218 for amd64, but after installing, import win32com yields:
This is on Python 3.4b1 64-bit. I suspect this is simply an API incompatibility with the early-compiled release for 3.4. Is a new release required, or is the current 218 release expected to work with 3.4b1?
Reported by: jaraco
Original Ticket: pywin32/bugs/661
The text was updated successfully, but these errors were encountered: