Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #37413
| Path | csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.008 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'exception': 0.03; 'interpreter': 0.04; 'python': 0.09; 'spelling': 0.09; 'subject:python': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'googled': 0.16; 'plus,': 0.16; 'subject:File': 0.16; 'subject:embed': 0.16; 'subject:import': 0.16; 'traceback.': 0.16; 'wed,': 0.16; 'wrote:': 0.17; 'certainly': 0.17; 'subject:project': 0.17; 'jan': 0.18; 'module': 0.19; 'import': 0.21; 'example': 0.23; "python's": 0.23; 'script': 0.24; 'header :In-Reply-To:1': 0.25; 'c++': 0.27; 'small,': 0.27; 'message- id:@mail.gmail.com': 0.27; 'actual': 0.28; 'run': 0.28; 'minimal': 0.30; 'problem.': 0.32; 'file': 0.32; 'anybody': 0.32; 'to:addr :python-list': 0.33; "can't": 0.34; 'received:google.com': 0.34; 'project': 0.34; 'minimum': 0.34; 'problem,': 0.35; 'pm,': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'url:org': 0.36; 'should': 0.36; 'thank': 0.36; 'two': 0.37; 'being': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'easier': 0.38; 'to:addr:python.org': 0.39; 'help': 0.40; 'your': 0.60; 'days': 0.60; 'you.': 0.61; 'first': 0.61; 'chance': 0.61; 'here': 0.65; '2013': 0.84; 'demonstrates': 0.84; 'perfect!': 0.84; 'shrinking': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=HBQm7eu5R27bQxBg6LL8OlNieKzsQVUHZHXUGSDrZuI=; b=qJYFWoDtFEJ3n2hojPYUwmuRbfc3mQ2XiGXO7jcaZTXA7DXrxkAWUt4aF+M9wKd7B8 m47c/X85DcQqWioxNPxd4CyFoqCUG4Vjyj+0S2T5VZcJwO0DQQctSQ4puwZt3eeskz8W LPPBxurbCsqD4ACsFfHG/NRkeH6cbLoA+CLBAKGVbErzsIzWXAZZIYG7ZNxiLGxwLJrE YShNC+Y1EX7o0/z0C61Uk2HotzVGa9TJOn9/o13KSOkHPci5GdpBMc/4Sj3x5Hnkym1w 66cZHwhXkd83V6I82OKL8dqwDM6Hup6WRmFwiXAI+8gvIFGkDzmYewzmBwBfgVM6FYxb tHrA== |
| MIME-Version | 1.0 |
| X-Received | by 10.220.219.77 with SMTP id ht13mr12036275vcb.66.1358916583924; Tue, 22 Jan 2013 20:49:43 -0800 (PST) |
| In-Reply-To | <552da0d2-e744-4ce2-8204-14a7274515de@googlegroups.com> |
| References | <552da0d2-e744-4ce2-8204-14a7274515de@googlegroups.com> |
| Date | Wed, 23 Jan 2013 15:49:43 +1100 |
| Subject | Re: Failed to import a "pyd: File When python intepreter embed in C++ project |
| From | Chris Angelico <rosuav@gmail.com> |
| To | python-list@python.org |
| Content-Type | text/plain; charset=ISO-8859-1 |
| 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 | <http://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 | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.863.1358916592.2939.python-list@python.org> (permalink) |
| Lines | 19 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1358916592 news.xs4all.nl 6861 [2001:888:2000:d::a6]:49688 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:37413 |
Show key headers only | View raw
On Wed, Jan 23, 2013 at 1:43 PM, <liujz39@gmail.com> wrote: > I create a pyd File named "testPyd" with boostPython,and then I import the testPyd module into "test.py", it works perfect! > But when I embeded the python interpreter into my C++ project and run the "test.py", it comes out a "ImportErr: no module named testPyd". > It has confused me for two days and I googled for long time,but I can't find the answer! > Anybody here can help me ? > Thank you! First thing you should do is to get a minimal example that demonstrates the problem, and *copy and paste* it and the exception traceback. When your own spelling is as sloppy as this, we need to see Python's accuracies to have any chance of being able to help you. Plus, the process of shrinking your example to the minimum often highlights the actual cause of the problem. Even if it doesn't, it'll certainly be easier for us to help you if it's a small, self-contained script than if it's huge. http://sscce.org/ ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Failed to import a "pyd: File When python intepreter embed in C++ project liujz39@gmail.com - 2013-01-22 18:43 -0800
Re: Failed to import a "pyd: File When python intepreter embed in C++ project Chris Angelico <rosuav@gmail.com> - 2013-01-23 15:49 +1100
Re: Failed to import a "pyd: File When python intepreter embed in C++ project liujz39@gmail.com - 2013-01-22 23:05 -0800
RE: Failed to import a "pyd: File When python intepreter embed in C++ project "Leonard, Arah" <Arah.Leonard@bruker-axs.com> - 2013-01-23 16:28 +0000
Re: Failed to import a "pyd: File When python intepreter embed in C++ project Junze Liu <liujz39@gmail.com> - 2013-01-23 18:43 -0800
Re: Failed to import a "pyd: File When python intepreter embed in C++ project Junze Liu <liujz39@gmail.com> - 2013-01-23 18:43 -0800
csiph-web