Karma.Mr.wen 发表于 2020-5-8 17:49:07

centos6.10 安装 ngxtop报错?

环境 centos6.10
内核:2.6.32-754.29.1.el6.x86_64
python 2.6.6


安装步骤
yum -y install epel-release
yum -y install python-pip
yum install python-setuptools
pip install ngxtop

问题描述:
执行ngxtop总是报如下错误,在网上找了很久也没有解决这个问题。
# ngxtop
Traceback (most recent call last):
File "/usr/bin/ngxtop", line 7, in <module>
    from ngxtop.ngxtop import main
File "/usr/lib/python2.6/site-packages/ngxtop/ngxtop.py", line 77, in <module>
    from config_parser import detect_log_config, detect_config_path, extract_variables, build_pattern
File "/usr/lib/python2.6/site-packages/ngxtop/config_parser.py", line 8, in <module>
    from pyparsing import Literal, Word, ZeroOrMore, OneOrMore, Group, \
File "/usr/lib/python2.6/site-packages/pyparsing.py", line 6897
    name: getattr(__diag__, name) for name in __diag__._all_names
                                    ^
SyntaxError: invalid syntax


ILOVECHINA 发表于 2020-5-23 18:20:04

没有centos6环境,无法确认 上面显示语法错误,应该跟python有关另外 centos7不香吗,可以考虑使用centos7了
页: [1]
查看完整版本: centos6.10 安装 ngxtop报错?