ngxtop icon indicating copy to clipboard operation
ngxtop copied to clipboard

ImportError: No module named 'config_parser' under python 3.4

Open cloudtrends opened this issue 10 years ago • 4 comments

I run ngxtop in virtualenv: can not find config_parser

(py3virtualenv)[root@xxxx ~]# ngxtop Traceback (most recent call last): File "/root/py3virtualenv/bin/ngxtop", line 7, in from ngxtop.ngxtop import main File "/root/py3virtualenv/lib/python3.4/site-packages/ngxtop/ngxtop.py", line 77, in from config_parser import detect_log_config, detect_config_path, extract_variables, build_pattern ImportError: No module named 'config_parser'

cloudtrends avatar Feb 16 '15 05:02 cloudtrends

This has already been fixed. It would be great if we could get another official release so it can be packaged.

djmattyg007 avatar Apr 27 '15 23:04 djmattyg007

all internal modules like utils or config_parser need to be prefixed by ngxtop., like in from ngxtop.utils import ...

Yamakaky avatar Jun 14 '15 13:06 Yamakaky

Still not fixed in pip package?

shaun-ba avatar Aug 26 '16 08:08 shaun-ba

For anyone who has come across this (like me), you can clone the git repo and install it from that if you need to get going:

git clone https://github.com/lebinh/ngxtop
cd ngxtop
pip install .

mgrijalva avatar Jun 24 '17 03:06 mgrijalva