[Tutor] py-editdist

Emad Nawfal (عماد نوفل) emadnawfal at gmail.com
Mon Apr 20 18:38:53 CEST 2009


Hi Tutors,
I tried to install this edit distance module but failed:
http://www.mindrot.org/projects/py-editdist/

I'm running Ubuntu Linux. The error message is below. Your help appreciated


emad at emad-desktop:~/Desktop/py-editdist-0.3$ python setup.py build
running build
running build_ext
building 'editdist' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -I/usr/include/python2.5 -c editdist.c -o
build/temp.linux-i686-2.5/editdist.o
editdist.c:22:20: error: Python.h: No such file or directory
editdist.c:91: error: expected ‘)’ before string constant
editdist.c:94: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘*’ token
editdist.c:110: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘editdist_methods’
editdist.c:116: error: expected ‘)’ before string constant
editdist.c:119: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘initeditdist’
error: command 'gcc' failed with exit status 1

-- 
لا أعرف مظلوما تواطأ الناس علي هضمه ولا زهدوا في إنصافه كالحقيقة.....محمد
الغزالي
"No victim has ever been more repressed and alienated than the truth"

Emad Soliman Nawfal
Indiana University, Bloomington
--------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090420/1a00fcb7/attachment-0001.htm>


More information about the Tutor mailing list