-
Notifications
You must be signed in to change notification settings - Fork 796
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 fails when on any drive other than C: #753
Comments
This works fine for me - I'm guessing something in your environment (eg, PATH) has a relative path rather than a fully-qualified path which includes the drive letter. Original comment by: mhammond |
I tried it on another machine, and the problem did not occur. That machine was running Windows 10. The machine where the problem occurred was running Windows 7. What version of Windows did you use to test? Original comment by: wecsam |
I checked the PATH variable on the Windows 7 machine, and all of the paths in PATH are absolute. Original comment by: wecsam |
My development machine still runs Windows 7 Original comment by: mhammond |
Hm, here is the full PATH variable. I'll try to spot which DLL is failing to load on Monday.
Original comment by: wecsam |
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 resolve your issue. |
If the current working directory is not in the C: drive, then importing the
win32api
module will fail.As you can see in the example above, when the command prompt is in the I: drive, the import statement fails. If the user switches to the C: drive and tries again, then the import statement succeeds.
Reported by: wecsam
Original Ticket: pywin32/bugs/753
The text was updated successfully, but these errors were encountered: