Skip to content

DLL load failed #1142

@gbear605

Description

@gbear605

I'm trying to run Python code that imports win32com.client. I installed a clean install of Python 3.6.4 and pywin32-221.win32-py3.6.exe.

I'm on 32 bit Window 10.

When I tried to run my code from IDLE, it gave the following traceback:

Traceback (most recent call last):
  File "C:\Users\gbear605\Downloads\StarShoot.py", line 4, in <module>
    import win32com.client
  File "C:\Users\gbear605\AppData\Local\Programs\Python\Python36-32\lib\site-packages\win32com\__init__.py", line 5, in <module>
    import win32api, sys, os
ImportError: DLL load failed: The specified module could not be found.

I noticed that in File Explorer, there was also an option for "Edit with Pythonwin" when I right-clicked on my Python source file, so I tried that. It errors by saying that it is missing "VCRUNTIME140.dll," so I installed the Visual C++ Redistributable Packages. After installing that, I get the same traceback in IDLE but Pythonwin now errors with "Still can't get my hands on win32ui."

However, if I directly open Pythonwin and then run the file, it works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions