Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong if syntax #46

Closed
michael-xiii opened this issue Jan 30, 2015 · 1 comment
Closed

Wrong if syntax #46

michael-xiii opened this issue Jan 30, 2015 · 1 comment

Comments

@michael-xiii
Copy link

Hello!

[michael_xiii@new-host ~]$ sudo /usr/bin/pip-python install ngxtop
Downloading/unpacking ngxtop
  Downloading ngxtop-0.0.2.tar.gz
  Running setup.py egg_info for package ngxtop
Downloading/unpacking docopt (from ngxtop)
  Downloading docopt-0.6.2.tar.gz
  Running setup.py egg_info for package docopt
    Traceback (most recent call last):
      File "<string>", line 14, in ?
      File "/home/michael_xiii/build/docopt/setup.py", line 3, in ?
        from docopt import __version__
      File "docopt.py", line 49
        uniq = list(set(self.flat())) if uniq is None else uniq
                                                ^
    SyntaxError: invalid syntax
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 14, in ?

  File "/home/michael_xiii/build/docopt/setup.py", line 3, in ?

    from docopt import __version__

  File "docopt.py", line 49

    uniq = list(set(self.flat())) if uniq is None else uniq

                                            ^

SyntaxError: invalid syntax

----------------------------------------
Command python setup.py egg_info failed with error code 1

Python 2.4.3 (#1, Jan 9 2013, 06:47:03)

uname -a

Linux XXX 2.6.18-238.19.1.el5.028stab092.2 #1 SMP Thu Jul 21 19:23:22 MSD 2011 x86_64 x86_64 x86_64 GNU/Linux

@lebinh
Copy link
Owner

lebinh commented Jan 31, 2015

Hi, this is because the docopt library used to parse command line arguments doesn't support python 2.4. You will need at least Python 2.6 to run ngxtop. Also, look like you are using RHEL or CentOS 5 so maybe you can use the EPEL repo to install Python 2.6 first and reinstall ngxtop for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants