[Pydev-users] [Users] Error running python coverage
Brought to you by:
fabioz
From: SourceForge.net <no...@so...> - 2010-08-26 02:33:41
|
The following forum message was posted by chadkennedy at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/3825707: When I select Run - Run As - Python Coverage the following message appears in the Console window: File "C:\eclipse\plugins\org.python.pydev.debug_1.6.1.2010080312\pysrc\coverag e.py", line 336 print error ^ SyntaxError: invalid syntax My configuration: Windows Vista Python 3.1.2 Eclipse 3.6 I see that the file coverage.py is using Python 2.x-style print statements, which won't work with Python 3.1.2. My question is, what is the right way to fix this? I spent a while googling for answers and couldn't find anything relevant. Looking here: http://nedbatchelder.com/code/coverage/ I noticed that coverage.py is on version 3.3.1 and supports Python 3. I was going to replace the one installed with pydev (at version 2.78.20070930). However, the coverage.py 3.3.1 archive doesn't even contain a coverage.py file. Thanks for any insights! |