Python newbie trying to embed in C++
Marwan Badawi
Marwan.Badawi at inria.fr
Thu Feb 28 03:11:56 EST 2013
On 27/02/2013 10:26, Ian Kelly wrote:
> 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.
>
I just noticed that my reply went to the message sender and not to the
newsgroup, so I'm posting again: thanks, that was it. Just renaming my
test.py file solved the problem.
%M
More information about the Python-list
mailing list