Error when trying to compile metrices

2 views
Skip to first unread message

kahmed

unread,
Jun 17, 2011, 8:57:25 AM6/17/11
to Discussion about functional software testing and test automation.
Hi,

I tried to compile metrics @ http://pypi.python.org/pypi/metrics/
using conary (rPATH) and i get error:

byte-compiling /tmp/rmake/builds/metrics/_ROOT_/usr/lib/python2.4/site-
packages/metrics/sloc.py to sloc.pyc
File "/usr/lib/python2.4/site-packages/metrics/sloc.py", line 11
b'Keyword',
^
SyntaxError: invalid syntax
byte-compiling /tmp/rmake/builds/metrics/_ROOT_/usr/lib/python2.4/site-
packages/metrics/processargs.py to processargs.pyc
byte-compiling /tmp/rmake/builds/metrics/_ROOT_/usr/lib/python2.4/site-
packages/metrics/version.py to version.pyc
byte-compiling /tmp/rmake/builds/metrics/_ROOT_/usr/lib/python2.4/site-
packages/metrics/mccabe.py to mccabe.pyc
File "/usr/lib/python2.4/site-packages/metrics/mccabe.py", line 35
if (tok[0][0] == b'Keyword') and tok[1] in mccabe_keywords:
^
SyntaxError: invalid syntax
running install_egg_info

when i try to install metrices from source on ubuntu, i get similar
error.

Any idea how to resolve this ?

I want to use metrices for Jenkins for a Python Project

Thanks,
-Kamal.
Reply all
Reply to author
Forward
0 new messages