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

AttributeError: 'module' object has no attribute 'anomaly_detector' #17

Open
suguleasa opened this issue May 2, 2017 · 8 comments
Open

Comments

@suguleasa
Copy link

I am running in Ubuntu with Python 2.7.

First I did:
pip install luminol
Then:
import luminol
detector = luminol.anomaly_detector.AnomalyDetector(ts)

This returns:
AttributeError: 'module' object has no attribute 'anomaly_detector'

@shaan1337
Copy link

Try:
from luminol import anomaly_detector
detector = anomaly_detector.AnomalyDetector(ts)

@banksad
Copy link

banksad commented May 31, 2017

I tried
from luminol import anomaly_detector
I got
ImportError: No module named 'exp_avg_detector'

Running Windows with Python 3.5.2 | Anaconda 4.2.0

@banksad
Copy link

banksad commented May 31, 2017

Sorry just saw elsewhere I might need to try Python 2.7 to fix

@banksad
Copy link

banksad commented May 31, 2017

Yeah 2.7 works a charm in an Anaconda virtual environment

@brennv
Copy link
Contributor

brennv commented Aug 30, 2017

This should be resolved with #28

@talatccan
Copy link

I have same problem. I tried to run it on Python 2.7 but didnt work. I tried on azure notebook didnt work. I tried on Python 3.6 didnt work. Everytime same issue:

AttributeError: 'module' object has no attribute 'anomaly_detector'

and i realized that when i wanted to install package it showed me deprecation.

Collecting luminol
Downloading luminol-0.4-py2.py3-none-any.whl
Requirement already satisfied: scipy in /home/nbuser/anaconda2_501/lib/python2.7/site-packages (from luminol)
Requirement already satisfied: numpy in /home/nbuser/anaconda2_501/lib/python2.7/site-packages (from luminol)
Collecting future==0.16.0 (from luminol)
Downloading future-0.16.0.tar.gz (824kB)
100% |████████████████████████████████| 829kB 258kB/s eta 0:00:01
Building wheels for collected packages: future
Running setup.py bdist_wheel for future ... done
Stored in directory: /home/nbuser/.cache/pip/wheels/c2/50/7c/0d83b4baac4f63ff7a765bd16390d2ab43c93587fac9d6017a
Successfully built future
Installing collected packages: future, luminol
Found existing installation: future 0.15.2
DEPRECATION: Uninstalling a distutils installed project (future) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
Uninstalling future-0.15.2:
Successfully uninstalled future-0.15.2
Successfully installed future-0.16.0 luminol-0.4

@zhxiaom5
Copy link

well,I meet this issue too,python 2.7.13

/usr/local/python-2.7.13/bin/python

@zhxiaom5
Copy link

centos 6.5 64

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

6 participants