I am trying to use a test coverage tool for django.

I tried http://pypi.python.org/pypi/django-test-coverage/0.1. First
with easy_install and after with setup.py install and I get the
following error stack:

Searching for django-test-coverage
Best match: django-test-coverage 0.1
Processing django_test_coverage-0.1-py2.6.egg
django-test-coverage 0.1 is already the active version in easy-
install.pth

Using /usr/local/lib/python2.6/dist-packages/django_test_coverage-0.1-
py2.6.egg
Processing dependencies for django-test-coverage
Searching for coverage
Reading http://pypi.python.org/simple/coverage/
Reading http://nedbatchelder.com/code/modules/coverage.html
Reading http://nedbatchelder.com/code/coverage
Best match: coverage 3.3.1
Downloading 
http://pypi.python.org/packages/source/c/coverage/coverage-3.3.1.tar.gz#md5=6f5a25ce06baad03ab293990f3a98bb7
Processing coverage-3.3.1.tar.gz
Running coverage-3.3.1/setup.py -q bdist_egg --dist-dir /tmp/
easy_install-nzgKke/coverage-3.3.1/egg-dist-tmp-JgaYFe
no previously-included directories found matching 'test'
coverage/tracer.c:3:20: error: Python.h: No such file or directory
coverage/tracer.c:4:71: error: compile.h: No such file or directory
coverage/tracer.c:5:43: error: eval.h: No such file or directory
coverage/tracer.c:6:26: error: structmember.h: No such file or
directory
coverage/tracer.c:7:25: error: frameobject.h: No such file or
directory
coverage/tracer.c:49: error: expected specifier-qualifier-list before
‘PyObject’
coverage/tracer.c:56: error: expected specifier-qualifier-list before
‘PyObject_HEAD’
coverage/tracer.c:115: error: expected declaration specifiers or ‘...’
before ‘PyObject’
coverage/tracer.c:115: error: expected declaration specifiers or ‘...’
before ‘PyObject’
coverage/tracer.c: In function ‘Tracer_init’:
coverage/tracer.c:129: error: ‘Tracer’ has no member named
‘should_trace’
coverage/tracer.c:129: error: ‘NULL’ undeclared (first use in this
function)
coverage/tracer.c:129: error: (Each undeclared identifier is reported
only once
coverage/tracer.c:129: error: for each function it appears in.)
coverage/tracer.c:130: error: ‘Tracer’ has no member named ‘data’
coverage/tracer.c:131: error: ‘Tracer’ has no member named
‘should_trace_cache’
coverage/tracer.c:132: error: ‘Tracer’ has no member named ‘arcs’
coverage/tracer.c:134: error: ‘Tracer’ has no member named ‘started’
coverage/tracer.c:135: error: ‘Tracer’ has no member named
‘tracing_arcs’
coverage/tracer.c:137: error: ‘Tracer’ has no member named ‘depth’
coverage/tracer.c:138: error: ‘Tracer’ has no member named
‘data_stack’
coverage/tracer.c:138: warning: implicit declaration of function
‘PyMem_Malloc’
coverage/tracer.c:139: error: ‘Tracer’ has no member named
‘data_stack’
coverage/tracer.c:141: warning: implicit declaration of function
‘PyErr_NoMemory’
coverage/tracer.c:144: error: ‘Tracer’ has no member named
‘data_stack_alloc’
coverage/tracer.c:146: error: ‘Tracer’ has no member named
‘cur_file_data’
coverage/tracer.c:147: error: ‘Tracer’ has no member named ‘last_line’
coverage/tracer.c:149: error: ‘Tracer’ has no member named
‘last_exc_back’
coverage/tracer.c: In function ‘Tracer_dealloc’:
coverage/tracer.c:157: error: ‘Tracer’ has no member named ‘started’
coverage/tracer.c:158: warning: implicit declaration of function
‘PyEval_SetTrace’
coverage/tracer.c:158: error: ‘NULL’ undeclared (first use in this
function)
coverage/tracer.c:161: warning: implicit declaration of function
‘Py_XDECREF’
coverage/tracer.c:161: error: ‘Tracer’ has no member named
‘should_trace’
coverage/tracer.c:162: error: ‘Tracer’ has no member named ‘data’
coverage/tracer.c:163: error: ‘Tracer’ has no member named
‘should_trace_cache’
coverage/tracer.c:165: warning: implicit declaration of function
‘PyMem_Free’
coverage/tracer.c:165: error: ‘Tracer’ has no member named
‘data_stack’
coverage/tracer.c:167: error: ‘PyObject’ undeclared (first use in this
function)
coverage/tracer.c:167: error: expected expression before ‘)’ token
coverage/tracer.c:167: error: expected ‘)’ before ‘self’
coverage/tracer.c: In function ‘Tracer_record_pair’:
coverage/tracer.c:224: error: ‘PyObject’ undeclared (first use in this
function)
coverage/tracer.c:224: error: ‘t’ undeclared (first use in this
function)
coverage/tracer.c:224: warning: implicit declaration of function
‘PyTuple_New’
coverage/tracer.c:225: error: ‘NULL’ undeclared (first use in this
function)
coverage/tracer.c:226: warning: implicit declaration of function
‘PyTuple_SET_ITEM’
coverage/tracer.c:226: warning: implicit declaration of function
‘PyInt_FromLong’
coverage/tracer.c:228: warning: implicit declaration of function
‘PyDict_SetItem’
coverage/tracer.c:228: error: ‘Tracer’ has no member named
‘cur_file_data’
coverage/tracer.c:228: error: ‘Py_None’ undeclared (first use in this
function)
coverage/tracer.c:232: warning: implicit declaration of function
‘Py_DECREF’
coverage/tracer.c: At top level:
coverage/tracer.c:245: error: expected declaration specifiers or ‘...’
before ‘PyFrameObject’
coverage/tracer.c:245: error: expected declaration specifiers or ‘...’
before ‘PyObject’
coverage/tracer.c: In function ‘Tracer_trace’:
coverage/tracer.c:248: error: ‘PyObject’ undeclared (first use in this
function)
coverage/tracer.c:248: error: ‘filename’ undeclared (first use in this
function)
coverage/tracer.c:248: error: ‘NULL’ undeclared (first use in this
function)
coverage/tracer.c:249: error: ‘tracename’ undeclared (first use in
this function)
coverage/tracer.c:264: error: ‘Tracer’ has no member named
‘last_exc_back’
coverage/tracer.c:265: error: ‘frame’ undeclared (first use in this
function)
coverage/tracer.c:265: error: ‘Tracer’ has no member named
‘last_exc_back’
coverage/tracer.c:277: error: ‘Tracer’ has no member named ‘depth’
coverage/tracer.c:278: error: ‘Tracer’ has no member named
‘tracing_arcs’
coverage/tracer.c:278: error: ‘Tracer’ has no member named
‘cur_file_data’
coverage/tracer.c:279: error: ‘Tracer’ has no member named ‘last_line’
coverage/tracer.c:284: error: ‘Tracer’ has no member named
‘cur_file_data’
coverage/tracer.c:284: error: ‘Tracer’ has no member named
‘data_stack’
coverage/tracer.c:284: error: ‘Tracer’ has no member named ‘depth’
coverage/tracer.c:285: error: ‘Tracer’ has no member named ‘last_line’
coverage/tracer.c:285: error: ‘Tracer’ has no member named
‘data_stack’
coverage/tracer.c:285: error: ‘Tracer’ has no member named ‘depth’
coverage/tracer.c:286: error: ‘Tracer’ has no member named ‘depth’
coverage/tracer.c:289: error: ‘Tracer’ has no member named
‘last_exc_back’
coverage/tracer.c:294: error: ‘PyTrace_CALL’ undeclared (first use in
this function)
coverage/tracer.c:297: error: ‘Tracer’ has no member named ‘depth’
coverage/tracer.c:298: error: ‘Tracer’ has no member named ‘depth’
coverage/tracer.c:298: error: ‘Tracer’ has no member named
‘data_stack_alloc’
coverage/tracer.c:301: error: ‘Tracer’ has no member named
‘data_stack_alloc’
coverage/tracer.c:302: warning: implicit declaration of function
‘PyMem_Realloc’
coverage/tracer.c:302: error: ‘Tracer’ has no member named
‘data_stack’
coverage/tracer.c:302: warning: initialization makes pointer from
integer without a cast
coverage/tracer.c:306: error: ‘Tracer’ has no member named ‘depth’
coverage/tracer.c:309: error: ‘Tracer’ has no member named
‘data_stack’
coverage/tracer.c:310: error: ‘Tracer’ has no member named
‘data_stack_alloc’
coverage/tracer.c:314: error: ‘Tracer’ has no member named
‘data_stack’
coverage/tracer.c:314: error: ‘Tracer’ has no member named ‘depth’
coverage/tracer.c:314: error: ‘Tracer’ has no member named
‘cur_file_data’
coverage/tracer.c:315: error: ‘Tracer’ has no member named
‘data_stack’
coverage/tracer.c:315: error: ‘Tracer’ has no member named ‘depth’
coverage/tracer.c:315: error: ‘Tracer’ has no member named ‘last_line’
coverage/tracer.c:319: warning: implicit declaration of function
‘PyDict_GetItem’
coverage/tracer.c:319: error: ‘Tracer’ has no member named
‘should_trace_cache’
coverage/tracer.c:324: error: ‘args’ undeclared (first use in this
function)
coverage/tracer.c:324: warning: implicit declaration of function
‘Py_BuildValue’
coverage/tracer.c:325: warning: implicit declaration of function
‘PyObject_Call’
coverage/tracer.c:325: error: ‘Tracer’ has no member named
‘should_trace’
coverage/tracer.c:332: error: ‘Tracer’ has no member named
‘should_trace_cache’
coverage/tracer.c:338: warning: implicit declaration of function
‘Py_INCREF’
coverage/tracer.c:342: warning: implicit declaration of function
‘PyString_Check’
coverage/tracer.c:343: error: ‘file_data’ undeclared (first use in
this function)
coverage/tracer.c:343: error: ‘Tracer’ has no member named ‘data’
coverage/tracer.c:345: warning: implicit declaration of function
‘PyDict_New’
coverage/tracer.c:350: error: ‘Tracer’ has no member named ‘data’
coverage/tracer.c:357: error: ‘Tracer’ has no member named
‘cur_file_data’
coverage/tracer.c:361: error: ‘Tracer’ has no member named
‘cur_file_data’
coverage/tracer.c:367: error: ‘Tracer’ has no member named ‘last_line’
coverage/tracer.c:370: error: ‘PyTrace_RETURN’ undeclared (first use
in this function)
coverage/tracer.c:373: error: ‘Tracer’ has no member named ‘depth’
coverage/tracer.c:374: error: ‘Tracer’ has no member named
‘tracing_arcs’
coverage/tracer.c:374: error: ‘Tracer’ has no member named
‘cur_file_data’
coverage/tracer.c:375: error: ‘Tracer’ has no member named ‘last_line’
coverage/tracer.c:381: error: ‘Tracer’ has no member named
‘cur_file_data’
coverage/tracer.c:381: error: ‘Tracer’ has no member named
‘data_stack’
coverage/tracer.c:381: error: ‘Tracer’ has no member named ‘depth’
coverage/tracer.c:382: error: ‘Tracer’ has no member named ‘last_line’
coverage/tracer.c:382: error: ‘Tracer’ has no member named
‘data_stack’
coverage/tracer.c:382: error: ‘Tracer’ has no member named ‘depth’
coverage/tracer.c:383: error: ‘Tracer’ has no member named ‘depth’
coverage/tracer.c:387: error: ‘PyTrace_LINE’ undeclared (first use in
this function)
coverage/tracer.c:389: error: ‘Tracer’ has no member named ‘depth’
coverage/tracer.c:391: error: ‘Tracer’ has no member named
‘cur_file_data’
coverage/tracer.c:393: error: ‘Tracer’ has no member named
‘tracing_arcs’
coverage/tracer.c:395: error: ‘Tracer’ has no member named ‘last_line’
coverage/tracer.c:401: error: ‘this_line’ undeclared (first use in
this function)
coverage/tracer.c:406: error: ‘Tracer’ has no member named
‘cur_file_data’
coverage/tracer.c:406: error: ‘Py_None’ undeclared (first use in this
function)
coverage/tracer.c:414: error: ‘Tracer’ has no member named ‘last_line’
coverage/tracer.c:418: error: ‘PyTrace_EXCEPTION’ undeclared (first
use in this function)
coverage/tracer.c:434: error: ‘Tracer’ has no member named
‘last_exc_back’
coverage/tracer.c: At top level:
coverage/tracer.c:445: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘*’ token
coverage/tracer.c:456: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘*’ token
coverage/tracer.c:467: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘*’ token
coverage/tracer.c:490: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘Tracer_members’
coverage/tracer.c:507: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘Tracer_methods’
coverage/tracer.c:521: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
‘__attribute__’ before ‘TracerType’
coverage/tracer.c: In function ‘inittracer’:
coverage/tracer.c:607: error: ‘PyObject’ undeclared (first use in this
function)
coverage/tracer.c:607: error: ‘mod’ undeclared (first use in this
function)
coverage/tracer.c:609: warning: implicit declaration of function
‘Py_InitModule3’
coverage/tracer.c:609: error: ‘NULL’ undeclared (first use in this
function)
coverage/tracer.c:609: warning: implicit declaration of function
‘PyDoc_STR’
coverage/tracer.c:614: error: ‘TracerType’ undeclared (first use in
this function)
coverage/tracer.c:614: error: ‘PyType_GenericNew’ undeclared (first
use in this function)
coverage/tracer.c:615: warning: implicit declaration of function
‘PyType_Ready’
coverage/tracer.c:620: warning: implicit declaration of function
‘PyModule_AddObject’
coverage/tracer.c:620: error: expected expression before ‘)’ token
error: Setup script exited with error: command 'gcc' failed with exit
status 1

Can someone help me? Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to