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


Groups > comp.lang.python > #37413

Re: Failed to import a "pyd: File When python intepreter embed in C++ project

References <552da0d2-e744-4ce2-8204-14a7274515de@googlegroups.com>
Date 2013-01-23 15:49 +1100
Subject Re: Failed to import a "pyd: File When python intepreter embed in C++ project
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.863.1358916592.2939.python-list@python.org> (permalink)

Show all headers | 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 | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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