Python newbie trying to embed in C++

Ian Kelly ian.g.kelly at gmail.com
Wed Feb 27 04:26:25 EST 2013


On Wed, Feb 27, 2013 at 1:51 AM, Marwan <LarrxX at 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.



More information about the Python-list mailing list