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

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.datemas.de!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <mail@timgolden.me.uk>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.006
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'importerror:': 0.07; 'app,': 0.09; 'failed:': 0.09; 'reinstall': 0.09; 'cc:addr:python- list': 0.11; 'python': 0.11; 'from:addr:timgolden.me.uk': 0.16; 'from:name:tim golden': 0.16; 'message-id:@timgolden.me.uk': 0.16; 'pywin32': 0.16; 'received:74.55.86': 0.16; 'received:74.55.86.74': 0.16; 'received:smtp.webfaction.com': 0.16; 'received:webfaction.com': 0.16; 'tjg': 0.16; 'why,': 0.16; 'wrote:': 0.18; 'module': 0.19; 'input': 0.22; 'import': 0.22; 'cc:addr:python.org': 0.22; 'install': 0.23; 'installation': 0.23; 'load': 0.23; 'header:User-Agent:1': 0.23; 'dll': 0.24; 'received:192.168.100': 0.24; 'guys': 0.24; '(or': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; "i've": 0.25; 'this:': 0.26; 'header:In-Reply-To:1': 0.27; 'installed': 0.27; 'specified': 0.30; "i'm": 0.30; 'code': 0.31; 'app.': 0.31; 'embedding': 0.31; "user's": 0.31; 'file': 0.32; 'quite': 0.32; '(most': 0.33; 'subject:from': 0.34; 'could': 0.34; "can't": 0.35; 'but': 0.35; 'dance': 0.36; 'found.': 0.36; 'machine.': 0.36; 'list.': 0.37; 'solving': 0.38; 'issue': 0.38; 'recent': 0.39; 'subject:can': 0.39; 'sure': 0.39; 'enough': 0.39; 'users': 0.40; 'most': 0.60; "you're": 0.61; 'times': 0.62; "you'll": 0.62; 'more': 0.64; 'from:addr:mail': 0.83; 'subject:find': 0.84; 'touched': 0.84; 'do:': 0.91; 'to:none': 0.92
Date Wed, 04 Sep 2013 08:50:59 +0100
From Tim Golden <mail@timgolden.me.uk>
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130307 Thunderbird/17.0.4
MIME-Version 1.0
CC python-list@python.org
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>
In-Reply-To <f6b9a3a7-8733-42bd-9af0-e348562aa1b5@googlegroups.com>
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 7bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.31.1378281062.5461.python-list@python.org> (permalink)
Lines 26
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1378281062 news.xs4all.nl 15967 [2001:888:2000:d::a6]:39587
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:53605

Show key headers only | 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