Script started on Fri 28 Feb 2003 01:47:21 PM PST bayazid ~/src/metakit-2.4.9/builds>cp ../examples/demo.py . bayazid ~/src/metakit-2.4.9/builds>gcc -shared -o Mk4py.so PyProperty.lo PyRowRe f.lo PyStorage.lo PyView.lo PWOImp.lo column.lo custom.lo derived.lo fileio.lo f ield.lo format.lo handler.lo persist.lo remap.lo std.lo store.lo string.lo table .lo univ.lo view.lo viewx.lo -lstdc++ -lgcc bayazid ~/src/metakit-2.4.9/builds>python demo.py demo.py - Mk4py 2.4.9 - sunos5 John Lennon 44 Flash Gordon 42 Flash Gordon 42 John Lennon 44 John Lennon 44 bayazid ~/src/metakit-2.4.9/builds>ld -G -o Mk4py.so PyProperty.lo PyRowRef.lo P yStorage.lo PyView.lo PWOImp.lo column.lo custom.lo derived.lo fileio.lo field.l o format.lo handler.lo persist.lo remap.lo std.lo store.lo string.lo table.lo un iv.lo view.lo viewx.lo -lstdc++ `gcc -print-libgcc-file-name` bayazid ~/src/metakit-2.4.9/builds>python demo.py demo.py - Mk4py 2.4.9 - sunos5 Traceback (most recent call last): File "demo.py", line 16, in ? db = mk.storage("demo.db",1) AttributeError: 'module' object has no attribute 'storage' bayazid ~/src/metakit-2.4.9/builds>gdb python GNU gdb 5.3 Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-pc-solaris2.8"... (gdb) r Starting program: /export/home2/local/bin/python [New LWP 1] [New LWP 2] [New LWP 3] Python 2.2.2 (#1, Dec 31 2002, 09:55:59) [GCC 2.95.3 20010315 (release)] on sunos5 Type "help", "copyright", "credits" or "license" for more information. >>> [New LWP 4] >>> Program received signal SIGINT, Interrupt. 0xdf9ca584 in _read () from /usr/lib/libc.so.1 (gdb) b Py_InitModule4 Breakpoint 1 at 0x8098952: file Python/modsupport.c, line 38. (gdb) c Continuing. >>> >>> import Mk4py Breakpoint 1, Py_InitModule4 (name=0xdefc41a0 "Mk4py", methods=0xdeff17e0, doc=0xdefd7340 "This is the Python interface of the embeddable MetaKit database library.\nExample of use:\n\n import Mk4py\n mk = Mk4py\n\n s = mk.storage('demo.dat', 1)\n v = s.getas('people[first:S,last:S,shoesize:I]'"..., passthrough=0x0, module_api_version=1011) at Python/modsupport.c:38 38 if (!Py_IsInitialized()) (gdb) p *methods $1 = {ml_name = 0x0, ml_meth = 0, ml_flags = 0, ml_doc = 0x0} (gdb) The program is running. Exit anyway? (y or n) y bayazid ~/src/metakit-2.4.9/builds>^Dexit script done on Fri 28 Feb 2003 01:50:41 PM PST