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 'prometheus_client' has no attribute 'core' #3

Open
phpbg opened this issue May 8, 2020 · 3 comments
Open

Comments

@phpbg
Copy link

phpbg commented May 8, 2020

Any clue on this error? Change in prometheus API?

File "/home/sam/.local/lib/python3.6/site-packages/igd_exporter/igd.py", line 169, in collect
    g = prometheus_client.core.CounterMetricFamily(metric.name, metric.desc, labels=['udn'])
AttributeError: module 'prometheus_client' has no attribute 'core'
@phpbg
Copy link
Author

phpbg commented May 8, 2020

NB: I fixed it locally with import prometheus_client.core instead of import prometheus_client

Not a python dev, so not sure what happens here...

@fatpat
Copy link

fatpat commented Nov 6, 2020

fatpat@68fbb6a

@yrro
Copy link
Owner

yrro commented Jun 17, 2022

With prometheus-client 0.14.1 I don't have to refer to prometheus_client.core...

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

3 participants