luminol icon indicating copy to clipboard operation
luminol copied to clipboard

Issue when importing modules

Open cici7941 opened this issue 8 years ago • 6 comments

Hello,

When I try to import the modules, I got some error messages here, >>> from luminol.correlator import Correlator Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.4/dist-packages/luminol/correlator.py", line 19, in <module> from luminol.anomaly_detector import AnomalyDetector File "/usr/local/lib/python3.4/dist-packages/luminol/anomaly_detector.py", line 19, in <module> from luminol.algorithms.anomaly_detector_algorithms.all import anomaly_detector_algorithms File "/usr/local/lib/python3.4/dist-packages/luminol/algorithms/anomaly_detector_algorithms/all.py", line 12, in <module> from luminol.algorithms.anomaly_detector_algorithms import * File "/usr/local/lib/python3.4/dist-packages/luminol/algorithms/anomaly_detector_algorithms/default_detector.py", line 12, in <module> from exp_avg_detector import ExpAvgDetector ImportError: No module named 'exp_avg_detector'

I think there is some issue with the module exp_avg_detector.

Could you please help fix that?

Thanks a lot!

Sophie

cici7941 avatar Jun 28 '16 20:06 cici7941

Hi Sophie, could you provide some more context on your issue? Specifically, what versions of the library and Python are you using?

I ran a quick test on my end - created a new virtualenv, installed luminol via pip and imported the correlator module without issue. Using a somewhat older Python 2.7.6 on my end.

Anthony

On Tue, Jun 28, 2016 at 1:29 PM, Yaqian Cheng [email protected] wrote:

Hello,

When I try to import the modules, I got some error messages here,

from luminol.correlator import Correlator Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python3.4/dist-packages/luminol/correlator.py", line 19, in from luminol.anomaly_detector import AnomalyDetector File "/usr/local/lib/python3.4/dist-packages/luminol/anomaly_detector.py", line 19, in from luminol.algorithms.anomaly_detector_algorithms.all import anomaly_detector_algorithms File "/usr/local/lib/python3.4/dist-packages/luminol/algorithms/anomaly_detector_algorithms/all.py", line 12, in from luminol.algorithms.anomaly_detector_algorithms import * File "/usr/local/lib/python3.4/dist-packages/luminol/algorithms/anomaly_detector_algorithms/default_detector.py", line 12, in from exp_avg_detector import ExpAvgDetector ImportError: No module named 'exp_avg_detector'

I think there is some issue with the module exp_avg_detector.

Could you please help fix that?

Thanks a lot!

Sophie

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/linkedin/luminol/issues/6, or mute the thread https://github.com/notifications/unsubscribe/AAVh30FDyB8t2PDrtFgnQdUs5cL5sOiOks5qQYQngaJpZM4JAgPM .

taintedkernel avatar Jun 29 '16 04:06 taintedkernel

Hi Anthony,

Thanks for your response. I just installed the luminol library today. So I believe it's the latest version. And for Python, I am running 3.4.3.

Best, Sophie

cici7941 avatar Jun 29 '16 06:06 cici7941

just run it on Python 2.7.11 no error messages. Hope it can work on Python 3.4 as well:)

cici7941 avatar Jun 29 '16 07:06 cici7941

That could be the problem, I don't believe it's been fully tested on 3.4 quite yet. If I find anything out regarding compatibility I will let you know.

On Wed, Jun 29, 2016 at 12:41 AM, Yaqian Cheng [email protected] wrote:

just run it on Python 2.7.11 no error messages. Hope it can work on Python 3.4 as well

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/linkedin/luminol/issues/6#issuecomment-229280534, or mute the thread https://github.com/notifications/unsubscribe/AAVh3wk0TIHTFZhKyOKBp_BmJtjbCokWks5qQiGjgaJpZM4JAgPM .

taintedkernel avatar Jun 29 '16 16:06 taintedkernel

Work in-progress PR #13 started to add Python 3

Tests passing for Python 2.7 and 3.6 61% coverage

brennv avatar Mar 26 '17 06:03 brennv

Python 3 support added with #28 ... pypi release still pending you can:

pip install git+https://github.com/linkedin/luminol.git

brennv avatar Sep 28 '17 12:09 brennv