win32api install problem

G

Gerry

I'm running Python 2.6 under XP.

I've installed Windows 32 extensions for Python 2.6 version 1.4
(pywin32-214.win32-py2.6.exe).

But If I try to import win32api, I get:

File "C:\python_projects\euler\driveletters.py", line 1, in <module>
import win32api
ImportError: DLL load failed: The specified module could not be found.

\Python26\Lib\site-packages has:

03/23/2009 08:35 AM <DIR> win32
07/20/2009 09:08 AM <DIR> win32com
02/18/2009 01:21 PM <DIR> win32comext

Can anyone offer a suggestion?

Thanks,

Gerry
 
T

Tim Golden

Gerry said:
I'm running Python 2.6 under XP.

I've installed Windows 32 extensions for Python 2.6 version 1.4
(pywin32-214.win32-py2.6.exe).

But If I try to import win32api, I get:

File "C:\python_projects\euler\driveletters.py", line 1, in <module>
import win32api
ImportError: DLL load failed: The specified module could not be found.

Used to be you'd get this error if you installed as a
non-admin user. Don't know if that's still an issue.
Possibility?

TJG
 
M

MCIPERF

Used to be you'd get this error if you installed as a
non-admin user. Don't know if that's still an issue.
Possibility?

TJG

Not a possibility (afaict) -- I am an administrator, according to the
control panel.
 
T

Tim Golden

MCIPERF said:
Not a possibility (afaict) -- I am an administrator, according to the
control panel.

Not too many ideas, then, I'm afraid. Apart from the obvious --
uninstall and try again -- how about running Python with the
-vv option:

python -vv

to get more information about what it's trying to get,
and/or running sysinternal's Process Explorer at the
same time to spot the DLL Dependencies.

I have seen a (not too similar) problem when running TortoiseHg
and the pywin32 extensions, since the shell import's TortoiseHg's
version of various pywin32 DLLs before I try to import them
myself for some other purpose, and the two versions clashed
dramatically (crashed Explorer hard, I seem to remember).

Just in case that rings any bells..

TJG
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,062
Latest member
OrderKetozenseACV

Latest Threads

Top