Module missing when embedding?

Garthy garthy_nhtyp at entropicsoftware.com
Thu Dec 12 02:57:12 EST 2013


Hi all,

The output I collected skipped the error messages for some reason. 
Updated test output with full errors follows.

Cheers,
Garth

---

rm -f applepy applepy.o
gcc -c -o applepy.o applepy.c -g -Wall -I/opt/python/include/python3.3m
gcc -o applepy applepy.o -g -Wall -L/opt/python/lib -lpython3.3m -ldl 
-lm -lpthread -lutil
=== Test 0: Started.
Load into main:   n
Global is module: n
Threaded:         n
FAILED: call foo().
Traceback (most recent call last):
   File "<string>", line 5, in foo
NameError: global name 'mymodule' is not defined
=== Test 0: Failed.
=== Test 1: Started.
Load into main:   y
Global is module: n
Threaded:         n
=== Test 1: Success.
=== Test 2: Started.
Load into main:   n
Global is module: y
Threaded:         n
FAILED: load.
Traceback (most recent call last):
   File "<string>", line 1, in <module>
ImportError: __import__ not found
=== Test 2: Failed.
=== Test 3: Started.
Load into main:   y
Global is module: y
Threaded:         n
=== Test 3: Success.
=== Test 4: Started.
Load into main:   n
Global is module: n
Threaded:         y
FAILED: call foo().
Traceback (most recent call last):
   File "<string>", line 5, in foo
NameError: global name 'mymodule' is not defined
=== Test 4: Failed.
=== Test 5: Started.
Load into main:   y
Global is module: n
Threaded:         y
=== Test 5: Success.
=== Test 6: Started.
Load into main:   n
Global is module: y
Threaded:         y
FAILED: load.
Traceback (most recent call last):
   File "<string>", line 1, in <module>
ImportError: __import__ not found
=== Test 6: Failed.
=== Test 7: Started.
Load into main:   y
Global is module: y
Threaded:         y
=== Test 7: Success.



More information about the Python-list mailing list