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


Groups > comp.lang.python > #86727

Re: Python27.dll could not be found

Path csiph.com!usenet.pasdenom.info!bete-des-vosges.org!news.redatomik.org!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'subject:not': 0.03; 'explicit': 0.07; '#include': 0.09; 'dependency': 0.09; 'deploy': 0.09; 'executable': 0.09; 'main()': 0.09; 'shows.': 0.09; 'snippet': 0.09; 'windows,': 0.09; 'python': 0.11; 'itself.': 0.14; 'windows': 0.15; '.py': 0.16; 'build?': 0.16; 'cmd': 0.16; 'folder.': 0.16; 'guess.': 0.16; 'looking?': 0.16; 'path.': 0.16; 'there?': 0.16; 'folder': 0.16; 'wrote:': 0.18; 'looked': 0.18; 'app': 0.19; 'version.': 0.19; 'written': 0.21; 'help.': 0.21; 'machine': 0.22; 'header:User-Agent:1': 0.23; 'versions': 0.24; 'file.': 0.24; 'gets': 0.27; 'header:In-Reply- To:1': 0.27; 'skip:p 30': 0.29; 'am,': 0.29; 'errors': 0.30; 'specified': 0.30; 'code': 0.31; 'too.': 0.31; 'app.': 0.31; 'correctly.': 0.31; 'equivalent.': 0.31; 'loads': 0.31; 'file': 0.32; 'there.': 0.32; 'checked': 0.32; 'python.org': 0.32; 'supposed': 0.32; 'run': 0.32; '2010.': 0.33; 'linux': 0.33; 'running': 0.33; 'actual': 0.34; 'something': 0.35; 'but': 0.35; 'there': 0.35; 'version': 0.36; 'located': 0.36; 'c++': 0.36; 'doing': 0.36; 'shows': 0.36; 'depends': 0.38; 'mine': 0.38; 'whatever': 0.38; 'to:addr:python-list': 0.38; 'files': 0.38; 'does': 0.39; 'visual': 0.39; 'to:addr:python.org': 0.39; 'skip:p 20': 0.39; 'called': 0.40; 'how': 0.40; 'simple': 0.61; "you're": 0.61; 'more': 0.64; 'different': 0.65; 'linked': 0.65; 'charset:windows-1252': 0.65; 'received:74.208': 0.68; '2.7.': 0.84; 'customers?': 0.84; 'received:74.208.4.194': 0.84; 'subject:found': 0.93
Date Mon, 02 Mar 2015 07:26:41 -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>
In-Reply-To <CA+QVAb4eiimGOqXGWy-f2PiwBriV=Qjs9O7wSZHFuayHpH=FSQ@mail.gmail.com>
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
X-Provags-ID V02:K0:tiIUdRIxbn0kAi/pGKQAgNEwSO2h6IOuWD2quHw3z61 OVMHQ7ywT3SLrtkru8L2/JVo8tQBJjCKVdZXbUhwltIGLxgWvJ 3z777GSfjxEdhKnN+foDyPL4X+r4GJz67/Mw1X7QipyK34wh53 16wb+1JeyEyyFIsDRs8UrkCV/VspmsU9Og3yGdDyZR1X1QVT3a xjhe9kjq6/ngDMKbB/W6UISiXYf2eR/XUJpzLXB6l9aubC6N1t v4F52l1uW6uYPjf0pLJ4PoBDlcQf9eQvUkCK7oVVpeZqF5Irhk ncdW94YsTpCD+7Sjv79PVpRlaB3cUDqDI/o0JmbuvrP2K+E7RA UJ/5p3B2K2CD7SFJsYrU=
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.34.1425299220.13471.python-list@python.org> (permalink)
Lines 74
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1425299220 news.xs4all.nl 2976 [2001:888:2000:d::a6]:48814
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:86727

Show key headers only | View raw


On 03/02/2015 01:00 AM, Sarvagya Pant wrote:
> I have been writing a c++ program that is supposed to call the python
> function. The code is a snippet from python.org itself.
> #include <Python.h>
> #include <iostream>
> #include <string>
>
> int main()
> {
>      Py_SetProgramName("Learning");
>      Py_Initialize();
>      PyRun_SimpleString("import hashlib\nprint hashlib.md5('sarvagya
> pant').hexdigest()");
>      Py_Finalize();
>      return 0;
> }
>
Please be more explicit about what you know and what you guess.


> I have used Visual Studio 2010. I have linked the include directories and
> lib files correctly. It gets correctly built.

Do you just mean that there are no errors displayed during the build?

> Dependency walkerPlease be more explicit about what you know and what you guess.
  shows the
> file depends upon Python27.dll.
> I have looked into the folder Dlls of python. It is not there.

What is not there?  Your executable, or Python27.dll ?  And exactly what 
folder(s) are you looking?

> Also I have
> checked both System and System32 folder. It is not present in there too.
> Python version is 2.7. How can I get Python27.dll to deploy my app for
> customers? Please help.
>

Python27.dll does not deploy your app.  Your app loads Python27.dll.

You can search for a file in Windows by doing something like:

      dir /s c:\somefile.dll

at a cmd prompt.  Does that find whatever file you're seeking?

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 don't run Windows very often, but on my wife's machine I see 
python27.dll in

     c:\windows\syswow64

That's on a Windows7 machine running 64bit version.  Location will be 
different on various versions of Windows.

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.


-- 
DaveA

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


Thread

Re: Python27.dll could not be found Dave Angel <davea@davea.name> - 2015-03-02 07:26 -0500

csiph-web