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

Module name clashing #17

Open
ptbrowne opened this issue Sep 30, 2014 · 8 comments
Open

Module name clashing #17

ptbrowne opened this issue Sep 30, 2014 · 8 comments

Comments

@ptbrowne
Copy link

Hi,

I have just run into a very hard to debug problem. After adding elasticsearch.py to my config, I had the error

python plugin: Found a configuration for the "elasticsearch" plugin, but the plugin isn't loaded or didn't register a configuration callback.

It was because I had already installed the ElasticSearch python client globally and so collectd was loading the wrong module. Sure, this is a newbie mistake and I should have used a virtualenv, but I guess maybe renaming elasticsearch.py to elasticsearch_collectd.py could perhaps save some users some headaches ;-)

Thanks !

@timbunce
Copy link

+1

2 similar comments
@pdaukintis
Copy link

+1

@johnarnold
Copy link

+1

@tedoc2000
Copy link

This is caused because there is another python module named "elasticsearch" in your default PYTHONPATH. The work around is to rename the collectd plugin's python file from elasticsearch.py -> elasticsearch_collectd.py then edit your config file and change:
Import "elasticsearch" -> Import "elasticsearch_collectd"
<Module "elasticsearch"> -> <Module "elasticsearch_collectd">

@timbunce
Copy link

Thanks for the workaround @tedoc2000.
Sure would be nice if the next release of collectd-elasticsearch could avoid the need for the workaround.

@ddes
Copy link

ddes commented Aug 5, 2015

Thank you @tedoc2000 & @ptbrowne, was very helpful !

@manhdinh
Copy link

Hello, i don't understand. Config Elasticsearch Plugin that make collectd send to Elas or receivce data from Elas?
And I want to collect data from collectd by using Graylog, any suggestions for this problem?

@rgevaert
Copy link

I had the same issue. I think this because I installed python-elasticsearch from elasticsearch upstream
python-elasticsearch:
Installed: 2.0.0
Candidate: 2.0.0
Version table:
*** 2.0.0 0
500 http://packages.elastic.co/curator/3/debian/ stable/main amd64 Packages
100 /var/lib/dpkg/status

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

8 participants