Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » [PyDev] win32com ImportError: DLL load failed(win32com dll load fail)
[PyDev] win32com ImportError: DLL load failed [message #1730463] Tue, 26 April 2016 02:49 Go to next message
Andrew Yang is currently offline Andrew YangFriend
Messages: 1
Registered: April 2016
Junior Member
Hello,

I just installed win32com for Python and it's working well in IDLE, that is, I can import win32com without any problem. But in Eclipse, I always get this error message as follows.

import win32com.client as win32
File "C:\Python27\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 tried to get rid of Python as an interpreter and then added it again which also added PYTHONPATH automatically. But it didn't work. The only way to get it work was to change the working directory before importing win32com module as follows. Isn't there any smarter way than this to resolve the problem?

import os
#os.chdir("C:\\Python27")
import win32com.client as win32
Re: [PyDev] win32com ImportError: DLL load failed [message #1730538 is a reply to message #1730463] Tue, 26 April 2016 14:43 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 04/25/2016 10:02 PM, Andrew Yang wrote:
> Hello,
>
> I just installed win32com for Python and it's working well in IDLE, that
> is, I can import win32com without any problem. But in Eclipse, I always
> get this error message as follows.
>
> import win32com.client as win32
> File "C:\Python27\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 tried to get rid of Python as an interpreter and then added it again
> which also added PYTHONPATH automatically. But it didn't work. The only
> way to get it work was to change the working directory before importing
> win32com module as follows. Isn't there any smarter way than this to
> resolve the problem?
>
> import os
> #os.chdir("C:\\Python27")
> import win32com.client as win32

Please understand that Python is not a language supported directly by
Eclipse in these forums. It's done by third party (the PyDev guy) and
you'll need to establish support a different way than through this
forum. Take a look around http://www.pydev.org and also consider
stackoverflow.com with the PyDev and Python tags.

Cheers and best of luck to you.
Previous Topic:where to ask questions concerning tycho
Next Topic:Where can I tweak this syntax highlighting (see image)
Goto Forum:
  


Current Time: Thu Apr 18 20:54:15 GMT 2024

Powered by FUDForum. Page generated in 0.03428 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top