jasta / jprocps

Collection of Java procps-like utilities (such as top, ps, etc)
GNU General Public License v2.0
56 stars 13 forks source link

invalid syntax class TopRunner() #3

Open Highlander4h opened 10 years ago

Highlander4h commented 10 years ago

Hi, I just downloaded and tried jtop, but I get syntax errors:

[scripts]$ jtop -n 1 File "/home/xxx/scripts/jtop", line 19 class TopRunner(): ^ SyntaxError: invalid syntax

After removing () for both TopRunner and PSAndJStackMerger I'm getting a syntax error on: for x in range(2 if first_run else 1): ^ SyntaxError: invalid syntax

Highlander4h commented 10 years ago

And after removing "(2 if first_run else 1)" I get: Traceback (most recent call last): File "/home/xxx/scripts/jtop", line 13, in ? from argparse import ArgumentParser ImportError: No module named argparse