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.

Fails to run elastalert-create-index with python 3

See original GitHub issue

Using Ubuntu 16.04 64 bit, v0.0.79 (issue is also present in v0.0.77) and python 3, installation (python3 setup.py install) was successful.

However, running elastalert-create-index shows fails with the following exception:

Traceback (most recent call last):
  File "/usr/local/bin/elastalert-create-index", line 9, in <module>
    load_entry_point('elastalert==0.0.79', 'console_scripts', 'elastalert-create-index')()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 542, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2569, in load_entry_point
    return ep.load()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2229, in load
    return self.resolve()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2235, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/local/lib/python3.5/dist-packages/elastalert-0.0.79-py3.5.egg/elastalert/create_index.py", line 14, in <module>
    from auth import Auth
ImportError: No module named 'auth'

There seems to be a missing dependency (that isn’t checked at installation time) but I can’t find the name of the package for ‘auth’ (containing ‘Auth’).

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:2
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
nleocommented, Jul 9, 2019

Hi, guys!

It already a middle of 2019 here and I have no python2 on my servers now. Also I have no reason to install it.

0reactions
aboutbelkacommented, Nov 30, 2018

Thanks for the explanation. I gave up and got it working with Python2 for now, will wait for official Python3 support.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Running ElastAlert for the First Time - Read the Docs
Without any valid rules, ElastAlert will not start. ... First, we need to create an index for ElastAlert to write to by running...
Read more >
Yelp/elastalert - Gitter
Is there a way to have elastalert run rules at differing times? In my config, I have run_every set to 10 minutes. This...
Read more >
Elastalert2 rules folder config not working - Stack Overflow
Docker builds ElastAlert2 and deploy it on Argocd. But, there is a problem that the rules_folder config does not work. There is rules_folder...
Read more >
Setting up ElastAlert - Himani Raghav
Blist>=1.3.6 error resolved, config.yaml file not found error resolved, ... Next, to create an index for ElastAlert to write to, run —
Read more >
Delete index API | Elasticsearch Guide [8.5] | Elastic
To delete the index, you must roll over the data stream so a new write index is created. You can then use the...
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