On Saturday, March 3, 2012 at 3:45:32 AM UTC+1, gwang wrote: > On Jan 3, 11:47 am, hisan <santosh.s...@gmail.com> wrote: > > Hi All > > > > i have downloaded "xmldiff-0.6.10" from their official site > > (http://www.logilab.org/859). > > I have tried installing the same on my 32 bit Windows 7 OS using the > > command "setup.py install" but below exceptions are thrown in the > > console. > > please help me out in installing this package on Windows > > > > Exceptions thrown while installing > > > > C:\Users\santosh\Downloads\xmldiff-0.6.10>setup.py build > > running build > > running build_py > > package init file '.\test\__init__.py' not found (or not a regular > > file) > > package init file '.\test\__init__.py' not found (or not a regular > > file) > > running build_ext > > building 'xmldiff.maplookup' extension > > gcc -mno-cygwin -mdll -O -Wall -ID:\Python26\include -ID:\Python26\PC - > > c extensions/maplookup.c -o b > > uild\temp.win32-2.6\Release\extensions\maplookup.o > > error: command 'gcc' failed: No such file or directory > > edit maplookup.c and comment away the line : #include <inttypes.h>. > At least that's what worked for me.
Darn! This thing is quite dead isn't it? :/ I installed cygwin with the gcc for c and tried it with different versions of python. I always end up having this pile of errors: >In file included from C:/Python27/include/Python.h:58:0, > from extensions/maplookup.c:1: >C:/Python27/include/pyport.h:886:2: error: #error "LONG_BIT definition appears >wrong for platform (bad gcc/glibc config?)." > #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc > config?)." > ^ >In file included from C:/Python27/include/Python.h:86:0, > from extensions/maplookup.c:1: >C:/Python27/include/intobject.h:46:35: error: expected '=', ',', ';', 'asm' or >'__attribute__' before 'PyInt_AsUnsignedLongLongMask' > PyAPI_FUNC(unsigned PY_LONG_LONG) PyInt_AsUnsignedLongLongMask(PyObject *); > ^ >In file included from C:/Python27/include/Python.h:88:0, > from extensions/maplookup.c:1: >C:/Python27/include/longobject.h:50:1: warning: parameter names (without >types) in function declaration > PyAPI_FUNC(PyObject *) PyLong_FromLongLong(PY_LONG_LONG); > ^ >In file included from C:/Python27/include/Python.h:58:0, > from extensions/maplookup.c:1: >C:/Python27/include/pyconfig.h:302:23: error: unknown type name '__int64' > # define PY_LONG_LONG __int64 > ^ >C:/Python27/include/pyport.h:793:34: note: in definition of macro 'PyAPI_FUNC' > # define PyAPI_FUNC(RTYPE) RTYPE > ^ >C:/Python27/include/longobject.h:52:12: note: in expansion of macro >'PY_LONG_LONG' > PyAPI_FUNC(PY_LONG_LONG) PyLong_AsLongLong(PyObject *); > ^ >In file included from C:/Python27/include/Python.h:88:0, > from extensions/maplookup.c:1: >C:/Python27/include/longobject.h:53:35: error: expected '=', ',', ';', 'asm' >or '__attribute__' before 'PyLong_AsUnsignedLongLong' > PyAPI_FUNC(unsigned PY_LONG_LONG) PyLong_AsUnsignedLongLong(PyObject *); > ^ >C:/Python27/include/longobject.h:54:35: error: expected '=', ',', ';', 'asm' >or '__attribute__' before 'PyLong_AsUnsignedLongLongMask' > PyAPI_FUNC(unsigned PY_LONG_LONG) PyLong_AsUnsignedLongLongMask(PyObject *); > ^ >In file included from C:/Python27/include/Python.h:58:0, > from extensions/maplookup.c:1: >C:/Python27/include/pyconfig.h:302:23: error: unknown type name '__int64' > # define PY_LONG_LONG __int64 > ^ >C:/Python27/include/pyport.h:793:34: note: in definition of macro 'PyAPI_FUNC' > # define PyAPI_FUNC(RTYPE) RTYPE > ^ >C:/Python27/include/longobject.h:55:12: note: in expansion of macro >'PY_LONG_LONG' > PyAPI_FUNC(PY_LONG_LONG) PyLong_AsLongLongAndOverflow(PyObject *, int *); well... that was a x64 cygwin. Didn't try with a 32 one yet but with py26,27,27_64 no difference. After all: This project has quite some dust already. Is there no alternative?!?! I can't believe nodal diffing hasen't evolved... -- https://mail.python.org/mailman/listinfo/python-list