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


Groups > comp.lang.python > #40041

Re: Python newbie trying to embed in C++

References <kgkhdu$fjh$1@news-v3.irisa.fr>
From Ian Kelly <ian.g.kelly@gmail.com>
Date 2013-02-27 02:26 -0700
Subject Re: Python newbie trying to embed in C++
Newsgroups comp.lang.python
Message-ID <mailman.2598.1361957234.2939.python-list@python.org> (permalink)

Show all headers | View raw


On Wed, Feb 27, 2013 at 1:51 AM, Marwan <LarrxX@free.fr> wrote:
> When I run the generated exe, I get errors about the functions not
> existing...
>
> TestPython.exe test Hello
> AttributeError: 'module' object has no attribute 'Hello'
> Cannot find function "Hello"

"test" is the name of a module in the standard library.  My guess
would be that for some reason it's importing that module rather than
your test.py.  Make sure that test.py can be found on your sys.path,
and perhaps change the name of your module to reduce confusion.

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


Thread

Python newbie trying to embed in C++ Marwan <LarrxX@free.fr> - 2013-02-27 09:51 +0100
  Re: Python newbie trying to embed in C++ Ian Kelly <ian.g.kelly@gmail.com> - 2013-02-27 02:26 -0700
    Re: Python newbie trying to embed in C++ Marwan Badawi <Marwan.Badawi@inria.fr> - 2013-02-28 09:11 +0100
  Re: Python newbie trying to embed in C++ Christian Gollwitzer <auriocus@gmx.de> - 2013-02-27 16:17 +0100
    Re: Python newbie trying to embed in C++ Marwan Badawi <Marwan.Badawi@inria.fr> - 2013-02-28 09:28 +0100
      Re: Python newbie trying to embed in C++ Gisle Vanem <gvanem@broadpark.no> - 2013-02-28 11:47 +0100
      Re: Python newbie trying to embed in C++ Michael Torrie <torriem@gmail.com> - 2013-02-28 11:12 -0700
  Re: Python newbie trying to embed in C++ Terry Reedy <tjreedy@udel.edu> - 2013-02-27 16:17 -0500

csiph-web