Making PyXML - compile error on first module
Harry George
hgg9140 at seanet.com
Sun Aug 13 20:44:13 EDT 2000
Yes. Try the 0.5.5.1 release. I think the 0.5.5 works for python 1.6
but bombs on python 1.5. The ".1" is a fix for that. If you can't
get the newer release, you can fix it directly in the code by a simple
change (which I can't remember at the moment -- and I deleted the file
just this morning of course) -- my note on that should be somewhere in
dejanews.
Thomas Gagne <tgagne at ix.netcom.com> writes:
> Does this look familiar to anyone? I deja'd through the newsgroup and didn't
> find anything... There's nothing obvious wrong with the code, unless for some
> reason the compiler can't figure out what an xmlparseobject is. I'm also
> curous why it include /usr/local/include/pythong1.5, when it's actually
> installed in /usr/include. This can't be too much of a problem since the
> compile error wasn't about a missing file, but something else.
>
> tgagne:/home/tgagne/work/PyXML-0.5.5 python setup.py build
>
> Executing 'build' action...
>
> Running command: make
> gcc -fpic -Iexpat/xmlparse -g -O2 -I/usr/include/python1.5
> -I/usr/include/python1.5 -DHAVE_CONFIG_H -c ./pyexpat.c
> ./pyexpat.c: In function `newxmlparseobject':
> ./pyexpat.c:474: parse error before `xmlparseobject'
> make: *** [pyexpat.o] Error 1
> Traceback (innermost last):
> File "setup.py", line 185, in ?
> func()
> File "setup.py", line 155, in build_unix
> shutil.copy('extensions/' + filename, 'build/xml/parsers/')
> File "/usr/lib/python1.5/shutil.py", line 52, in copy
> copyfile(src, dst)
> File "/usr/lib/python1.5/shutil.py", line 17, in copyfile
> fsrc = open(src, 'rb')
> IOError: [Errno 2] No such file or directory: 'extensions/pyexpat.so'
>
--
Harry George
hgg9140 at seanet.com
More information about the Python-list
mailing list