question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Python 3.6 doesn't run your examples

See original GitHub issue

Looks like the support for Python 3 is not completely developed yet. With Python 3.6 the examples you have don’t run:

from luminol.anomaly_detector import AnomalyDetector

What’s the easy fix for this?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
brennvcommented, Sep 28, 2017

Could you try this example:

from luminol.anomaly_detector import AnomalyDetector

ts = {0: 0, 1: 0.5, 2: 1, 3: 1, 4: 1, 5: 0, 6: 0, 7: 0, 8: 0}
my_detector = AnomalyDetector(ts)
score = my_detector.get_all_scores()
for timestamp, value in score.iteritems():
    print(timestamp, value)

We’re working on an update to the readme with #30. You can preview it here.

Version 0.4 adds the Python 3 support – pypi has not been updated yet, so for the time being you’d have to clone the repo and run python setup.py install or install it like this:

pip install git+https://github.com/linkedin/luminol.git
0reactions
brennvcommented, Jan 9, 2018

I think this issue can be closed now that pypi has been updated

Read more comments on GitHub >

github_iconTop Results From Across the Web

What's New In Python 3.6 — Python 3.11.1 documentation
This article explains the new features in Python 3.6, compared to 3.5. ... For example, if a class sets __iter__() to None ,...
Read more >
check_output doesn't works in python 3.6 while subprocess ...
Run the command described by args . Wait for command to complete, then return the returncode attribute. This is equivalent to: run(...).
Read more >
It's time to stop using Python 3.6
Python 3.6 will stop getting security updates in December 2021. Given the existence of 3.7, 3.8, 3.9, and 3.10, you really should upgrade....
Read more >
Invalid Syntax in Python: Common Reasons for SyntaxError
In this step-by-step tutorial, you'll see common examples of invalid syntax in Python and learn how to resolve the issue. If you've ever...
Read more >
Manage Python environments and interpreters - Visual Studio ...
A Python environment is a context in which you run Python code and ... For example, Python 2.7, Python 3.6, Python 3.7, Anaconda...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found