This happens because the Python development headers are not present. Installing the "python-dev" package should make it work.
Georg shabda raaj schrieb: > I ma on ubuntu. easy_install jinja2 faisl with an error in > _sppedups.c. > > jinja2/_speedups.c:15:20: error: Python.h: No such file or directory > jinja2/_speedups.c:27: error: expected '=', ',', ';', 'asm' or > '__attribute__' before '*' token > jinja2/_speedups.c:29: error: expected '=', ',', ';', 'asm' or > '__attribute__' before '*' token > jinja2/_speedups.c: In function 'init_constants': > jinja2/_speedups.c:34: error: 'PyObject' undeclared (first use in this > function) > jinja2/_speedups.c:34: error: (Each undeclared identifier is reported > only once > jinja2/_speedups.c:34: error: for each function it appears in.) > jinja2/_speedups.c:34: error: 'module' undeclared (first use in this > function) > jinja2/_speedups.c:36: error: 'escaped_chars_repl' undeclared (first > use in this function) > jinja2/_speedups.c:36: error: 'PyUnicodeObject' undeclared (first use > in this function) > jinja2/_speedups.c:36: error: expected expression before ')' token > jinja2/_speedups.c:37: error: expected expression before ')' token > jinja2/_speedups.c:38: error: expected expression before ')' token > jinja2/_speedups.c:39: error: expected expression before ')' token > jinja2/_speedups.c:40: error: expected expression before ')' token > jinja2/_speedups.c:43: warning: implicit declaration of function > 'memset' > jinja2/_speedups.c:43: warning: incompatible implicit declaration of > built-in function 'memset' > jinja2/_speedups.c:49: warning: implicit declaration of function > 'PyImport_ImportModule' > jinja2/_speedups.c:52: error: 'markup' undeclared (first use in this > function) > jinja2/_speedups.c:52: warning: implicit declaration of function > 'PyObject_GetAttrString' > jinja2/_speedups.c:53: warning: implicit declaration of function > 'Py_DECREF' > jinja2/_speedups.c: At top level: > jinja2/_speedups.c:58: error: expected '=', ',', ';', 'asm' or > '__attribute__' before '*' token > jinja2/_speedups.c:120: error: expected '=', ',', ';', 'asm' or > '__attribute__' before '*' token > jinja2/_speedups.c:158: error: expected '=', ',', ';', 'asm' or > '__attribute__' before '*' token > jinja2/_speedups.c:168: error: expected '=', ',', ';', 'asm' or > '__attribute__' before '*' token > jinja2/_speedups.c:195: error: expected '=', ',', ';', 'asm' or > '__attribute__' before 'module_methods' > jinja2/_speedups.c: In function 'init_speedups': > jinja2/_speedups.c:220: warning: implicit declaration of function > 'Py_InitModule3' > jinja2/_speedups.c:220: error: 'module_methods' undeclared (first use > in this function) > error: Setup script exited with error: command 'gcc' failed with exit > status 1 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pocoo-libs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/pocoo-libs?hl=en -~----------~----~----~----~------~----~------~--~---
