Extending Python with C
John Fisher
jfisher at are.berkeley.edu
Thu Jun 10 15:34:34 EDT 1999
I'm a relative Python newbie having some trouble getting a module to
load. I wrote a simple one, using as a model the example given on the
Python website, just to get the hang of it; however, when I try to load
the compiled file I get a rather baffling error:
ImportError: ./echo.o: ELF file's phentsize not the expected size
Any ideas on what this is? I'm using Python 1.5.2, and the .c file
compiled without complaint on gcc 2.91.66. I imagine I'm missing
something simple, like a compile option for gcc, but I just can't figure
it out.
Thanks,
John
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
More information about the Python-list
mailing list