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

No module named 'config_parser' #33

Closed
silverwind opened this issue Apr 10, 2014 · 1 comment
Closed

No module named 'config_parser' #33

silverwind opened this issue Apr 10, 2014 · 1 comment

Comments

@silverwind
Copy link

Installed on ARM (Arch) and got this error. Could it be Python 3 related?

$ ngxtop
Traceback (most recent call last):
  File "/usr/bin/ngxtop", line 7, in <module>
    from ngxtop.ngxtop import main
  File "/usr/lib/python3.4/site-packages/ngxtop/ngxtop.py", line 77, in <module>
    from config_parser import detect_log_config, detect_config_path, extract_variables, build_pattern
ImportError: No module named 'config_parser'
$ python -V
Python 3.4.0
$ python2 -V
Python 2.7.6
@lebinh lebinh closed this as completed in fc6b8a3 May 5, 2014
lebinh added a commit that referenced this issue May 5, 2014
Use relative imports. Fixes #33
@j2ghz
Copy link

j2ghz commented Mar 30, 2017

Encountered today:

# pip3 show ngxtop
Name: ngxtop
Version: 0.0.2
Summary: Real-time metrics for nginx server
Home-page: https://github.com/lebinh/ngxtop
Author: Binh Le
Author-email: lebinh.it@gmail.com
License: MIT
Location: /usr/local/lib/python2.7/dist-packages
Requires: tabulate, pyparsing, docopt

# python3 -V
Python 3.5.2+

# ngxtop
Traceback (most recent call last):
  File "/usr/local/bin/ngxtop", line 7, in <module>
    from ngxtop.ngxtop import main
  File "/usr/local/lib/python3.5/dist-packages/ngxtop/ngxtop.py", line 77, in <module>
    from config_parser import detect_log_config, detect_config_path, extract_variables, build_pattern
ImportError: No module named 'config_parser'

Using python2 works

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