Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #53605

Re: can't find win32api from embedded pyrun call

Date 2013-09-04 08:50 +0100
From Tim Golden <mail@timgolden.me.uk>
Subject Re: can't find win32api from embedded pyrun call
References <1150765862.185334.53290@u72g2000cwu.googlegroups.com> <1150778593.107920.286580@b68g2000cwa.googlegroups.com> <1150830594.337374.48170@p79g2000cwp.googlegroups.com> <f6b9a3a7-8733-42bd-9af0-e348562aa1b5@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.31.1378281062.5461.python-list@python.org> (permalink)

Show all headers | View raw


On 03/09/2013 21:50, David M. Cotter wrote:
> I find i'm having this problem, but the solution you found isn't
> quite specific enough for me to be able to follow it.
> 
> I'm embedding Python27 in my app.  I have users install
> ActivePython27 in order to take advantage of python in my app, so the
> python installation can't be touched as it's on a user's machine.
> 
> When I attempt to do:
>> import win32api
> 
> i get this:
>> Traceback (most recent call last): File "startup.py", line 5, in
>> <module> ImportError: DLL load failed: The specified module could
>> not be found.

You'll likely get more input from the guys on the python-win32 list.

Most times I've come across this issue it's been because the pywin32
package (or the whole Python distribution if you're using ActiveState)
was not installed as an administrator / elevated. I'm not sure I've ever
fathomed why, and the investigation isn't helped by the import dance
which the pywin32 code does. I don't remember solving it without a
reinstall on the user's machine.

TJG

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: can't find win32api from embedded pyrun call "David M. Cotter" <me@davecotter.com> - 2013-09-03 13:50 -0700
  Re: can't find win32api from embedded pyrun call "David M. Cotter" <me@davecotter.com> - 2013-09-03 21:32 -0700
  Re: can't find win32api from embedded pyrun call Tim Golden <mail@timgolden.me.uk> - 2013-09-04 08:50 +0100

csiph-web