Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #86782
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <davea@davea.name> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.026 |
| X-Spam-Evidence | '*H*': 0.95; '*S*': 0.00; 'python.': 0.02; 'subject:not': 0.03; 'matches': 0.07; 'puts': 0.07; 'executable': 0.09; 'msi': 0.09; 'shows.': 0.09; 'windows,': 0.09; 'python': 0.11; 'posted': 0.15; 'windows': 0.15; '.py': 0.16; 'commandline': 0.16; 'invokes': 0.16; 'path.': 0.16; 'wrote:': 0.18; "python's": 0.19; 'skip:f 30': 0.19; 'written': 0.21; 'load': 0.23; 'header :User-Agent:1': 0.23; 'dll': 0.24; 'skip:% 10': 0.24; 'file.': 0.24; "i've": 0.25; 'header:In-Reply-To:1': 0.27; 'installed': 0.27; "doesn't": 0.30; 'specified': 0.30; 'directory,': 0.31; 'equivalent.': 0.31; 'loading': 0.31; 'responded': 0.31; 'linux': 0.33; 'up.': 0.33; 'actual': 0.34; 'could': 0.34; 'but': 0.35; 'located': 0.36; 'c++': 0.36; 'doing': 0.36; 'shows': 0.36; 'useful': 0.36; 'similar': 0.36; 'should': 0.36; 'being': 0.38; 'problems': 0.38; 'depends': 0.38; 'mine': 0.38; 'to:addr:python- list': 0.38; 'list,': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'called': 0.40; 'how': 0.40; 'even': 0.60; 'dave': 0.60; 'simple': 0.61; "you're": 0.61; 'information': 0.63; 'different': 0.65; 'charset:windows-1252': 0.65; 'received:74.208': 0.68; 'default': 0.69; 'therefore': 0.72; 'installer': 0.84; 'messed': 0.84; 'much,': 0.84; 'safer': 0.84; 'saying:': 0.84; 'angel': 0.91; 'thing,': 0.91; 'subject:found': 0.93; '2013': 0.98 |
| Date | Mon, 02 Mar 2015 14:45:10 -0500 |
| From | Dave Angel <davea@davea.name> |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: Python27.dll could not be found |
| References | <CA+QVAb4eiimGOqXGWy-f2PiwBriV=Qjs9O7wSZHFuayHpH=FSQ@mail.gmail.com> <54F45701.6030006@davea.name> <54F4B864.8020602@yahoo.no> |
| In-Reply-To | <54F4B864.8020602@yahoo.no> |
| Content-Type | text/plain; charset=windows-1252; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Provags-ID | V02:K0:VvaXW9I/pL7aE6qiyN5V1rVVzxEyZwvzGGTfmbL/oAt FJUC1lwftDnWtW0AFtg0mfqyu0s3Ud/7fR3lE9SCaPS+/Nh1Z1 QIlfSNbBp8aEYM2SojtGraONrZsh1mlBDiDvS5ykyXNbSSbPqU rbu3J1f7G5npT5jz8+lzx5SrcSsWchkn2QvFDTNqDJgAkrvPqH r525/DnxFMmMF1M2kRQpFlaO8k1x9DWwfLmdPEIx/x2/Pw5K+T KWWRZdrZlulKrMuhrxzqJCUGymcLnP0Qr35Hk2FE3sRgBT/Unq cfnZUrN2Pn6GqQ1JAt15AuDfndod/VpMBOPUES9mqFf8V0cL/l be4ilNPCUtyH886+cZG8= |
| X-UI-Out-Filterresults | notjunk:1; |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.19 |
| 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.64.1425325517.13471.python-list@python.org> (permalink) |
| Lines | 55 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1425325517 news.xs4all.nl 2961 [2001:888:2000:d::a6]:46407 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:86782 |
Show key headers only | View raw
On 03/02/2015 02:22 PM, Gisle Vanem wrote:
> Dave Angel wrote:
>
>> When I ran Windows, I had written a simple utility that searched the
>> PATH for a specified file.
>> I called it which.bat to match the Linux equivalent.
>
> I've written a similar tool; envtool --path --python python27.dll
>
> Matches in %PATH:
> 15 May 2013 - 21:43:38: f:\ProgramFiler\Python27\python27.dll
> Matches in Python's sys.path[]:
> 15 May 2013 - 21:43:38: f:\programfiler\Python27\python27.dll
>
> (available at http://watt-32.net/misc/#envtool )
>
>> You can look to see where the system thinks the Python executable is
>> located by doing
>>
>> ftype .py
>> and seeing what it shows. Mine shows Python.File
>>
>> Then do
>> assoc Python.File
>>
>> to see an actual path.
>
> That will give you the path of python.exe. Not pythonXX.dll (as the
> OP had problems with).
I just figured it was extra information the OP could use; finding the
executable is a useful thing, even though different from finding the DLL.
>
> But by Windows DLL loading rules, it's IMHO safer to have pythonXX.dll
> in the directory of python[w].exe. On Windows, ACAICR the Python MSI
> installer puts pythonXX.dll in %Windir\system32. So it depends on how
> the OP installed his Python.
>
>
Doesn't do much good to have the DLL only in the python directory, if
you're going to load it in a default way from a C++ program. Python.exe
doesn't do much, it mainly parses the commandline and invokes the DLL.
Other programs that want to call Python functions don't need the exe,
and therefore count on the DLL being on the Windows path.
The OP sent me a private message saying:
"Python.dll was found in my C:/Windows/SysWOW64 dir"
I responded and intended it to be posted to the list, but messed up.
You should see it by now.
--
DaveA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Python27.dll could not be found Dave Angel <davea@davea.name> - 2015-03-02 14:45 -0500
csiph-web